Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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, 08: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, 10: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, 07: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, 03: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 07:18 PM
Drop shadow in center column kal Header configuration & styling 6 Jun 18, 2009 08:39 PM
Center Column chiaxiong Atahualpa 3 Wordpress theme 1 Apr 8, 2009 07:28 PM
[SOLVED] How do I fix the width of the center column? weightlosscoach Sidebars & Widgets 3 Mar 23, 2009 04:01 PM
Center column content not displaying in IE Bourbonthrall Atahualpa 3 Wordpress theme 2 Mar 2, 2009 02:37 PM

All times are GMT -6. The time now is 07:42 AM.

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