• I have added tags in my posts but tags are no longer showing up in my posts. There is no tag: at the bottom of my posts? I have the new version. Any takers on this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Look at the WordPress Default Theme and how it makes use of the Template Tag, the tags(), in the wp-content/themes/plugins/index.php template.

    Resources:
    Stepping Into Template Tags
    Stepping Into Templates
    Template Hierarchy

    Thread Starter mythaimedia

    (@mythaimedia)

    Well, I thought that might be it so I copied the tag code and put it in my /themes/themename/index.php file and still get NO tags at the end of the post even though I have tags. Here is the code I put:

    <?php the_tags(‘Tags: ‘, ‘, ‘, ‘
    ‘); ?>

    Then you’ll want to paste the code from the template that is in question, at a pastebin, and report the link back here.

    Thread Starter mythaimedia

    (@mythaimedia)

    This is my index page of my theme:

    <?php get_header(); ?>
    <div id=”wrapper”>
    <div id=”content-wrapper”>
    <div id=”content”>

    <?php if (have_posts()) : while (have_posts()) : the_post();
    if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?>

    <?php // check for thumbnail
    $thumb = get_post_meta($post->ID, ‘Thumbnail’, $single = true);
    // check for thumbnail class
    $thumb_class = get_post_meta($post->ID, ‘Thumbnail Class’, $single = true);
    // check for thumbnail alt text
    $thumb_alt = get_post_meta($post->ID, ‘Thumbnail Alt’, $single = true);
    ?>
    <div class=”post-wrapper”>

    <div class=”post”>

    <div class=”homepost-left”>
    <div class=”thumbnailwrap”>
    <?php // if there’s a thumbnail
    if($thumb !== ”) { ?>

    <img src=”<?php echo $thumb; ?>”
    class=”thumbnail-home” width=”94px” height=”94px”
    alt=”<?php if($thumb_alt !== ”) { echo $thumb_alt; } else { echo the_title(); } ?>”
    />

    <?php } // end if statement

    // if there’s not a thumbnail

    else { echo ”; } ?>

    </div>
    <?php Show_Dropdown(); ?>
    </div>

    <div class=”homepost-right”>
    <span class=”titles”>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></span>
    <?php the_content_limit(300, “”); ?>
    </div>

    </div>

    </div>

    <?php comments_template(); ?>

    <?php endwhile; ?>

    <p class=”pagination”><?php next_posts_link(‘« Previous Entries’) ?> <?php previous_posts_link(‘Next Entries »’) ?></p>

    <?php else : ?>

    <h2 >No Results Found</h2>

    <p>Sorry, your search returned zero results. </p>
    <?php endif; ?>

    </div>
    </div>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    </body>
    </html>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Tags not showing’ is closed to new replies.