StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-24-2009, 01:58 PM
vvillanova vvillanova is offline
Registered User
Pro Plus Member
 
Join Date: Dec 2008
Posts: 7
Default Manipulating the page_blog.php file

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -5. The time now is 07:55 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.