• Resolved hereintokyo

    (@hereintokyo)


    I am having trouble getting the tags to appear in single.php I have confirmed that my theme does not use start_wp, which apparently causes this problems at times. The code is, I believe within the loop, coming between <?php the_title(); ?> and <?php the_content(‘Read the rest of this entry »’); ?>

    The code in my single.php is below. Anyhelp would be greatly appreciated!

    <div id=”stats”>
    <span><?php the_time(‘j F Y’) ?></span>
    <span>Sector: <?php the_category(‘, ‘) ?></span>
    <?php the_tags( ‘Tags: ‘, ‘, ‘, ”); ?>
    </div>

Viewing 1 replies (of 1 total)
  • One too many quote marks in what you put there. I’ll assume that you don’t put that in your theme code though, since it would probably break it.

    Tags won’t appear in posts that don’t have them, seems obvious I know, but I did the same thing and wondered where they are only to realise I hadn’t actually put tags in.

Viewing 1 replies (of 1 total)
  • The topic ‘<?php the_tags not producing results’ is closed to new replies.