Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Shawn

    (@shawnogordo)

    The player should only show up at the top of that Page if the PowerPress shortcake is in use. Go in to the editor for that Page and if you see something that looks like:
    [powerpress]

    At the top of the editor window, remove it, save the changes, and if necessary, clear any site caches.

    PowerPress also adds Podcast Episode boxes to Pages, even tho PowerPress doesn’t technically work with Pages. Look below the main Page editor and find the Podcast Episode box. If somehow a Podcast Episode was added to that Page, the Podcast Episode box will be collapsed with a checkbox that says “modify existing podcast episode.” If you see that, check the box and then remove the Podcast Episode completely, save the changes to the Page, and if necessary, clear any site caches.

    Thread Starter ratracegrad

    (@ratracegrad)

    @ shawnogordo The page is empty. There is no text on it whatsoever so the shortcode is not on the page.

    At the bottom of the page, in the podcast episode section it is blank. There is no checkbox to edit so I cannot remove anything.

    Any other suggestions on how to get it removed from this page?

    Plugin Support Shawn

    (@shawnogordo)

    To clarify: you’re seeing the Podcast Episode box at the bottom of the editor for that Page, and there are no values entered into any of the fields in the box?

    Thread Starter ratracegrad

    (@ratracegrad)

    No it is showing at the top of the page and YES the page is EMPTY. There are no powerpress shortcodes on the page.

    The problem is your add_filter( ‘the_content’, ‘powerpress_content’, POWERPRESS_CONTENT_ACTION_PRIORITY ); filter should really have an is_home() and is_front_page() check in there to prevent this.

    I added the following to my functions.php file to overcome your problem with:

    add_action( ‘genesis_before’, function() {

    // Bail if not the home page.
    if ( ! is_home() ) {
    return;
    }

    // Get the priority.
    $priority = defined( ‘POWERPRESS_CONTENT_ACTION_PRIORITY’) ? POWERPRESS_CONTENT_ACTION_PRIORITY : 10;

    // Remove the content filter in Powerpress podcast plugin.
    remove_filter( ‘the_content’, ‘powerpress_content’, $priority ) ;
    });

    So to clarify for you, the podcast episode player is at top of the page which you could have easily seen by going to the URL that I linked to originally. The Page is completely empty and void of any text. There are no shortcodes for the player on the page at all.

    I have given you the code to remove your player from the episodes page so you guys might want to look at changing your code so that it is not displayed on pages like it was for me.

    Plugin Support Shawn

    (@shawnogordo)

    I have asked the Blubrry dev team to look at your post.

    Plugin Author Angelo Mandato

    (@amandato)

    Hello,

    I shared this recently with another user. PowerPress does not have such grandular functionality, but if you are familiar with editing your WordPress theme’s functions.php, you can add code similar to the example below to control if PowerPress adds the player to the_content filter or not based on the type of page. Putting this code in your themes functions.php means that when you update PowerPress, you do not have to re-edit PowerPress’s source. This example only deals with the home page, but you can add other types of pages, refer to this page for various functions (tags) you could use: https://codex.www.ads-software.com/Conditional_Tags

    e.g.

    function yourtheme_init()
    {
      if( defined('POWERPRESS_CONTENT_ACTION_PRIORITY') && is_home() ) {
        remove_filter('the_content', 'powerpress_content', POWERPRESS_CONTENT_ACTION_PRIORITY);
        remove_filter('get_the_excerpt', 'powerpress_content', (POWERPRESS_CONTENT_ACTION_PRIORITY - 1) );
        remove_filter('the_excerpt', 'powerpress_content', POWERPRESS_CONTENT_ACTION_PRIORITY);
      }
    }
    add_action('init', 'yourtheme_init');

    This will remove the powerpress_content filter for both regular content views as well as excerpt views for your homepage.

    Thanks,
    Angelo

    Plugin Author Angelo Mandato

    (@amandato)

    Though adding checks for “is_home() and is_front_page()” for <u>you</u> may solve your problem, most users expect the player on their home page. We’ve had requests like this for other pages, such as is_archive(), is_tag(), etc… We have this on our development TODO list to add a settings page with check boxes for all of the various page types as listed on Conditional Tags page linked in my last reply.

    Thanks,
    Angelo

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Podcast Player showing on page it shouldn’t’ is closed to new replies.