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?
- exclude certain categories from the list at the end of the blog post
- Exclude category when displaying all categories assigned to a post
- How to create an automatic MultiColoumn MegaMenu with Categories WordPress
- Is There a Difference Between Taxonomies and Categories?
- Get Posts Under Custom Taxonomy
- List all subcategories from category
- How To Find Out WordPress Category Table in MYSQL?
- Add custom field to Category
- Get Category ID inside Category template
- Only one category per post
- WordPress Multisite – global categories
- Get the children of the parent category
- Get posts from sites in Multisite?
- WP REST API: filter by category 1 AND category 2
- How To Get Parent Category Slug of Current Post
- Display All Products by Category with WooCommerce
- What is the difference between a “tag” and a “category”?
- Is there an easy way to make a meta box have the tabs like the Categories meta box has?
- How to check if I’m on the last page of posts?
- Display posts from the same category using next/previous post link
- How would I get a taxonomy/category list inside a Gutenberg block?
- Can I set a default featured image for a category?
- Check if a post is in any child category of a parent category