Created
June 16, 2012 07:21
-
-
Save machida/2940369 to your computer and use it in GitHub Desktop.
Call the articles with a specific tag use query_posts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <ul> | |
| <?php if (have_posts()) : query_posts('&tag=wordpress&showposts=10'); ?> | |
| <?php while (have_posts()) : the_post(); ?> | |
| <li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li> | |
| <?php endwhile; endif; ?> | |
| <?php wp_reset_query();?> | |
| </ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment