Custom Post Types and the_tags
-
I’m using a custom post that’s functioning just fine in my template, but I can’t seem to get
the_tags
to play nicely with it. Here is my code:<?php $loop = new WP_Query( array( 'post_type' => 'portfolio-artwork', 'posts_per_page' => 5 ) ); ?> <?php while ( $loop->have_posts() ) : $loop->the_post(); ?> <div class="thumbnail"><a>" title="<?php the_title(); ?>"><?php echo strip_tags( get_post_meta($post->ID, 'Medium-Sized Thumbnail', true), '<img>' ); ?></a></div> <h3 class="worktitle"><a>" title="<?php the_title(); ?>"><?php the_title(); ?></a>, created in <?php the_time('F Y'); ?></h3> <p class="portfolio-page-tagged">Tagged under <?php the_tags('', ', '); ?></p> <div class="hrmedium"></div> <?php endwhile; ?>
Everything is coming out as it should, but nothing is coming up for
the_tags
. I don’t have any rag-related plugins installed, either. Any ideas?Cheers,
Lelia
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Custom Post Types and the_tags’ is closed to new replies.