Site logo

Archived topic

Dynamic Social Links

1 reply · Started by Anastasia on July 4, 2022

Viewing posts 1–2 of 2

Greetings,
I'd like to know if there is any chance to echo social links inside a post type loop.

I've created a custom post type for team members where inside Team member single page I made a layout containing social links as well.
PrintScreen1

Then I've created an Elements layout in order to display the team members into a specific page.
PrintScreen2

Everything works ok unless the social links where I need to display. Is there any chance of displaying that element for each team member?

I use both GP Premium & GenerateBlocks Pro and ideally I don't won't to use ACF or something similar.

Hi there,

The core Social links block saves the link in the block HTML, its not accessible outside of that
So, the social link would need to be stored somewhere in the post meta. Which would require either WordPress Custom Fields or ACF or a metabox saved in your Team CPT.

This archived topic is closed to new replies.