Tags not working in one theme, but working in other theme
-
I have got a very wierd problem at my site:
Using the (heavily modified) Lowstream-theme, Tags show up fine ( using<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h2>
” rel=”bookmark” title=”Permanent Link: <?php the_title(); ?>”><?php the_title(); ?>
</h2><?php the_content(‘<p class=”serif”>Read the rest of this entry »</p>’); ?>
<?php link_pages(‘<p>Pages: ‘, ‘</p>’, ‘number’); ?><p class=”meta”>
<?php the_time(‘j F Y’) ?>| <span>” title=”Read the comments to this post”>Comments</span>
| <span>” rel=”trackback” title=”Leave a Trackback” >Trackback-URI</span>
<?php edit_post_link(‘ Edit’,’|’,”); ?></p>
<div class=”meta”><?php the_tags(‘tagged ‘, ‘ & ‘, ”); ?></div>
<ul class=”postnav”>
<li class=”left”><?php next_posts_link(‘Earlier Posts’) ?>
<li class=”right”><?php previous_posts_link(‘Later Posts’) ?><?php comments_template(); ?>
<?php endwhile; else: ?>
<h2>Post Not Found</h2>
<p>Looks like you’ve run into some trouble. There’s no post designated at this permalink.</p>
<?php include_once (TEMPLATEPATH . ‘/searchform.php’); ?><?php endif; ?>
.
Now i have switched to a new theme, and the tags no longer work. I did ad the_tags() to the theme:<?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
<div class=”post”>
<h2 class=”post-title”>” rel=”bookmark” title=”Permanent Link: <?php the_title(); ?>”><?php the_title(); ?></h2>
<p class=”day-date”>Posted by <?php the_author_posts_link() ?> on <?php the_time(‘d M Y’); ?> at <?php the_time(‘h:i a’); ?> | Tagg
ed as: <?php
$posttags = get_the_tags();
if ($posttags) {
foreach($posttags as $tag) {
echo $tag->name . ‘ ‘;
}
}
?> <?php edit_post_link(); ?></p>
<div class=”post-content”><?php the_content(‘Continue Reading »’); ?>
<p class=”post-info”>
<?php comments_popup_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?>
</p>
<!–<?php trackback_rdf(); ?>–>
</div></div>Somehow, this does not work. The Posts definetly have tags. Any Ideas what i did wrong?
- The topic ‘Tags not working in one theme, but working in other theme’ is closed to new replies.