[Resolved] Change Post Meta Order to Byline Then Date

Home Forums Support [Resolved] Change Post Meta Order to Byline Then Date

Home Forums Support Change Post Meta Order to Byline Then Date

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1143356
    jhmattern

    Right now the post meta below my post titles on single post pages is “Date by Author.”

    I’d like it formatted at “by Author | Date”

    I tried creating an element using the following and setting it to display after entry titles:

    add_filter( 'generate_header_entry_meta_items', function() {
        return array(
            'author',
            'date',
           
        );
    } );

    I set it to execute PHP.

    But this isn’t working. It’s just outputting the code itself.

    The site’s in maintenance mode during the changeover, but I’m linking a screenshot.

    Post Meta

    Any help is appreciated.

    Thanks!

    #1143364
    jhmattern

    Nevermind! I just realized I couldn’t add the filter as an element and used the code snippet plugin instead. Works fine now. ๐Ÿ™‚

    #1143488
    David
    Staff
    Customer Support

    Glad to hear you found the solution ๐Ÿ™‚

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