Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Page & Category Menu Bars »

Only one category in center column

Old Jul 22, 2009, 07:44 AM
13 posts · Jul 2009
I want to display only one category in the center column, but I have not been able to figure out how to make it work.

My center column displays all categories in the site.
Old Jul 22, 2009, 09:57 PM
Flynn's Avatar
3,768 posts · Oct 2008
Munich, Germany
You can set query_posts right before the "Loop" begins http://codex.wordpress.org/Template_Tags/query_posts

Put the code at the bottom of Style & edit CENTER COLUMN -> Content ABOVE the LOOP


<?php query_posts('cat=12'); ?>
Old Aug 13, 2009, 06:15 AM
66 posts · Aug 2009
Amsterdam, Netherlands
Helpfull, but if I want to have a different categorie on different static pages? Then I glue in the above code into the text area of each page with the corresponding cat nr.?
Old Aug 13, 2009, 02:24 PM
Flynn's Avatar
3,768 posts · Oct 2008
Munich, Germany
You're basically replicating what's already built into WP, no? A category page when clicked would list all posts filed in that category.

The code for doing this with query_posts regardless would be

if ( is_page('Page Title') ) query_posts('cat=12');
if ( is_page('Other Page Title') ) query_posts('cat=22');
if ( is_page('Yet Page Title') ) query_posts('cat=32');
if ( is_page('One More Page Title') ) query_posts('cat=42');


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Center Column Overlapping Right Sidebar nselegzi Sidebars & Widgets 11 Dec 1, 2009 06:18 PM
Drop shadow in center column kal Header configuration & styling 6 Jun 18, 2009 07:39 PM
Center Column chiaxiong Atahualpa 3 Wordpress theme 1 Apr 8, 2009 06:28 PM
[SOLVED] How do I fix the width of the center column? weightlosscoach Sidebars & Widgets 3 Mar 23, 2009 03:01 PM
Center column content not displaying in IE Bourbonthrall Atahualpa 3 Wordpress theme 2 Mar 2, 2009 01:37 PM

All times are GMT -6. The time now is 05:00 AM.

Powered by vBulletin® Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.