Specific category post to a certain place of theme in WordPress ?


Specific category post to a certain place of theme

 

<h2><a href=”http://mydomain.com/?cat=XXX”>TITLE OF CATEGORY</a></h2>
<?php query_posts(‘category_name=xxxxxxxxxxxx&order=dsc&showposts=12’); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<a href=”<?php the_permalink() ?>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></a>
<br clear=”all”><br />
<?php endwhile; ?>
<?php endif; ?>

Tags: , , , , ,

Comments & Responses

You must be logged in to post a comment.