Support » Themes and Templates » Custom fields not displaying when published

  • annaselway

    (@annaselway)


    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.:-)

Viewing 4 replies - 1 through 4 (of 4 total)
  • irfan_np

    (@irfan_np)

    annaselway

    (@annaselway)

    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

    irfan_np

    (@irfan_np)

    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(); ?>
    ..

    annaselway

    (@annaselway)

    thank-you 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom fields not displaying when published’ is closed to new replies.