[Resolved] How to Show Date Below the Featured Image

Home Forums Support [Resolved] How to Show Date Below the Featured Image

Home Forums Support How to Show Date Below the Featured Image

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1317278
    Data

    currently, the date is coming above the featured image. How can we move it to below the featured image? And also how to Right Align it. Currently is left align.

    #1318185
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Try this function:

    add_action( 'wp', function() {
        if ( is_single() ) {
            remove_action( 'generate_after_entry_title', 'generate_post_meta' );
            add_action( 'generate_before_content', 'generate_post_meta', 15 );
        }
    } );

    Let me know 🙂

    #1318231
    Data

    where to add this?

    #1318404
    Leo
    Staff
    Customer Support
    #1318814
    Data

    I did, but the date is moved above the main heading. I want to show it below the featured image and align it on right side.

    #1319453
    Leo
    Staff
    Customer Support

    Have you solved this? The topic is marked as resolved.

    Is the code still added?

    I’m not seeing any dates at all.

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