Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Display WP custom field Key & Value

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #29613
    doobie
    Member

    Hello Tricksters,

    I’m trying to echo a custom field key and value pair. I know how to echo just the value associated with the key, but am wondering if there is a shortcut for echoing both the value and the key. It seems silly to have to hard code the Key Title into a theme file to display it, but if that’s the case…

    Thanks!

    -Doobie

    #79724
    Chris Coyier
    Keymaster

    the_meta() by default displays both keys and values:

    http://codex.wordpress.org/Function_Reference/the_meta

    #79782
    doobie
    Member

    Thanks Chris! That’s just what I was looking for.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Back End’ is closed to new topics and replies.