Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the astra-addon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/u132077563/domains/indialinkers.com/public_html/wp-includes/functions.php on line 6121
Showing category specific wordpress posts | Goelji.com

Showing category specific wordpress posts

Displaying category specific posts in a wordpress blog is easy. Inside theme folder the you will find “index.php” and “sidebar.php” templates, you have to put a query_posts functions which refer to specific category ID numbers from your database. Example:

<?php query_posts('showposts=1&cat=4'); ?>

You will need to change them to reflect the ID numbers in your own database. They can be found in your control panel under Manage->Categories.

idnumbers1.gif

Result will be the recent posts from the category no.4