[Resolved] Author avatar next to author name in post meta

Home Forums Support [Resolved] Author avatar next to author name in post meta

Home Forums Support Author avatar next to author name in post meta

  • This topic has 21 replies, 5 voices, and was last updated 4 years ago by Tom.
Viewing 7 posts - 16 through 22 (of 22 total)
  • Author
    Posts
  • #1129033
    Leo
    Staff
    Customer Support

    Can you make sure this is the code you are using?

    It has been updated before:
    https://docs.generatepress.com/article/entry-meta-style/#example-1

    #1129037
    Yoeri

    Hello Leo,

    Thanks for your fast reply. Yes I have copy-paste that code yesterday from the url you mention.

    #1129043
    Leo
    Staff
    Customer Support

    Oops sorry I just noticed the error in the code.

    Replace:

    add_filter( 'generate_footer_entry_meta_items', function( $items ) {
        return array(
            'date',
            'categories',
        );
    } );

    with

    add_filter( 'generate_footer_entry_meta_items', function( $items ) {
        return array(
            'categories',
            'post-navigation',
        );
    } );
    #1130351
    Yoeri

    Works like a charm, thank you Leo! ๐Ÿ™‚

    #1130804
    Leo
    Staff
    Customer Support

    No problem ๐Ÿ™‚

    #1229061
    rossnmia

    How can I also make this show up in custom post pages (BWL knowledgebase plugin)

    #1229201
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    If the plugin using a custom post type, you can add the GP post meta to it using this filter: https://docs.generatepress.com/article/generate_entry_meta_post_types/

Viewing 7 posts - 16 through 22 (of 22 total)
  • You must be logged in to reply to this topic.