Bring Your Business to Life › Support › Popular Widget › show data, hook problems › Reply To: show data, hook problems
March 11, 2015 at 10:19 pm #256965
Keymaster
It depends if you want to affect all tabs or just one. Here is the code to affect all tabs. Remove lines of code as needed. You will need to add the code in a plugin or the functions.php file in your theme.
if you want to display the date after the title use:
function add_date_after_title( $title, $post ){
return $title .= get_the_time( '', $post->ID );
}
add_filter('pop_recent_title', 'add_date_after_title',10, 2);
add_filter('pop_commented_title', 'add_date_after_title',10, 2);
add_filter('pop_viewed_title', 'add_date_after_title',10, 2);