WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Custom field output (3 posts)

  1. dgraydesign
    Member
    Posted 4 years ago #

    Is there a way to have the custom field value output in something other than a ul? I'd like to put it in an h2 tag.

  2. ericdaams
    Member
    Posted 4 years ago #

    You can output custom field values in whatever way you want: in a list, header, paragraph, etc.

    Use get_post_meta or get_post_custom_values to grab the value and store it in a variable, then echo that variable.

    http://codex.wordpress.org/Function_Reference/get_post_meta
    http://codex.wordpress.org/Function_Reference/get_post_custom_values

  3. dgraydesign
    Member
    Posted 4 years ago #

    Great - thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic