• Resolved James White

    (@jamesfacts)


    Hi SSP,

    Thanks very much for a fantastic plugin—I’ve just recently tried a lot of podcasting plugins and yours is by far the most flexible and elegant solution. Amazing stuff!

    I have a theme where author values are set in post meta data. So, I’d like to override the author value from line 417 in feed-podcast.php

    I set up a filter like this:

    add_filter( 'ssp_feed_item_author', 'custom_theme_authors_in_feed' );
    
    function custom_theme_authors_in_feed ($author) {
    	$author = strip_tags( custom_author_meta(get_the_ID(), true, true) );
    }

    No luck. Is there something special to ssp_feed_item_author I’m missing?

    Thanks!
    James

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Jonathan Bossenger

    (@psykro)

    Hi James

    A filter returns an updated value, so you just need to return the $author variable at the end of your custom_theme_authors_in_feed function

    function custom_theme_authors_in_feed ($author) {
    	$author = strip_tags( custom_author_meta(get_the_ID(), true, true) );
            return $author;
    }
    Thread Starter James White

    (@jamesfacts)

    Thanks very much, Jonathan! I just realized I had not replied to you earlier, your info was exactly what I needed. Appreciate your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do I hook into a filter setup in ‘feed-podcast.php’’ is closed to new replies.