Inclusion and exclusion are often reversible. “Not this” (exclusive) is equal to “All of that, skipping this” (inclusive).
If in general the function does precisely what you need, you could just make a full list of user IDs and throwing the current one out.
Related Posts:
- taxonomy list display custom post count
- get_queried_object error How to show post count by month in the taxonomy page
- custom post type category count shortcode
- WordPress Count posts within a custom post type
- Display custom post counts for author , not default posts
- How do I find the count of the current post?
- Get queried object for custom post type count
- Add extra parameters after permalink?
- Limit the word count in the post title
- Correct Post Count ( All | Published | Drafts | Pending | Trash ) for Custom Post Type when restricting to view own posts
- How make get_next_post() return first post when viewing last one
- modify all posts of a category to “no comments allowed”
- Count custom post types with a specific meta value
- How do I write this SQL statement for Posts written in last 24 hours?
- 960gs different classes on teasers posts
- Structuring a product catalogue in WordPress [closed]
- ascending order custom post type
- How can I fix a slow redirect after form submit from frontend (no plugin)?
- How to show post title outside of loop? [closed]
- Change Post Title Edit Box
- Multiple information using custom post type
- Disable feeds for specific custom post types
- Disabling post_type in URL
- Before Delete Post
- Display types of posts in edit.php instead of All, Published, Scheduled and Draft
- Making pages also serve as taxonomies? Or give full pages to taxonomies?
- Why does using WP_Query inside a shortcode in an elementor page cause the arguments for WP_Query to get malformed?
- Check Title Unique Or Not and If not error message and dont save
- I am having a problem with form updating/editing WordPress post on the frontend
- How to filter the taxonomy terms based on another taxonomy term
- Why my custom post posts aren’t showing (404 error / page not found)
- Automaticly add slug to posts
- Trying to edit the single page from a Custom Post
- How to Submit Post Via cURL & PHP
- Count all comments of a custom post type
- apply filters only to specific post listing without check the url parameters
- is there a way to retrieve posts that do not have a featured image assigned?
- Deleting Custom Post type data using mySQL command
- Query/list all terms and their custom post count
- Post image in WordPress not appearing on home page
- Custom Post Slug same as Parents Category Slug
- How to get all tags of a custom post type by id
- How to define which register_post_status goes to which register_post_type?
- How to sort posts in a custom post type by title in ascending order by default?
- How to display author post count for multiple custom post types?
- Conditional for a Single Post That Belongs to a Category?
- $post not working working in AJAX plugin with custom post type
- Load Next WordPress Posts With AJAX?
- Multiple pages per post (not pagination)
- If there is only one post (show elements) else (show other elements)
- Variable not working in WP_Query
- What’s an efficient way to change the post status of many posts at once?
- Custom post type menu
- Query within a foreach within a query (queryception)
- How to implement a different permalink structure for custom post type?
- WordPress notification if new post published
- How to handle new post from API request?
- Restrict category access to specific users/groups. Author always has access
- How do I edit the WordPress post.php file?
- Posts are not rendering perfectly [closed]
- Render a Post or Page using the correct file
- How to count other posts not having specific taxonomy terms?
- Copy/Move selected taxonomy terms to another taxonomy for posts
- WordPress post carousel
- how to redirect to a custom post template
- Custom post type tags not showing in search
- How to setup different permlalinks for posts and pages?
- Search CPT by tag ids
- Display category filters for custom post type when category is shared by multiple post types
- wp_post_delete is deleting all offices
- Why doesn’t wp_delete_post allow trashing for custom types?
- post type => ‘any’ not applied my custom queries
- Using Orderby and meta_value to order natural/alphanumerical
- WP_posts (Not meta) extra custom field column show and change it in a custom post type
- how to make custom post with “publish” default functionality not save in draft?
- Post that populates itself (almost) automatically using data from imported excel file
- Work and Display a Custom Post Type as a normal Post
- Most efficient way of showing children posts?
- creating a custom post template
- Columns depending on posts count
- Custom post type with two templates
- One Post with different content, depending on a Page
- how to edit custom fields of type gallery from front-end
- Custom Post Type URL Rewriting
- How can I convert custom posts types into regular posts?
- How to Arrange Support => Thumbnail
- Post Editor: display categories from current post type taxonomy only?
- Get All post that is in table
- custom field suit new post with in custom fields
- Using predefined html in new posts
- Change display wp post type to wp custom post type
- Dynamically change post_parent in every page load?
- Top 30 Songs using Custom Post Type
- How to make a list of posts displaying them 5 by 5 with a “next posts” link?
- Can a user drop a HTML Shadow DOM into a blog post?
- show only one category posts in admin
- my custom_post_type does not appear in my web page…how?
- Wp-theme Development
- How to get permalink of post based on post name?
- Change post-name when inserting new Post if Specific Category is selected in WP