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 »

how to show only categories with a high number of posts ?


  #1  
Old Mar 11, 2009, 09:28 AM
elpidiofilho
 
4 posts · Mar 2009
Hi Flynn, I wish to congratulate you for the wonderful theme that you created. I have the following question: My blog has many categories and I want to show the list of only those categories that have more than 10 articles. You could help me with the code in php to do this?

Thank you very much

Elpídio Filho
http://geoprocessamento.geocomciencia.com.br
  #2  
Old Mar 12, 2009, 11:02 AM
elpidiofilho
 
4 posts · Mar 2009
It's possible to do this ?
  #3  
Old Mar 13, 2009, 03:59 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
More info please. Which list, menu bar, widget or archives page?
  #4  
Old Mar 13, 2009, 11:39 PM
elpidiofilho
 
4 posts · Mar 2009
Widget and Menu Bar

thanks

Elpídio
  #5  
Old Mar 17, 2009, 03:43 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
You can exclude certain categories, but I cannot think of anything relatively easy to do this automatically.

To exlude certain categories from the category widget:

Don't use the category widget, use the http://wordpress.org/extend/plugins/php-code-widget/ PHP code widget, use one instance of it in a sidebar and put this code into the widget:

PHP Code:
<?php wp_list_categories('title_li=&exclude=13,83,9,27'); ?>


13,83,9,27 would be the ID's of the categories you want to exclude. More configuration options: http://codex.wordpress.org/Template_...ist_categories

To exclude certain categories from the menu bar:

See Atahualpa Theme Options -> Category Menu Bar ->
Exclude categories from Category Menu Bar?



Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
pagination problem - page 2 of categories don't show up! collymore Page & Category Menu Bars 2 May 17, 2009 09:38 AM
Show empty categories olsonsp4c Page & Category Menu Bars 2 Apr 22, 2009 11:41 PM
Limit the number of Posts on Home Page coaxkid Post-Kicker, -Byline & -Footer 4 Apr 12, 2009 07:01 PM
[SOLVED] Category menu: show empty categories perdox808 Page & Category Menu Bars 2 Apr 8, 2009 10:59 PM
Categories not showing any posts paulae Atahualpa 3 Wordpress theme 2 Mar 10, 2009 07:35 AM


All times are GMT -6. The time now is 08:57 PM.


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