• I have one category for news articles, but different articles are sorted by special tags. How do I create separate listings of posts based upon their special tags?
    This did not work for me:

    <ul>
     <?php
     global $post;
     $myposts = get_posts('numberposts=5&offset=1&tag=thiskindof_news');
     foreach($myposts as $post) :
     ?>
        <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
     <?php endforeach; ?>
     </ul>

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Listing posts according to tags’ is closed to new replies.