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 » Center area post/pages »

[SOLVED] How can I show post only from two categories?


  #1  
Old Dec 6, 2010, 10:29 AM
Flinxa
 
70 posts · Sep 2010
Hi

I want for my site www.fabforties.de the articles from one categroy in the left sidebar, but not in the center. The articles from the two other main categories should appear as usual.

I am quite sure this is not difficult, but what do I have to do??

Thanks
Flinxa
  #2  
Old Dec 6, 2010, 05:40 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
I would search for plugins to do that. I have seen plugins to restrict the cats in the sidebar. There are plugins like List Category Posts and there is a custom query template in the Gold Forum to limit the page to a particular category or categories also.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old Dec 7, 2010, 02:51 AM
Flinxa
 
70 posts · Sep 2010
I know the "List Category Posts".

Do you know if I can use the "catlist" in the loop?
  #4  
Old Dec 7, 2010, 10:37 AM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
I never tried but I suspect the shortcode will only work in a post or page.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #5  
Old Dec 7, 2010, 11:53 AM
Flinxa
 
70 posts · Sep 2010
I put the following code int the area "above the loop"

PHP Code:
<?php if (is_home() || is_front_page()) {
query_posts($query_string "&cat=8,36&posts_per_page=6"); } ?>
and this works good! Quite easy :-)
  #6  
Old Dec 7, 2010, 02:12 PM
lmilesw's Avatar
lmilesw
 
10,176 posts · Jul 2009
Central New York State USA
Nice work. Good solution.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Show one page with all categories and posts marced Center area post/pages 7 May 14, 2011 01:12 PM
[SOLVED] Show full post instead of summary for one-post categories hannamargolien Page & Category Menu Bars 5 Aug 31, 2010 02:00 PM
Categories, will not show ducker Page & Category Menu Bars 1 Jan 25, 2010 10:08 AM
Do not show one or more categories in recent post list megatrader Page & Category Menu Bars 4 Oct 5, 2009 11:16 AM
Show empty categories olsonsp4c Page & Category Menu Bars 2 Apr 22, 2009 10:41 PM


All times are GMT -6. The time now is 12:40 AM.


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