WordPress.org

Ready to get started?Download WordPress

Forums

Custom fields not displaying when published (5 posts)

  1. annaselway
    Member
    Posted 2 years ago #

    Hi, I have found custom fields in the screen options section of the post user interface. I have created a field but when I publish it is not displayed.

    my site is http://www.annasdesk.com and I am using the twentytwelve theme.

    I am new to wordpress so I appologise if its a simple fix, I just cant find it.

    I would very grateful for any help.:-)

  2. irfan_np
    Member
    Posted 2 years ago #

  3. annaselway
    Member
    Posted 2 years ago #

    ty, I had looked at the page, I am still not sure where to put the code they suggest
    <?php the_meta(); ?>

    is it in my index.php file?

    sorry I am very new to wp

    thank-you

  4. irfan_np
    Member
    Posted 2 years ago #

    Inside index.php
    inside the loop

    <?php if(have_posts()) : ?>
    
    		<?php while(have_posts()) : the_post(); ?>
    
    		<div id="post-<?php the_ID(); ?>" <?php post_class('entry'); ?>>
                      <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permalink to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    <?php the_meta(); ?>
    ..
  5. annaselway
    Member
    Posted 2 years ago #

    thank-you :-)

Topic Closed

This topic has been closed to new replies.

About this Topic