WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Domain Theme] How to omit select categories for one domain but not for the other? (3 posts)

  1. sf_wind
    Member
    Posted 5 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.

  2. ssgupta
    Member
    Posted 5 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.

  3. sf_wind
    Member
    Posted 5 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

Topic Closed

This topic has been closed to new replies.

About this Topic