I am building a real estate site with a two CPTs (Listing and Agent) and ACFs. I have built a little plugin to add a shortcode on Listing CPTs that will show information from a Post Object field. On Listings I want the associated agent (that’s the post object field) with name (post title), headshot (featured image), and contact info (ACFs in the Agent CPT).
The title and featured image are displaying correctly but the phone and email text fields are not displaying at all. I’m following the model code in the documentation. Here is my plugin code.
ACF PRO’s Flexible Content field allows you to create smaller pieces of UI and compose them into whole flexible patterns. In our latest article, we show how to use it to create swappable site sections and integrate it all in a theme.https://t.co/ZRocH8oJSp