Registering custom posts is a plugin territory. It means that you need to remove them from the theme’s functionality and register them via a plugin (usually recommended when installing the theme using TGM Plugin Activation or something else). Here are the recommendations of the Theme Review Team.
Themes must not incorporate the following, Plugin-territory
functionality. This list is not all-inclusive.
- Analytics scripts
- SEO options (meta tags, page title, post titles, robots.txt, etc.)
- Content Sharing buttons/links
- Custom post-content shortcodes
- Custom Post Types
- Custom Taxonomies
- Removing or modifying non-presentational core hooks
- Disabling the admin toolbar
- Resource compression/caching
Related Posts:
- Where to put my code: plugin or functions.php?
- Generate Shortcodes by Taxonomy
- I have a random letter appearing before my content. Where to start looking for the cause?
- Passing postid of Testimonial Custom Post in Shortcode Parameter
- Adding a new custom post type using the editor causes 502 bad gateway error
- Can multiple custom post types share a custom taxonomy?
- How to display value of custom fields in page
- Custom post type single-{custom}.php not working
- Custom post type – order field
- Change permalinks for posts but not for custom post types
- Create a shortcode to display custom post types with a specific taxonomy
- Mini-Site Strategy
- Assign single template to multiple custom post types?
- Custom Post Type Permalink Page Not Found
- Display custom post type with shortcode
- Add Content to Page without shortcodes
- Registering custom taxonomy with unique name, a good practise?
- How to build a complex page structure
- How to put custom post types on front page
- How to throw error to user when saving post
- How to set a fall back template for a custom post type in a plugin?
- How to add multiple images to a custom post type single post?
- wordpress plugin error handling
- Why is get_post_format() for “Standard” returns empty
- Undefined property: stdClass::$labels in general-template.php post_type_archive_title()
- Is it proper to create a page just to generate a listing page (eg. for a custom post type)
- Custom Post Type Archive URL takes over page URL
- Where to put archive-{post-type}.php
- Shortcode Displaying Custom Post Types
- Password-protect a custom rss feed
- How to set a custom post type post as static front page?
- Rename a current used post type
- WordPress Custom Shortcode Conflicting with Media Library
- Template tags to display custom post type posts in category template?
- Custom Search form not working in localhost
- The editor has encountered an unexpected error. // TypeError: Cannot read property ‘prefix’ of null
- Group search results by post type, but hide post types with no results
- single-type.php not working, delivering 404
- Managing event dates vs published dates in admin custom post type
- Full-Ajax Theme: parseJSON error while building a JSON object from a WordPress custom template
- Custom post type archive sorted and grouped by date in post meta field
- Add multiple custom post types in functions.php, but only one custom post type show in dashboard
- Multiple Content Block
- Using shortcodes to parse POST request (containing the data from a front-end form)
- Message on Custom Posts Type admin page
- Custom Select Query with Custom Post Types
- Error : “Updating failed: The response is not a valid JSON response” with custom shortcode
- How can i list custom post type categories?
- wp is not defined error using wp.media to create a custom image uploader
- IF statement in a do_shortcode
- Assigning Multiple Layout Designs with Custom Pages in WordPress?
- How to retrieve custom field types for all posts in WordPress/PHP?
- Post the content of a specific “Custom Post Type” post within a post using a shortcode
- adding .current* tags to custom post types and taxonomies
- Integrating Orbit slider into wordpress through custom post type
- How do I create an archive page for standard posts?
- Strip shortcode from specific post types (formats)
- Pagination in a Shortcode. Get_next_posts_link not working but get_previous_posts_link works fine right next to it
- Is it possible to associate different kinds of custom post types one to the other?
- Why does using WP_Query inside a shortcode in an elementor page cause the arguments for WP_Query to get malformed?
- Limit users by custom taxonomy and user roles
- Check Title Unique Or Not and If not error message and dont save
- Remove parent from custom post type
- Page as a child of a Custom Post Type
- How would I create a shortcode to display a custom post within a page or regular post?
- Is it possible to create a shortcode that will query a post based on taxonomies?
- need advice on how to do a lists using custom post types – taxonomy vs postmeta
- Why is archive.php used for my page
- WP_Query is printing out only one post when posts_per_page is set to multiple
- How to add extra input fields to CPT’s comment form?
- Get custom posts with certain ids in a custom loop using a shortcode
- Custom Post Type Loop within Shortcode
- ACF simple text field value not showing
- Shortcode insertion in tab
- How to Get Current Custom Post Type Selected Taxonomy Term (Not All Terms)
- Made Custom Post Types, but single.php not working
- Is it possible to place custom post type files inside a folder in theme directory?
- Shortcode doesn’t display in custom post type
- Displaying a custom post types custom taxonomy value?
- Add category attribute to custom shortcode
- Should I use custom menu, C.P.T. or theme options, or something else for this?
- How to display Custom Post Type Post based on Tag with Shortcode Parameter?
- How to create shortcode to display custom field value on a custom post type
- Author profile comments system
- adding a shortcode into a custom post type
- How to Create Custom Post Type with Multiple Color Options?
- Nested loop called with shortcode duplicating the content above the main loop
- Add number in increment of one to DIV ID
- Create custom post order (with custom post type meta)
- shortcode for recent custom type post
- Create shortcode for list of custom post titles with custom fields alongside
- Custom post type and custom taxonomy archive inaccessible
- Creating shortcodes with user created forms
- Apply custom names for generic custom taxonomy name?
- Change position of Post Formats box?
- Category names on CPT archive pages [closed]
- Notices when submitting custom post type from front-end
- Single and Archive Pages with Custom Post Type
- Navigation links to posts in current term shortcode
- Separating a custom taxonomy from blog post-type