This could be simple as:
global $post;
if ( user_can( $post->post_author, 'manage_options' )){
// this is an admin
} else {
// this is not
}
Assuming the only admins on your site can manage options.
Related Posts:
- Ordering posts by custom taxonomy in admin area
- Get template part based on custom taxonomy term
- If on term-page -> get the current term?
- How to customize admin posts based on the user who is logged in
- Customize my custom taxonomy table in Admin panel
- Get parse_query filter to return slug instead of id
- Conditional Query of Custom Post Type and custom taxonomy
- Showing taxonomy terms on custom post type
- Conditional Statements
- If custom taxonomy else conditional [closed]
- Add category base to url in custom post type/taxonomy
- Display all posts in a custom post type, grouped by a custom taxonomy
- How to Make an admin_notices Message That Disappears Once the User Leaves That Particular Page?
- Ordering Posts List By Taxonomy Terms?
- has_term or in_category for Custom Post Types
- WordPress Custom Post Type Category Page
- post count is wrong when using same taxonomy for 2 different CPT
- Issues when rewrite rules collide?
- Unable to save custom taxonomy terms in a custom-built metabox
- Archive page for taxonomy of custom post type
- CPT tax slug conflict with post type slug
- Custom post type archive with dynamic taxonomy filtering – is it possible
- Multiple Archive Pages for Custom Post Types AND Taxonomies
- Exclude current post when getting related post on custom post type and taxonomy
- Display Posts of a Category in Alphabetical Order (Custom Post Type)
- Custom post types, taxonomies, and permalinks
- How can I display my custom metaboxes on a custom post template?
- How to specify URLS for custom posts & taxonomies
- Taxonomy.php Not Showing Posts
- custom comments on specific post type
- Taxonomy Archive: Display only one post per term from separate custom taxonomy
- using $wpdb to get custom post type with term
- Categories sorting
- WP_Query most viewed posts, in multiple Post Types, last 30 days, excluding a specific taxonomy term
- Allow user to set custom order to a list of custom taxonomies?
- Disable block with taxonomies at post page
- No Permission to add new Page, Post or CPT with Admin role
- Sort and filter custom post type posts by custom taxonomy
- Terms showing up in object cache on unrelated pages
- Hierarchical permalinks for custom post type and taxonomy
- Best way to specify “article type” in URL
- Rename a slug label
- How to group navigation items in the admin panel
- List Posts By Custom Taxonomy
- WordPress menu with custom taxonomy
- attach CPT data to a taxonomy
- Remove taxonomies using register_post_type_args
- Different options per post type in WP_Query
- Change custom taxonomy archive permalink
- Custom Category Walker with Image, Fallback to Most Recent Post in Category Image
- Creating a non-hierarchical Taxonomy that behaves like categories
- Add ‘page template’ column to dashboard for CPTs
- Get template part with CPT and Custom Taxonomy conditionals
- How to get xml file for a single post type?
- Displaying One Custom Post Type’s Content On Single Post of Another Custom Post Type
- Is there a way to make child posts inherit parent post terms?
- Custom post types category
- Query Custom Post by taxonomy multiple categories
- How to Control CSS Class Visiblity From WordPress Admin Panel based on Tax Terms
- Problem retrieving informations and displaying desired structure with custom post type and taxonomy
- Advanced archive url structure (category, tag and date)
- Setup page template array in a custom post type
- Best Way to Query Custom Taxonomies Used on Custom Post Type
- Custom taxonomy terms as children of multiple custom post types
- Custom Taxonomy and Categories
- custom taxonomy pagination 404 error
- Archive page of CPT’s custom Taxonomy
- WordPress CPT Taxonomy Dashboard Search – How to include taxonomy in search?
- Custom Post Type meta data getting deleted on bulk editing taxonomies
- How to show related posts of category on post within custom posttype
- Not saving custom taxonomy while using ajax
- Post Tags not working for Custom Post type
- Filter in Custom post type to find the parent post
- Excluded Custom Taxonomy Term Posts Displaying in loop
- Listing all custom posts having a specific taxonomy whatever the terms
- Custom search for a custom post type in WordPress
- How can I group by Taxonomy on Custom Post Type while filtering out based on custom Meta
- Create a Hierarchical List of Custom Taxonomies AND Posts
- Custom URL for Custom Post Type & Custom Taxonomy Term
- Making permalink for custom post type/custom taxonomy. Stuck with 404 in the single post
- Custom Taxonomy page redirecting to 404 page
- Filter a custom taxonomy from displaying a button all other taxonomies can show
- Displaying WordPress posts from post and custom post type in custom taxonomy
- Custom post type taxonomy template and URL confusion
- Problem with type plugin and custom taxonomies
- How can I add a “fake” parent into the permalink?
- Custom post type – two taxonomies
- How to display custom post types AND regular posts separately on a shared taxonomy archive?
- Custom Post Type Causing Admin Sidebar UI Issue
- WordPress Custom Post Type and sort by Tags
- How to change the default orderby from “Date” to e.g. “Title” or my custom column in content type records list in admin?
- Change column of row action (Quick Edit) links in WP_List_Table
- Looping taxonomy in taxonomy?
- Missing categories for Custom Taxonomy and Custom Posts
- Show one of the taxonomies always as default
- Get X posts with the same terms as the current post (custom post type and custom taxonomy)
- From form submission values – dynamically update CPT “has_archive” slug and custom taxonomy “rewrite” slug value
- How to add to taxonomies to a post type
- Filtering custom post types using category taxonomy
- How to use wp_set_object_terms depending on page ID?