Post category

Tagged: ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #56994
    Xpark Media
    Keymaster

    modify your code to this, note that this will only work with categories.

    function modify_pop_recent_title( $title, $post ) {
    return '<span class="pop-title title">'. $title . '<span class="post-date">' . date_i18n( get_option('date_format'), $date ) ,'</span>' . get_the_term_list( $post->ID, 'category', '', ', ', '' ) . '</span>' ;
    }
    add_filter('pop_recent_title', 'modify_pop_recent_title');
    #201433
    dzadze
    Member

    I want to display category as well.
    Where should i put this code, in which file?

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.