[Resolved] Adding custom field value on top of featured image

Home Forums Support [Resolved] Adding custom field value on top of featured image

Home Forums Support Adding custom field value on top of featured image

  • This topic has 2 replies, 2 voices, and was last updated 6 years ago by Tom.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #516466
    sheik

    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

    #516554
    sheik

    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.

    #516753
    Tom
    Lead Developer
    Lead Developer

    Glad you got it working! Thanks for sharing the solution ๐Ÿ™‚

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.