• Resolved Apple.R

    (@red-apple)


    Hi,

    I am working on the author archive page. On the page, I show the custom field which is the author image. I also show all posts related to the author. When I render the addtoany on the template, I use the shortcode.

    echo do_shortcode( ‘[addtoany url=”‘ . $post_author_link . ‘” title= “‘ . $post_author . ‘” media=”‘ . $author_image_url . ‘”]’ );

    Image issue:
    On the frontend, I can see the “data-a2a-media” property contains the author image that I set from the shortcode. However, the author’s image that shows on social (Linked and Twitter), is always from Gravatar.

    Description issue:
    I also have the custom field for user profile description and I would like to share this data on social as well.

    Is it any way to fix this issue?

    Thanks,
    Apple

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author micropat

    (@micropat)

    Hi Apple,

    The shortcode’s media attribute is for arbitrary image sharing that only a few services like Pinterest support, so you probably want to remove the media attribute and adjust the author pages’ meta tags instead.

    The plugin’s FAQ on Facebook sharing offers some WordPress-specific guidance as well.

    Thread Starter Apple.R

    (@red-apple)

    Thank you for your reply. I already removed the media attribute from the shortcode. In my case, I use the Yoast SEO plugin so I manage to use the metadata API for fixing the OpenGraph data on the author achieve page. The issue is resolved now.

    I love your plugin. Thank you again for the fast reply.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom author image doesn’t show in the sharing link’ is closed to new replies.