Display feat. img of custom post type dynamically on blog post header template
-
Hello,
I need some help using the shortcode[pods]
to dynamically display the featured image of a custom post based on bi-directional relationship pods.Setup:
I created two pods 1) User extension bi-directional that links to a custom post type, called ‘Team Members’.
2) Post Type extension for post type ‘Team Member’ bi-directional that links to the WordPress User.
3) ‘Team Member’ posts have featured images.
4) Each WordPress User has a ‘Team Member’ post with their name as the title, included Bio, and an selfie set as the featured image.Now either on the WP User or within a post of the ‘Team Members’, I can select the WordPress User on the post or the Team Member on the user to link them using dropdown, thereby linking each user with their associated Team Member post that contains their Bio and photo set as the Featured Image.
My goal here is to set blog posts in WordPress to particular Authors or WP Users. The blog posts are calling a header template I created that display the Title and Author’s (wp User) name, which is pretty typical. Now that each User is associated with a Team Member post, what would need to be included in
[pods]
shortcode to dynamically display the associated Team Member featured image in the header template?Any help is greatly appreciated!
Justin
- The topic ‘Display feat. img of custom post type dynamically on blog post header template’ is closed to new replies.