• Resolved johnmontfx

    (@johnmontfx)


    We’ve been using powerpress for many years doing category podcasting for five different categories. These categorized posts are actually each five different custom post types (where a category is automatically assigned upon saving the post).

    We’re transitioning to a new theme so I’m going to start using the powerpress mediaelement.js player moving forward. However, in testing the players do not have subscribe links visible. This is an example (scroll to bottom to see player without subscribe links):

    https://www.fxguide.com/thevfxshow/vfxshow240-avengers-endgame/

    However, “default/regular” WordPress posts that have podcasts associated with them do show the linkes. For example, this is a regular “Post” with a podcast episode added to it (scroll to bottom):

    https://www.fxguide.com/uncategorized/foundry-at-siggraph-with-v-ray-speed-tests/

    I cannot figure out why it’s not working for the custom post types (again, using category podcasting…not custom post type podcasting). Here is what I’ve done to debug:

    1. Turned off all plugins except for PowerPress and our functions which create the custom post types (there are no other functions other than registering the post types).
    2. Enabled the twentynineteen theme
    3. Confirmed the post types are registered properly, following instructions in the “Post Type Podcasting” on the blubrry.com web site
    4. Tried the various options on the “Having Issues?” setting in PowerPress

    I’d like to try and debug this further….and would appreciate any suggestions.

    Thank you very much.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter johnmontfx

    (@johnmontfx)

    So digging into this, it seems as though I’m unable to have subscribe links using categories for custom post type posts. The following code from Line 277 in powerpress-subscribe.php seems to cause issues. The subscribe_type is set to ‘post_type’ at this point

    	if( 'post' != get_post_type() && empty($ExtraData['subscribe_type']) )
    	{
    		$post_type = get_post_type();
    		$ExtraData['subscribe_type'] = 'post_type';
    	}
    	else if( 'post' == get_post_type() && !empty($ExtraData['category']) ) { // If strict category selected
    		$ExtraData['cat_id'] = $ExtraData['category'];
    		//$ExtraData['subscribe_type'] = 'category'; // Let the get settings function below figure this out
    		$detect_category = false;
    	}

    Since subscribe type gets set to post_type, the powerpresssubscribe_get_settings() function won’t do further digging for a possible category podcast, as seen on line 79, as $ExtraData[‘subscribe_type’] needs to be empty to do this search:

    if( false != $detect_category && empty($category_id) && !empty($GeneralSettings['cat_casting']) && $feed_slug == 'podcast' && empty($ExtraData['subscribe_type']) )

    For our particular case, I modified this line to be the following and it works:

    if( false != $detect_category && empty($category_id) && !empty($GeneralSettings['cat_casting']) && $feed_slug == 'podcast' && (empty($ExtraData['subscribe_type']) OR $ExtraData['subscribe_type']=='post_type' ) )

    We’ve been successfully using the plugin for feeds since 2010 but this is the first time I’ve been trying to use the built-in player in powerpress (previously we inserted it ourselves inside the articles).

    Thank you!

    • This reply was modified 5 years, 6 months ago by johnmontfx.
    • This reply was modified 5 years, 6 months ago by johnmontfx.
    Plugin Author Angelo Mandato

    (@amandato)

    Hello John,

    Category podcasting can work with post types, that is not the issue. The challenge with category podcasting is that it is not strict, it is possible that a podcaster could pick 2+ podcast categories, which then lies the issue which subscribe links do we present to the user when the page loads.

    We solved this 2 years ago with the new feature called “Strict category podcasting”. If you go into PowerPress > Category podcasting, this option is at the bottom. Simply check the box and click save. Once this is enabled, you will need to edit each blog post, modify the podcast content to expose a new field which maps the specific podcast episode to a specific podcast category feed. Simply select the strict category for that episode, then save/update the post. Once you save the posts with each post mapped to a specific category, PowerPress will know which subscribe links to associate to that podcast episode.

    Only challenge will be if you have a lot of podcast episodes, you then have to edit a lot of them one by one. If you are starting from a new podcast, you should be all set, just make sure moving forward each new episode you select the category within the podcast episode box and you’re all set.

    I hope this makes sense, if not please let me know I can try to explain differently.

    Thanks,
    Angelo

    Thread Starter johnmontfx

    (@johnmontfx)

    Understood — thank you so much for that…I understand the complexity and appreciate the response. I’ll search through the code because I need to code up a function to do this as we have about 1000 episodes over various podcasts we’ve done. ??

    We used to host our podcasts on Blubrry (sending money your way) but have been self-hosted for years. In trying to find a solution, I noticed you had a Patreon program set up. I made a contribution today (which I’ll cancel after a month) as a thanks for your work in contributing this to the community. It’s hard to find plugins that have been around as long as our sites and yours is one of these. Thank you so much for the effort.

    • This reply was modified 5 years, 6 months ago by johnmontfx.
    Plugin Author Angelo Mandato

    (@amandato)

    Thanks for the contribution to our Patreon!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Subscribe links missing on some audio players’ is closed to new replies.