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.

Dynamic social media

  • Hello, is there a way to use GenerateBlocks PRO to add dynamic social media to the author box?

    For example, one author has LinkedIn and Instagram. Another author only has Facebook and Instagram. Ideally, this should work without an additional plugin.

    Alternatively, can I take a dynamic image for the author?

  • Hi there,

    Dynamic author image is straightforward — you can add an Image block and set Author Avatar URL as a dynamic tag.

    Dynamic social media links are a bit more involved since WordPress doesn’t store social media URLs for users by default. The simplest approach without a dedicated plugin would be to add custom contact fields to user profiles with a small snippet in your child theme’s functions.php or a Code Snippets plugin:

    add_filter( 'user_contactmethods', function( $methods ) {
        $methods['linkedin']  = 'LinkedIn URL';
        $methods['instagram'] = 'Instagram URL';
        $methods['facebook']  = 'Facebook URL';
        return $methods;
    } );

    Each author can then fill in their relevant URLs under Users > Profile.

    From there, you can use GenerateBlocks Pro to build your social links:

    1. Add an Icon or Button block for each platform.
    2. Set the link dynamically using an Author Meta dynamic tag and enter the meta key (e.g. linkedin). Make sure the Required to render checkbox is checked!

    That way, only the relevant social icons will display per author.

  • Thank you, I have one more question.

    Is it possible to use Block Elements – Loop Template to create a unique page for each author? Currently, in the Location settings, I only see the general “Author Archives” option, which applies the same design to all authors.

    The main issue is that I’ve already added “Biographical Info” to each user in the WordPress settings to dynamically link it to the Author Box within my posts. However, for the Author Archive page, I want to display much more detailed information (a longer biography).

    If I use dynamic text in the archive template, it pulls the same short bio that is already in the post’s author box. Is there a way to target specific authors with different content, or a way to pull a different “long bio” field dynamically for the archive page?

  • Hello,

    However, for the Author Archive page, I want to display much more detailed information (a longer biography).

    Is there a way to target specific authors with different content, or a way to pull a different “long bio” field dynamically for the archive page?

    You could use a plugin like ACF to create a field group with a location rule of User Role -> is equal to All that contains a long_bio textarea ACF field, that would be the long bio. You could reference that in the loop template as an author meta dynamic tag with the long_bio meta key name.

  • Wouldn’t it be possible to do this using GenerateBlocks Display Condition?

    So there is no way to solve this using only GeneratePress ONE?

  • Hello,

    Yes, depended on how many authors you have, you could have a separate block for each author and display that with GenerateBlocks Display conditions without using a custom field.

    Author condition

  • So, I’ll insert a block element – content template (I use my own template for posts), insert one box for each author, and use conditions to set each one to display where it should? And the other boxes won’t show up in the code? Won’t that slow down the website or mess up the HTML?

  • Hello,

    You will set the conditions just for the author text you want to display not for the whole author box. You will insert as many text blocks as authors. Then, you will show/hide those with conditions. That would be the simplest solution for a limited amount of authors.

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