Hello
I hope someone can help me. I’ve tried inserting shortcode to display a custom field using this example:
[acf field="name"]
I found the documentation here
I have checked the name of my fields and they appear correct. It is a simple text field.
However, nothing displays. Am I doing something wrong?
Thanks for any advice!
Hi toniolivier,
If you do a quick test we can see what is going on. Create a custom field “Name” and have it show up on a Page(s).
Then create a page and fill in the Name field and in the content area add your shortcode, using the shortcode block. Does the name you entered display?
Hi there
Thanks very much for your response. I’m sorry I was a bit vague in my description. It turns out that the plugin in which I am adding the shortcode is to blame. I was experimenting with something called Media Grid, and the author has just informed me that it is impossible to display shortcode within the overlays as I had hoped.
When I tested the shortcode method in a regular post, it worked as described in your documentation. As long as there is a valid field entry for that post!
Thanks again!