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


  #1  
Old Jul 22, 2009, 07:44 AM
majofa
 
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.
  #2  
Old Jul 22, 2009, 09:57 PM
Flynn's Avatar
Flynn
 
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

i.e.

<?php query_posts('cat=12'); ?>
  #3  
Old Aug 13, 2009, 06:15 AM
Sakshin
 
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.?
  #4  
Old Aug 13, 2009, 02:24 PM
Flynn's Avatar
Flynn
 
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

<?php
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');
?>

Bookmarks

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:54 AM.


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