Hey there,
I have always used ACF to integrate with Cornerstone. But now using Metabox for settings pages, I want to display dynamic content from a custom field I set in the back-end.
Please advise,
Thanks!
Hey there,
I have always used ACF to integrate with Cornerstone. But now using Metabox for settings pages, I want to display dynamic content from a custom field I set in the back-end.
Please advise,
Thanks!
Hello @kademcconville,
Thanks for writing to us.
In order to pull the data of the meta box by using dynamic content code I would suggest you use this dynamic content code.
{{dc:post:meta key="your_meta_key_name"}}
Hope it helps
Thanks
Hi there,
I have tried this. But the custom field is not related to the post. It is a global meta value set in a custom “settings page” using Metabox.
So this shortcode doesn’t work…
Hello @kademcconville,
You will use ACF specific dynamic code like {{dc:acf:post_field field="your_meta_key_name"}}
or {{dc:acf:post_field_setting field="your_meta_key_name"}}
.
For your reference:
Best Regards.
Hey,
Thanks for the reply. I am not using ACF, I am using Metabox - https://metabox.io/
Otherwise I would use those ACF features.
Thanks.
Hi @kademcconville,
You can get any post meta value by using the {{dc:post:meta key=“meta_key”}} and specifying the meta_key used for the specific field. For the following example I have used the ticket_type meta key and the Dynamic Content tag looks like the following.
{{dc:post:meta key="ticket_type"}}
Hope it helps.
Thanks
Hey there,
I am not using a Post type.
I have created a “settings” page for the admin area - see: MB Settings Page - Meta Box Documentation
This has created a new table in “wp_options” with new columns “option_name” and “option value” where I want to call “option value” entered in the settings page.
I can see the value in the database, just not sure how to call it with Pro…
Thanks!
I’m assuming I need something similar to:
{{dc:acf:option_field}} shortcode. That’s for ACF, though.
Hi @kademcconville,
Unfortunately, that is not possible to get the option value using the Dynamic Content tag.
Thanks
Another one of the reasons I;m moving away from Pro and to Bricks Builder
Hey @kademcconville,
Sad to hear that. Please understand that Metabox plugin that you are using is not supported by the theme. If you can provide us access to your site, may be we can find another way if it is possible to display those settings in the builder.
Thank you for your understanding.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.