Change OR to AND
Where is your $current_user; variable?
I see it in your code, but not the value that it has.
Please update code
Related Posts:
- Custom post type role permissions won’t let me read
- Showing User’s Post Counts by Custom Post Type in the Admin’s User List?
- Custom Post Types on Category Pages
- Confusion with adding meta capabilities to a role after registering a Custom Post Type with corresponding ‘capability_type’ parameter
- Display content from custom meta boxes in revisions
- Custom taxonomy not showing up when adding a new custom post type
- Including Custom Post Types in “Recent Posts” Widget
- WP cron: when to schedule a 1-time event
- Pre get posts for single post
- Custom Posttype Inheritance (and url structure)
- How to get custom metabox image field?
- Custom Post Types – Capability Type
- Custom Post Type pagination – normal solutions aren’t helping
- Custom Post Type Archives by Date (stored as meta value) WP3.1
- Rewrite permalinks for custom posttype and custom taxonomy
- How to check if last uri segment is a custom post type or taxonomy term?
- Pass parameter to custom post type single while keeping clean url
- Rewrite custom post & taxonomy to share same URL path
- Custom Post Types, Custom Taxonomies and Permalinks ?
- delete custom post based on custom field date
- Load custom post type in a different WordPress installation
- Adding a date archive to Custom Post Type
- Automatic category for a Custom Post Type
- Disable All In One SEO Pack for some custom post types [closed]
- Settings page above CPT page in admin section
- Get the post children count of a post
- Link images to post permalink – custom post types
- Display Custom Category (taxonomy) Name in Custom Post Type
- Recommended way to remove WP REST API returned data for custom post
- Separate Posts and Custom Post Type in Custom Taxonomy archive template
- Order WordPress Custom Taxonomy Pages & Pagination Not Working
- How to use WP_Query in a CPT achive page?
- Have a Custom Post Type index page display taxonomy items instead of posts
- Custom Post Types relationships
- How can i skip same post from taxonomy term?
- Custom Post Type + 20k posts = blank/404 within Admin edit.php [duplicate]
- Rewrite WordPress URL to show CPT meta field data
- just can’t get date-based archives per post-type to work
- Create/Edit posts and auto-redirect back to listing page
- How to load a template without it being assigned to a page/post?
- Is it possible to list and create custom post types with Vimpress?
- Set menu active state for custom posttype and category, given custom taxonomy term
- how to check if custom post type column already exists?
- Custom Post Type Tag Capabilities Not Working
- different post-class when template is loaded via ajax
- Custom post type structure for posts with multiple child posts
- Giving permission to anyone (non-users as well) with a password to edit a post, possible?
- Hide parent categories when clicked, and show it’s childs
- Get unique superset of taxonomy terms from a list of custom posts in another hierarchical taxonomy
- Multiple (two) category postings on the same page.
- Admin Column does not populate with data
- “Submit for review” for updates on existing posts
- Auto Complete Search
- permalink /category/post-name with custom post type and taxonomy
- Creating a Custom Post Type and Joining with Users
- Custom post type pages return 404 page?
- Send a conditional email notification when a custom field value changes in Post Type
- Custom taxonomy page returns 404
- Select other roles as custom post authors
- Why does wp_update_post causes white screen?
- Targeting custom post type via functions.php doesn’t work
- Change WordPress custom field default calendar [closed]
- Show all Tags in each post
- Custom post type to lead to single post type instead of shortcode modal
- Filter posts of custom post type by meta key in (List All Section)
- saving dropdown menu data on custom post type
- List of a specific Custom Post Type in Custom Template
- Custom post type meta box empty after save
- How to add a class to meta boxes (to customize them in CSS)?
- Custom field with Types: get custom field’s value label (of type select)
- display custom portfolio tags
- adding page types in menu
- Custom Post Type and Taxonomy Rewrite Error
- How to add comments to my custom post type but hide it from default WordPress Comments section?
- How do I find the count of the current post?
- Custom post type rewrite slug translate?
- How to display singular_name of custom taxonomy?
- Taxonomy doesn’t follow slug permalink structure
- Query a custom taxonomy in a function to create an csv file
- How to properly get the wp_postmeta.meta_value of a custom post type in specifics?
- Mix Facebook and Twitter feed into custom posts
- Simple Data picker meta box
- Custom post template doen’t have any
- I have a problem with displaying children pages of custom post type
- How can i order my posts by post type?
- Multiple loops for custom post type to spread data across rows
- Why is a custom post type’s URL “/?cposts=name-of-the-post” but default post’s URL is “/?p=ID”?
- Roots: Custom Post Type 404 Not Found [duplicate]
- WP_Query get posts where post_name is empty
- Display all post types together
- Custom Post Type Tags Showing Under Regular Post Tags
- Taxonomy and Rewrite Structure
- Nested loop called with shortcode duplicating the content above the main loop
- Pagination for event query
- Problem retrieving custom field for a custom post type
- Remove custom meta boxes from custom post type
- Paginate yearly archives for a custom post type
- Custom taxonomy meta fields
- Why does wp_generate_uuid4() timeout?
- Delete Term from Custom Taxonomy using wp_delete_term isn’t working