SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru
    Join Date
    Oct 2004
    Location
    uk
    Posts
    853
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    displaying custom fields

    Hi guys

    In wordpress, If I added a custom field. Which you enter below the post. How can I make it appear in the post?

  2. #2
    SitePoint Addict
    Join Date
    Mar 2006
    Posts
    367
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do something like this
    PHP Code:
    <?php echo get_post_meta($post->ID'key_name'true); ?>
    See the codex for more examples.
    http://codex.wordpress.org/Using_Custom_Fields


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •