Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Problem Functions

  • Hello,

    I am using this and it works in your theme, but it only shows me the author, the author image with some plugins, but not with others.

    // Generate author image and link in separate containers
    add_filter( 'generate_post_author_output', function() {
        return sprintf( ' <div class="author vcard">%4$s</div><div class="author-wrap"><span class="label">Escrito por:</span><a href="%1$s" title="%2$s" rel="author"><span class="author-name" itemprop="name">%3$s</span></a></div>',
                esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
                esc_attr( sprintf( __( 'View all posts by %s', 'generatepress' ), get_the_author() ) ),
                esc_html( get_the_author() ),
                get_avatar( get_the_author_meta( 'ID' ) )
        );
    } );
    // Filter meta items to display date and author
    add_filter( 'generate_header_entry_meta_items', function() {
        return array(
            'author',
            'date',
            'social-icons',
        );
    } );

    For example, it is compatible with Yoast, Rank, but not other SEO plugins.

    Thanks.

  • Hi there,

    What do you want it to show?

  • Author, author image, author tittle.

    Thanks.

  • Where are the author image and author title from?

  • Post or page.

    With Yoast, Rank is ok, but with ohter plugins not show.

  • As we don’t know how other plugins are adding those author metas.

    You will need to reach out to the plugin’s support and ask them how to pull the author image and author title, then we can integrate their code to your current code.

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