Post date

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #56779
    virendra930
    Member

    Hii can you please told me how to add post date near title??
    Thanks in advance

    #56780
    Xpark Media
    Keymaster

    There is no setting for it currently, you will have to use the pop_tab_title hook.

    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></span>' ;
    }
    add_filter('pop_recent_title', 'modify_pop_recent_title');
    #1667896
    u8mealive
    Participant

    hi please let me know where to put this code, I tried to put it in /popular-widget/_inc/function.php at the last code but it didn’t work, please help thanks

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