![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
In the page_blog.php file, this is the code to pick up posts with the single category "News."
<?php $blog_cat_1 = get_option('metro_blog_cat_1'); $blog_cat_1_num = get_option('metro_blog_cat_1_num'); if(!$blog_cat_1) $blog_cat_1 = 1; //setting a default ?> <?php $page = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=".$blog_cat_1."&showposts=".$blog _cat_1_num."&paged=$page"); while ( have_posts() ) : the_post() ?> How do I change it so that it picks up a different single category? |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Where in page_blog is cat ID? | allinternet | General Discussion | 3 | 08-14-2009 02:14 PM |
| Modifying the page_blog.php | JoeS | General Discussion | 17 | 07-20-2009 09:47 PM |
| Changes to page_blog.php not taking effect | carl@cecsearch.com | General Discussion | 14 | 05-07-2009 09:38 AM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us