Conversation
supportHello, I’m experiencing an issue with the episode tabs in the Mas Video plugin. When I place the Mas Episodes widget inside the episode section, the tabs do not activate or function properly. However, when I use the Mas TV-Show Episodes widget, the tabs work correctly, but this widget only functions within the TV-Show section and does not work inside the episode section. Is there a way to enable the tabs when using the Mas Episodes widget inside the episode section, or make the Mas TV-Show Episodes widget work within episodes? Looking forward to your guidance. Best regards,
I replaced the following code in line 304 of the file: modules/mas-tv-shows-episodes/widget/mas-tv-shows-episodes.php $tv_shows = masvideos_get_tv_show( get_the_ID() ); with this: if ( is_singular( 'episode' ) ) { $episode = masvideos_get_episode( get_the_ID() ); if ( ! empty( $episode ) ) { $tv_show_id = $episode->get_tv_show_id(); $tv_shows = masvideos_get_tv_show( $tv_show_id ); } else { $tv_shows = false; } } else { $tv_shows = masvideos_get_tv_show( get_the_ID() ); } This temporarily resolved the issue. Please include these changes in the next update. This reply was modified 1 year, 3 months ago by MihanTheme . This reply was modified 1 year, 3 months ago by MihanTheme .
Hi @mihantheme , By default tabs are only loaded in the Single TV show page and not the Episode page. You can proceed with your code. I contact our developer team regarding this tab feature to add in a single episode page or not. Thanks, Abbas
I replaced the following code in line 304 of the file: modules/mas-tv-shows-episodes/widget/mas-tv-shows-episodes.php $tv_shows = masvideos_get_tv_show( get_the_ID() ); with this: if ( is_singular( 'episode' ) ) { $episode = masvideos_get_episode( get_the_ID() ); if ( ! empty( $episode ) ) { $tv_show_id = $episode->get_tv_show_id(); $tv_shows = masvideos_get_tv_show( $tv_show_id ); } else { $tv_shows = false; } } else { $tv_shows = masvideos_get_tv_show( get_the_ID() ); } This temporarily resolved the issue. Please include these changes in the next update. This reply was modified 1 year, 3 months ago by MihanTheme . This reply was modified 1 year, 3 months ago by MihanTheme .
Hi @mihantheme , By default tabs are only loaded in the Single TV show page and not the Episode page. You can proceed with your code. I contact our developer team regarding this tab feature to add in a single episode page or not. Thanks, Abbas