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
- Custom Post Type Permalink Page Not Found
- Display custom post type with shortcode
- How to throw error to user when saving post
- wordpress plugin error handling
- 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
- How can i list custom post type categories?
- wp is not defined error using wp.media to create a custom image uploader
- 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
- Integrating Orbit slider into wordpress through custom post type
- Why does using WP_Query inside a shortcode in an elementor page cause the arguments for WP_Query to get malformed?
- Why is archive.php used for my page
- WP_Query is printing out only one post when posts_per_page is set to multiple
- ACF simple text field value not showing
- Shortcode insertion in tab
- Made Custom Post Types, but single.php not working
- What’s the difference between same wp functions get_posts(); functions in different form?
- Shortcode for display posts in wp-editor
- Display Recently Added Custom Post Types with Custom Taxonomy Shortcode
- Illegal offset type in get_post_type_object()?
- Return the latest post from a custom Taxonomy and Post Type
- Don’t know how to show custom taxonomies from a custom post_type
- JS innerhtml changing style when using AJAX
- Get unique superset of taxonomy terms from a list of custom posts in another hierarchical taxonomy
- Event Custom Post Type Title show by upcoming Event Dates
- Next Post links not working in custom post type shortcode
- Custom post types and category archive
- custom comments form for custom post type
- Redirect to another page using contact form 7? [closed]
- Warning: Invalid argument supplied for foreach() in post.php [closed]
- Adding predefined terms to a taxonomy
- detect your custom post type in WordPress
- Showing custom post type categories in the menu
- Shortcode leaves no space for other elements?
- Archive links for custom post types
- Include custom post type custom taxonomies in Categories widget
- Template Hierarchy for custom post type pages
- Add shortcode inside of the_content()
- Should Custom post types and fields be in the theme files or in a custom plugin packed into the theme?
- Run shortcode in custom script in wp_head if post type is CPT ‘Jobs’
- Shortcode is displaying the content on top of the page [duplicate]
- Custom Post type content within a slider
- posts within custom post type all share the same content in the front-end
- Shortcode to return single custom post based on post taxonomy
- Change post type depending on shortcode
- Searching post types
- Looking to Customize YouTube Video Embeds
- Custom Post Type – Main page for certain posts
- display custom portfolio tags
- Shortcode in pages or tempate files for custom post type
- How to exclude categories from a sidebar with active widgets in it?
- WordPress giving me the index
- Get Posts List of Current Selected Custom Taxonomy in Shortcode
- Custom post category name showing empty
- How to store the third party script with HTML code in the wordpress custom input field?
- Getting Same Description in All the Custom Taxonomy Posts
- Get next and prev item from custom WP_Query and Custom Post Type
- php dynamic content inside shortcode
- Post type to appear on every page on site
- Show in an entry a Custom Post Type associated to a post
- Error 404 change permalink term custom term taxonomy
- How to display custom field in product description?
- Custom post type shortcode
- How can I use javascript in specific posts without relying on a plugin?
- From CPT Custom Loop into Shortcode?
- Custom Post type shortcodes
- Custom post type single page uses the right template in preview mode but shows a different template after being posted
- Custom post type shortcode with taxonomy attribute not working and no errors
- How to seperate posts by categories?
- Display a list of sub-pages of Custom Post Type Parent Page
- Front End users account with lots of user Roles (not Woocommerce)
- Shortcode in excerpt
- Custom post type that lets users create a set of posts?
- wordpress query_posts with foundation 6 Accordion not working correctly
- Creating Slider in wordpress theme with custom post
- Help with Multi Level Category Archive Page
- How to develop custom URL redirection
- Loop carousel slider in wordpress
- Custom taxonomy page template
- get_pages can’t load pages with custom post types
- erase post excerpt limitation [×]
- Add “post option” support parameter in custom post type using Hueman Theme?
- Not Able to Display Metabox Saved Checkbox and Selected option After Save/ Update
- Custom Post Type vs Shortcode: Which one is more performant?
- How to call Shortcode categories for custom post types?
- Displaying information from Custom Fields in template with Types?
- adding a shortcode into a custom post type
- Create shortcode for list of custom post titles with custom fields alongside
- Creating shortcodes with user created forms
- Adding custom shortcode to page leads to page without styling
- custom post types shortode stays on top of other page contents. Is there a bug?
- How to manage wordpress knowledge base/wiki/posts collections
- Shortcode in a page to display custom posts which also have a shortcode in them