Results 1 to 2 of 2

Thread: Specific category removal using 'exclude=' statement for classipress 3.2.1?

  1. #1
    Thread Starter
    Veteran bleem's Avatar
    Join Date
    Feb 2012
    Posts
    1,572
    Thanks
    104
    Thanked 205 Times in 180 Posts

    Question Specific category removal using 'exclude=' statement for classipress 3.2.1?

    Hi,

    I have a category structure like so:

    Parent - Antiques & Collectables
    Sub-Cat - Antiques
    Sub-sub Cat - Antique Clocks
    Sub-sub-sub Cat - Birch Cuckoo Clock


    This is how it displays on the Category menu list, the Category search drop down list and also the Category directory listing page.

    I would like the ability to remove certain categories from showing at all. Specifically in my case the 3rd and 4th sub categories, so all that show on the Category menu/Category search drop down and Category directory page would be the Parent and first Sub-category.

    This has been possible to achieve in the past using exclude= statment in the following code:

    $cats = get_terms('ad_cat', 'hide_empty=0&hierarchical=0&pad_counts=1&exclude=57,197&show_count='.$cp_cat_parent_count.'&orderby='.$cp_cat_orderby.'&order=ASC');

    Unfortunately the code doesn't exist in Classipress 3.2.1 anymore, so I cannot implement this method of category removal like you could in previous versions.


    Could someone help me please?

    Kind regards


    Bleem

  2. #2
    Thread Starter
    Veteran bleem's Avatar
    Join Date
    Feb 2012
    Posts
    1,572
    Thanks
    104
    Thanked 205 Times in 180 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to exclude posts with specific categories from main blog
    By yours2share in forum Report ClassiPress Bugs
    Replies: 5
    Last Post: November 13th, 2014, 08:32 PM
  2. [MOD NEEDED] Classipress on MultiSite - Display posts from specific category
    By cgervereau in forum ClassiPress General Discussion
    Replies: 2
    Last Post: March 2nd, 2012, 03:16 PM
  3. How do I exclude a category?
    By rhill in forum Help Using ClassiPress
    Replies: 1
    Last Post: June 11th, 2010, 12:49 AM