• Resolved Rodrigo

    (@rghedin)


    Hi! I publish podcast episodes alongside regular WordPress posts. Unfortunately, SSP posts don’t show categories the same way regular posts do. I even thought this could be some issue with my WordPress template, but this problem happens in more than one.

    For example, here’s a regular post. Notice that its category is showed below it — in this case, “Notícias”.

    In this SSP post, nothing appears below the post. I wish it showed the podcast “category” — actually, the podcast show the post belongs to.

    Is there a special tag to show a podcast’s show/category?

    • This topic was modified 2 years, 4 months ago by Rodrigo. Reason: Fix links originally written in Markdown
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support amongthestones

    (@amongthestones)

    Hi there @rghedin,

    Thanks for contacting us.

    Custom post types do not show categories by default. You can check our resource hub guide on adding some gists to enable categories on the Podcasting custom post type. You’ll need to provide the post type instead of podcast:

    
    add_action( 'init', 'ssp_add_categories_to_podcast', 15 );
    function ssp_add_categories_to_podcast () {
       register_taxonomy_for_object_type( 'category', 'myposttype' );
    }
    

    I hope that helps. Let us know if you have any other questions and have a good day.

    Thread Starter Rodrigo

    (@rghedin)

    Thanks, @amongthestones!

    Actually, I’d like to render a podcast “show” (series) as category on podcast’s posts.

    Is that possible?

    Plugin Author Serhiy Zakharchenko

    (@zahardoc)

    Hey @rghedin!

    Please try to put this code snippet in your functions.php file:

    add_filter('ssp_include_player_meta', function($meta){
    	global $post;
    
    	$series = wp_get_post_terms( $post->ID, 'series' );
    
    	if( empty($series[0]) ){
    		return $meta;
    	}
    	$info =  '<p class="ssp-podcast-info">' . 'Podcast: ' . $series[0]->name . '</p>';
    
    	return $meta . $info;
    });

    It will add the Podcast: podcastName info to your player meta.

    Best regards,
    Sergiy.

    Thread Starter Rodrigo

    (@rghedin)

    Thanks, @zahardoc!

    It’s almost this, but instead of series appearing in player meta area, I’d like it behaves as categories do for regular posts, showing below post, as indicated in this screenshot.

    Plugin Author Serhiy Zakharchenko

    (@zahardoc)

    @rghedin

    If you would like to put it somewhere else, for example in those items below post, you’ll need to edit the template file inside your theme. Unfortunately, I can’t provide more specific information about it because it depends on your theme, so I would recommend finding a developer who could do it for you using the code I provided in the previous post.

    Also, please be aware that if you are going to update the theme in the future and not lose those changes, you’ll need to create a child theme, and edit template files there, and not directly in the theme.

    Hope this helps.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘SSP doesn’t show categories?’ is closed to new replies.