[Support request] how to display the post date before the post title on the blog page

Home Forums Support [Support request] how to display the post date before the post title on the blog page

Home Forums Support how to display the post date before the post title on the blog page

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1557574
    Sima

    how to display the post date before the post title on the blog page?

    #1557610
    Elvin
    Staff
    Customer Support

    Hi,

    You can disable the current “Display post date” by unchecking it through Appearance > Customize > Layout > Blog.

    You then add this PHP snippet so it displays above your post title.

    add_action( 'generate_before_entry_title', function() {
            echo '<div class="entry-meta">';
                generate_do_post_meta_item( 'date' );
            echo '</div>';
    } );

    A wise man once said:
    "Have you cleared your cache?"

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