Displaying Custom Fields

Hi Themeco Team,

I just noticed that Wordpress now natively supports Custom Fields. What I’m trying to do is automatically display a post title in a Headline element using Custom Fields. Can this be accomplished?

Thank you!

Hi There,

I recommend you to setup a child theme first:

After that take a look at this article:

https://codex.wordpress.org/Custom_Fields

Hope it helps :slight_smile:

Thank you for the quick reply! I was actually just reading that article, but hoping there was a native way to add Custom Fields within X via dropdown, etc. I’ll work on getting this configured with my Child Theme.

Have a great day!

Hi @bartenderonduty,

Unfortunately, there is none. You have to manually add it within X builder. You can also try installing the bundled ACF Pro plugin, it’s for the custom field but more advanced than the standard custom field and you can place its shortcode within X builder’s text element. Please check this https://theme.co/apex/forum/t/integrated-plugins-acf-pro/49

Or if you wish to create your own custom shortcode for a standard custom field, please check this https://wpmayor.com/how-to-get-a-custom-field-value-via-shortcode/ Custom Fields Shortcode (the simpler of the two)

Thanks!

Thank you again for the reply! Unfortunately the code in that article appeared to have broken my site. However, the code in this article worked perfectly: https://www.isitwp.com/get-custom-field-value-with-shortcode/

Appreciate the support!

You are most welcome!
If you need anything else we can help you with, don’t hesitate to open another thread.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.