Ads

Select a Category and display in index page of wordpress

September 26, 2009
Filed under: Featured, OpenSource CMS, Wordpress 

Follow the below easy crack steps for word press to show a selected  category on index page

Open the Theme and open index.php

and insert the below link where cat is your category id.

<?php $posts=query_posts($query_string . ‘&cat=8′); ?>

<?php if (have_posts()) : ?>




<?php while (have_posts()) : the_post(); ?>

and this blog.theunical.com is the example of how it looks.

And You check how good the pagination is working too. Only Featured Category are listed in this site main page.

The other steps I see in many sites are waste of time and so complicated, and after doing everything the pagination will not work as to be.

But this step will work 100%

Comments

One Comment on Select a Category and display in index page of wordpress

  1. No_limits42 on Thu, 22nd Oct 2009 6:37 am
  2. Briefly, they are find, identify, select, and obtain. ,

Tell me what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!





*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Anti-spam image