Archived topic
Adding custom field value on top of featured image
2 replies · Started by sheik on March 10, 2018
Hi Tom,
Yet another question ... thanks for your patience.
I created a new custom field (called Status) using the "Custom Fields" section on the create post page.
I was wondering what the easiest way to add this field value on top of the featured image on the single post page.
Can I create a page header and somehow(??) display the field there or do I need to add custom code?
I'd like it done for all posts automatically, if possible.
Thanks
Me again... I am better than I think! :-)
I got this working as well.
For others looking to do this...I did it using GPhook with the following php.
<h3><?php echo get_post_meta(get_the_ID(), 'Status', TRUE); ?></h3>
Along with some css than included negative margins to move the field onto the image.
Glad you got it working! Thanks for sharing the solution :)