WordPress Custom Fields template usage

Last updated on

To get a custom field named color.

get_post_meta(get_the_ID(), 'color', true);

If you’re using the Advanced Custom Fields plugin, try


Let me know if this helped. Follow me on Twitter, Facebook and YouTube, or 🍊 buy me a smoothie.

Leave a reply

Your email address will not be published. Required fields are marked *