sf_wind
Member
Posted 2 years ago #
Hello, I just instealled domain-theme plugin for my wordpress. Now two domains can show different themes. Now I want to omit certain categories for one domain and keep them in another. The description in the plugin says it can be done. But I can't find any instruction on how to do it.
Anyone has tried it? Any suggestions? Thanks a lot.
ssgupta
Member
Posted 2 years ago #
You can read here: http://codex.wordpress.org/Template_Tags/wp_list_categories
Basically, you add "exclude" in the tag like this:
<?php
wp_list_categories('exclude=4,7&title_li='); ?>
to exlcude one or more categories. Use "exclude" in one of the themes only.
sf_wind
Member
Posted 2 years ago #
Thanks. but I want to exclude all the posts in the categories as well.
Some theme do not use wp_list_ccategories. What should I do in that case? Thanks