By adding the ‘taxonomies’ argument:
'public' => true,
'taxonomies' => array( 'category', 'post_tag' ),
Related Posts:
- get all posts from a custom post type
- Set post date before 1970
- Single loop for wp_query and wp_user_query
- query multiple taxonomies
- wp_set_object_terms() is not replacing term, but creating a new one
- Create an archive page for custom taxonomies
- Using custom field as custom post title
- Grab 5 latest posts from custom post type ‘announcements’
- 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
- Pagination Doesn’t Work
- filter search result with custom post type meta key
- When you create a custom post type, does that also create capabilities for editing/deleting that post type automatically?
- Cleanest way to code “Custom Write Panels/Meta Boxes”?
- Add an A-Z menu at the top of A-Z listing code
- get a list of posts from Custom Taxonomy
- Automatically check “Allow comments” for custom post type [duplicate]
- Trying to manage templates on a blog with lots of custom taxonomies
- How to register custom post types in a plugin?
- Actions that Run on Admin Edit Page Load After Posts Are Queried
- Having trouble with custom date field for CPT query (WordPress)
- How to retrieve custom field types for all posts in WordPress/PHP?
- Separate Posts and Custom Post Type in Custom Taxonomy archive template
- Need functionality with all post list available at edit.php
- Add custom capabilities to existing custom post type
- Custom post type and taxonomy permalinks – Structure
- Custom Post Type Post have a Child `Page` Post Type Post
- Use get_post_types to query only custom posts types
- pre_get_posts on custom post type
- Add a label to the editor?
- How to duplicate fields in custom post types?
- Send email button in custom post type backend
- add category name to permalinks on product page /category-name/product-name
- create parent post using wp_insert_post
- Get image post ID in media upload
- Exclude pages in archives results
- current post index within content.php
- create a new page from a custom post type similar to an authors page
- Auto Complete Search
- Can multiple authors be assigned on a single custom post?
- How to display custom post in archive section of the wordpress page?
- Displaying Custom Taxonomies From Multiple Custom Post Types
- Not getting posts of custom post types
- Can’t publish custom post type – “You are not allowed to edit this post.”
- Custom post type pages return 404 page?
- Filter date from post meta when date is in string format
- Properly flush rewrite rules on plugin activation
- Warning: Invalid argument supplied for foreach() in post.php [closed]
- Pagination custom post type not working with rewrite slug
- Pagination Not Working for Custom Taxonomy with Custom Query – 404 Error
- Custom Taxonomy Is Being Pulled into a Page, But It Doesn’t Have A Hyperlink
- Batch Extract Date from post title and put into ACF custom field
- custom query with custom post type and category slug
- Display custom post type for specific user
- WordPress as a backend for external service? [closed]
- How to limit what Editors see in the admin?
- Update custom post type title
- Custom Post Type Archive Not Showing Posts
- Using a Single Custom Post Type Template for Multiple CPTs
- How to prevent meta data from being edited in a post?
- display custom post on separate page
- Post type Echo code is repeating on homepage
- Displaying custom taxonomy menu in custom post type archive
- Sort by post word count in admin area
- How to display magic field’s custom write panel in wordpress theme?
- Admin slow on Postlist (over 30k Posts in Database)
- How can i show ACF in post excerpts
- Custom post type category link redirecting to 404 page
- Is it possible to hide nav menu items only when they are page titles (on specific templates) but not on the dashboard?
- Archive page URL for custom taxonomy and post type
- Post category behave like a Post in back office menu
- My custom post type not show category
- Save data is post using php front end
- How to output custom post type title on custom page with category next to it?
- Disable Sidebar on certain pages
- Add WordPress users to a custom post type
- Add new custom post type screen (admin area) results into 404
- Custom Post Type Pagination – not displaying posts
- Posts show up under “published” but not “all”
- Values show up in custom home page but not in custom post pages
- Permanent Custom Post Type
- How save custom meta type posts multicheck grouped by taxonomy (with CMB2) [closed]
- Single Page of Custom Post Type Not Showing the Content Of post
- Organising custom taxonomies and custom post types
- “Trash”, “Draft” and count not showing for custom post type in admin panel
- Change wordpress url permalink structure to show authors posts
- Generate slug and meta data if meta field is empty
- Parent to another Custom Post Type – Template files not being recognized
- Redirect Custom Post Type after user submits update
- Pagination for a Custom Taxonomy
- Trying to create hierarchy between 3-4 custom post types
- How do I sort post listing by child post count?
- 404 for children in hierarchical custom post type
- How to rewrite CPT-Permalinks the correct way (incorporating meta-box-data)?
- Searching for a single custom post type, buddypress
- Checking for published posts in a certain post type
- Only One Post of Custom Post Type Appearing on Template Page
- Admin panel search doesn’t work for a specific custom post type
- I want to show a list of post with title that have link goes to that post and icon under the specific category to which it belongs
- Show a wordpress custom post condtionally using a category term