Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   how to show only categories with a high number of posts ? (http://forum.bytesforall.com/showthread.php?t=720)

elpidiofilho Mar 11, 2009 08:28 AM

how to show only categories with a high number of posts ?
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

elpidiofilho Mar 12, 2009 10:02 AM

It's possible to do this ?

Flynn Mar 13, 2009 02:59 PM

More info please. Which list, menu bar, widget or archives page?

elpidiofilho Mar 13, 2009 10:39 PM

Widget and Menu Bar



Flynn Mar 17, 2009 02:43 PM

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?

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

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