as ‘get_posts()’ uses the ‘WP_Query()’ parameters, i would assume that this should work:
$laargsM = array(
'cat' => 7,
'posts_per_page' => 300,
'orderby' => 'title',
'order' => 'asc',
'category__not_in' => array(10)
);
Related 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
- Get id of category from drop down menu
- 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
- Show post only if match all categories
- 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
- Show recent posts from one category on a non-WP site
- 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
- get_posts and multiple categories
- Trying to only display 1 category using get_posts
- Get link which associated with a specific category and tag
- WordPress category widget only show categories with children
- Get posts from 2 different categories
- Get posts from specific taxonomy term
- List all posts in a category with query_post() function
- wp_list_pages() exclude category
- Hooking to walker_nav_menu_start_el to insert list of subpages
- get_posts ignoring ‘category’ and displaying all posts
- How to pull a list of posts in a category while exluding posts in subcategories of the category
- Exclude category from query
- Functions.php: Exclude Category from “Blog”
- How to Link to Most Recent Custom Post of Same Term
- get_posts() from parent category only using a shortcode
- Woocommerce filter function not updating
- How to get post with slug and exclude categories
- 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)
- Exclude parent category when getting category posts by slug
- I need to exclude from a query a category and a few custom taxonomies
- Exclude categories by ID
- Exclude categories from homepage not longer working
- Homepage custom recent news
- Showing posts from 2 categories only on category.php
- Exclude the category in WordPress
- How can I exclude a category from the main loop with the category name & not ID?
- get all categories’ latest post in one query
- User level categories
- Exclude category from drop down list form
- Load the last post of a category
- exclude certain categories form archive widget
- How to remove an item from a custom Walker_Nav_Menu
- get_the_category return empty inside loop
- Exclude a category and post_type from wp_query
- How can I exclude a particular category from my WordPress Page 1 and Page 2?
- Get posts base on category ratio of more then two categories
- Media Library Category Exclude Tree
- 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]
- not empty categories don’t show in menu [closed]
- Exclude Category From Home Page, Display Posts on It’s Own Page?
- how to call the category of the post
- How to have a category not show up in query post with page panigation?
- Customize category query in widget
- How to create a custom loop ordered by Categories on a Page Template?
- How to change category id on get_posts array
- get posts from 2 categories. (2 posts)
- Call function on a single page
- how to ask if in two categorys inside if
- Excluding cateory not working on my site. how to solve this? [closed]
- How to define category ID in an array?
- Decreasing the Memory Consumption of a WordPress Site?
- Different templates for parent and children categories/taxonomies
- Unpublish all posts in a category
- Add class to items in wp_list_categories()
- Is it possible to select and edit the way the most recent post from a certain category is displayed on the page?
- Extract image url associated to a category
- How do you categorize pages?
- Order of subcategories
- “Categories” for six authors [closed]
- Category control subcategories
- display posts from specific category on a page , in thematic child theme?
- Display random categories
- why category__and and category__in wont work togather?
- How to prevent tag “iframe” from being deleted from the heading description of rubric?
- How can I make a category function as a page?
- Renaming default category taxonomy?
- Category names dependent on each other?
- Backend – Categories and Menus conflicts
- How to add an empty entry to masonry?
- How to display many photo albums related to category
- Modify functions.php to add a term ‘uses-theme’ set to theme name on post save
- Create custom Perma link
- Add product category to post_class