• Resolved Twansparant

    (@twansparant)


    Hi there,

    I am rebuilding our website which uses your plugin for a podcast feed and I instead of using post tags for my podcast genres, I am using a custom taxonomy now.

    I noticed in my current podcast feed, Powerpress automatically adds the tags as categories and keywords, which is great! But in my new feed, the taxonomy terms of my podcast are not added as categories and keywords.

    <category>
    <![CDATA[ deep techno ]]>
    </category>
    <category>
    <![CDATA[ electro ]]>
    </category>
    <itunes:keywords>deep techno,electro</itunes:keywords>

    Can I enable this somehow so the terms are considered as categories?
    Thanks!

    https://wordpress.org/plugins/powerpress/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Angelo Mandato

    (@amandato)

    PowerPress does not automatically add categories to your feed, this is a function of WordPress.

    The first 12 tags were used for the iTunes keywords if you did not enable the episode entry iTunes keywords option under basic settings.

    iTunes keywords (<itunes:keywords>) was deprecated last year by Apple, the next major release of PowerPress will no longer include the <itunes:keywords> tags in feeds. This topic may be moot/obsolete at this point.

    Thread Starter Twansparant

    (@twansparant)

    Thanks for your reply, but that only works for post tags.
    I found a workaround that adds the tags on save based upon the post taxonomy terms like this:

    /**
     * Add Podcast Taxonomy Terms as Tags for RSS feed
     */
    function set_podcast_tags_on_publish($post_id, $post) {
      if ($post->post_type == 'podcast' && $post->post_status == 'publish') {
        $genres     = get_the_terms($post_id, 'podcast-genre');
        if($genres) {
        	foreach($genres as $genre) {
        		wp_set_post_tags($post_id, $genre->name, true);
        	}
        }
      }
    }
    add_action('save_post','set_podcast_tags_on_publish', 10, 2);
    Plugin Author Angelo Mandato

    (@amandato)

    Did you put this code in your theme’s functions.php?

    Thread Starter Twansparant

    (@twansparant)

    Did you put this code in your theme’s functions.php?

    Yes I did!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Use taxonomy terms as category’ is closed to new replies.