Archived topic
CPT UI + ACF: Not displaying fields in post.
5 replies · Started by Tom on February 3, 2022
Hi,
A couple years ago I worked in a different theme with ACF and CPT UI.
Having trouble with this site. BUT being new to Generate Press, I have a feeling it's something I am doing wrong.
Generate Press 3.1.2 (generates a Child Theme)
GP Premium 2.1.1
Wordpress 5.9
CPT UI 1.10.2
ACF 5.11.4
- In ACF - I created a Field Group called "Position."
- In CPT I created a post called "Welder"
- When I go to EDIT the Welder Post - all the fields appear at page bottom. So I know the association is correct.
- At the top of the page - I typed "Welder" in the title.
- I then added a couple short code field "calls" (I don't know what the proper term is for them.
[acf field="{$brief_description}"]
[acf field="{$pay}"]
- "brief_description" and "pay" are the field names.
- I save and went to preview.
- The title appeared "Welder" but nothing else did
Any help is appreciated. Thank you.
Please see attached image link
https://imgur.com/a/Z70AAVo
THANKS
made images public.
Hi Tom,
Any particular reason for wrapping the shortcode attribute values w/ {}? I believe that's likely why there's not output.
Can you try and see what happens if it's simple [acf field="brief_description"] and [acf field="pay"]?
Elvin - you are awesome my friend. I am not really a developer - but I try to read, and implement what I read. But - if its in a different context of code application - well then, this is where I end up. I figured I was doing something wrong.
Appreciate it my friend! Thank you!
No problem. Glad you got it sorted. Let us know if you need further help. :D