Support » Themes and Templates » Display a Specific Custom Field

  • I want to be able to place a custom field (code for a linked image) before the title of the post.

    I have been reviewing the documentation page, Using Custom Fields and trying different variations.

    I can get it to display the code I want (and therefore the linked image) by using <?php the_meta(); ?>, but it also gives me the key name, which I don’t want, and even though I can dispense with this (display: none) in the css, this is sloppy because it will pull out all keys and values for any custom fields. I would like to be as specific as possible, in case I want to use other custom fields for other purposes and in other places.

    So my question: What php code do I need to get it to give me only the VALUE for the key “image”?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display a Specific Custom Field’ is closed to new replies.