• Resolved Dave Chimny

    (@netzblogr)


    Hey everybody,

    I tried to fiddle around with filters in my podcast feed when I encountered some strange behaviour: When I added the filters ssp_feed_item_content or ssp_feed_item_description, my modifications were applied to <description>, <itunes:subtitle>, <content:encoded> and <itunes:summary> of every item.

    I’d expect that ssp_feed_item_description only modifies <description> and ssp_feed_item_content only modifies what’s inside <content:encoded>.

    In this state, it’s impossible to only change <content:encoded>. ??

    I hope this issue can be replicated and fixed.

    • This topic was modified 3 years, 4 months ago by Dave Chimny.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support keleigh824

    (@keleigh824)

    Hi @netzblogr,

    Thank you for bringing this to our attention. I am reaching out to our developer to see what we can do about this and if this is the correct behavior.

    Plugin Author Serhiy Zakharchenko

    (@zahardoc)

    Hi @netzblogr,

    I’ve checked your request, and it totally makes sense to me.
    In the next plugin version, we’re going to make the following changes:

    1. Hook ssp_feed_item_description will apply only to <description> and won’t change the <content:encoded> tag.
    2. For changing separately the content tag, you’ll be able to use the ssp_feed_item_args filter, like this:

    add_filter( 'ssp_feed_item_args', function ( $args, $post_id ) {
    	$args['content'] = 'Hello World!';
    	return $args;
    }, 10, 2 );

    Cheers,
    Sergey.

    Thread Starter Dave Chimny

    (@netzblogr)

    Hey Sergey,

    that sounds great. I’ll check it when the update is released and let you know that it’s working. ??

    Plugin Support amongthestones

    (@amongthestones)

    Hi @netzblogr,

    Thanks. We’ll resolve the forum topic once you’ve confirmed these filters are working as expected

    Thread Starter Dave Chimny

    (@netzblogr)

    Oh, I completely forgot to give you feedback:

    The ssp_feed_item_args filter works awesome as now everything in my hands. Just found out this is an extremely powerful tool:

    'title', 'pub_date', 'author', 'content', 'description', 'itunes_subtitle', 'keywords', 'itunes_episode_type', 'itunes_title', 'itunes_episode_number', 'itunes_season_number', 'turbo_post_count', 'enclosure', 'size', 'mime_type', 'turbo_post_count', 'itunes_summary', 'episode_image', 'itunes_explicit_flag', 'block_flag', 'duration', 'gp_description', 'googleplay_explicit_flag'

    Well done! ??

    Maybe you can update the Filter Reference?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Filters for feed items don’t work as expected’ is closed to new replies.