If retrieve_cat_data_sp is the function from this question then that returns categories except the ones given in the argument:
$cat_lists = retrieve_cat_data_sp('81');
It essentially a wrapper for get_categories
. So to exclude multiple Ids
$cat_lists = retrieve_cat_data_sp('81,82');
If you want to exclude 81 as well as those IDs listed in get_option('bn_exclude_home_lists')
then, assuming that option returns something in the form of comma separated IDs '12,13,36'
:
$exclude = (get_option('bn_exclude_home_lists') ? get_option('bn_exclude_home_lists'):'');
$exclude .=',81';
$cat_lists = retrieve_cat_data_sp($exclude);
Related Posts:
- exclude category from get_posts?
- Exclude the category from the WordPress loop
- Exclude certain category from latest updates
- Exclude categories from Loop, queries, widgets, post navigation
- List posts by category exclude current post
- wp_list_categories exclude not working
- Excluding a category from next and previous post links
- Exclude Category From Home Page, Display Posts on It’s Own Page?
- How to exclude categories from recent posts, recent comments & category widgets?
- Exclude a category from the filed under list only on some templates
- How to exclude posts from a category when using this particular format
- Exclude category from Tag Template
- exclude post from displaying in loop if it is in a category, but not in many categories
- I need to create a search form that will display search results from specific category
- Exclude Posts From Specific Category from Next and Previous post links
- Query Posts Exclude Entire Category
- exclude categories from search results
- Exclude category from fucntion
- WordPress category widget only show categories with children
- wp_list_pages() exclude category
- Exclude category from query
- Functions.php: Exclude Category from “Blog”
- Woocommerce filter function not updating
- wp_list_categories not excluing multiple ids
- How to exclude posts from category posts count
- Exclude category from foreach loop
- Have posts that belong to multiple categories, exclude some categories from homepage
- Exclude all subcategories in the_category (post)
- I need to exclude from a query a category and a few custom taxonomies
- Exclude categories by ID
- Homepage custom recent news
- How can I exclude a category from the main loop with the category name & not ID?
- User level categories
- Exclude category from drop down list form
- exclude certain categories form archive widget
- How to remove an item from a custom Walker_Nav_Menu
- Exclude a category and post_type from wp_query
- How can I exclude a particular category from my WordPress Page 1 and Page 2?
- Exclude category from WP_Query args not working
- Displaying Category in sidebar post widget but not in the loop on home
- Category menu that filters out empty categories
- Problems with explode [closed]
- Exclude Category From Home Page, Display Posts on It’s Own Page?
- How to have a category not show up in query post with page panigation?
- Customize category query in widget
- Call function on a single page
- Excluding cateory not working on my site. how to solve this? [closed]
- How to define category ID in an array?
- Could not insert term into the database
- How can I get category ID by category name?
- How would I increase the Author Role to be able to add a new category?
- Randomise results from a category page?
- Adding Custom User Profile data based upon Categories
- Only show category to certain user levels without plugin
- Custom Query to search through categories
- Order posts by category name
- How can I make wp_list_categories output li with category-slug as class, for its children?
- Get sticky post from category?
- Remove word “Category” from WooCommerce product page [closed]
- Display name of the last child category
- If in category to be inside of a function
- Viewing category pages without the word ‘category’ in URL
- How to view WordPress’ default category IDs?
- how to change template?
- Multiple Domain Names – One WP Install (non-Multisite) – Default Each Domain name to Product Category WooCommerce
- Hard coded main navigation
- Display posts separated by Category in Author’s page
- The arrangement of categories always change while posting article
- List posts in alphabetical order
- Categories list loop – add separator every 3 categories [closed]
- Get the ID of 10 Latest Pages stored in a WordPress Category
- Admin: Navigation Menus do not show empty categories/taxonomies in the list’s search tab
- getting post data in functions.php
- How can i remove the posts category class names from body_class
- Different Category Headers using in_category and elseif
- Remove the number of posts displayed in wp_list_categories()
- related articles using shortcodes
- “Virtual category page” based on a custom field filter
- Show category meta in loop on homepage
- How to get selected taxonomy or category ID if using custom walker?
- Category link redirect to custom template page instead of index.php?
- Rebuilding a Site: How to Show Several Category Posts in Woo Framework Theme?
- the_category() doesn’t working in wp_query loop
- Displaying links to all posts of the same category on the post page
- handling the featured category
- Better way to exclude category output for post/pages?
- 3.1 post formats and specific categories/custom taxonomies
- sidebar troubles, taxonomy trouble
- Code for Category, Tags, Archive URLs
- Duplicate new categories across multisite network
- Template category.php with page (no posts)
- How to create Child Category page from scratch at wordpress?
- How to insert category to post via php?
- How to set featured image as background for a specific category?
- Show Subcategory Name Instead of Parent Category
- Limit Category/Tag Dropdown To blog_id in Multisite Install With Global Categories/Tags
- Code to display category-specific single.php is overriding normal single.php, too
- Media Library filter returns undefined function get_current_screen
- get IDs from links categories
- Display all subcategories for a product category in woocommerce