Bring Your Business to Life › Support › Popular Widget › Inserting Custom Field Contents into Tab Post Content › Reply To: Inserting Custom Field Contents into Tab Post Content
November 13, 2013 at 8:30 pm #55301
buegelfrei
Participant
I must be doing something wrong: just working with your starter code, I would expect to see each title get “add something after the title” added to it. Instead, the titles are gone altogether under the “Recent” tab. (The titles are still there under Popular and Commented, the other two tabs that I’m using).
I’ve got this at line 382 in functions.php:
function add_replace_title_on_post_tab( $title ){
$title . "add something after the title";
return $title;
}
And this at the last line of the file:
add_filter( 'pop_recent_title', 'add_replace_title_on_post_tab' );
Thanks!