Pull the CPT registration functionality out of the Plugin activation hook, so that it can fire at init
, where you want it to.
The Plugin activation hook is a one-time only hook; you need your CPT to fire every time at the init
hook, not just once.
Related Posts:
- Adding a Taxonomy Filter to Admin List for a Custom Post Type?
- Implementing a CrunchBase.com Clone using WordPress?
- Custom media upload content for inserting custom post shortcode
- How to share category taxonomy with custom post type (The Event Calendar plugin)
- Is it possible to define a template for a custom post type within a plugin independent of the active theme?
- How to get a variable number of posts per post type on the main loop?
- WP_query parameters for date range
- Use a plugin to handle custom post types?
- Custom database or Custom Post Types?
- Prevent page slug from interfering with custom post type archive permalink?
- Add .html extension to custom post type taxonomies
- How to load a new template page according to a particular URL?
- How to get the custom page get_permalink?
- Updating post meta for custom post types
- Template for custom post type shows all posts instead of just one
- Themes VS Plugins [duplicate]
- Enable comments for post with comments meta box removed
- Custom Post Type causes Page Not Found
- Plugin “Meta Box”: Implementing meta boxes in custom post type
- Frontend editing, Frontend user dashboard
- Plugin allowing for artists, events and venues
- Disable Other Plugins on my Custom Post Type?
- How to get images from EDD post?
- custom taxonomy and custom post type url conflict
- Override plugin with functions.php
- Should i delete the posts created by a plugin on uninstall?
- RW Meta Box ,Problem setting post title
- How does WP handle multiple matching rewrite rules?
- Saving Custom Post types and fields to a custom table
- Is it possible to use WordPress as an online portfolio for text content? What kind of theme would I look for?
- Building a store locator with google maps
- How to make wp_enqueue_style and wp_enqueue_script work only on custom post type
- How to create user groups and allow custom posts and plugin modify/access to specific group?
- Correct way to make meta box with more than one meta field secure
- I want to extend the current themes’ single.php to display the meta fields of my CPT
- How can I create a custom shortcode that will return a custom post type by ID?
- get_post_type on post.php
- All of my custom posttypes are 404’ing
- more types plugin – display all post of post type on page
- ‘No Results Found’ on single post for custom post type
- Keep a post copy when this one is updated – issue
- Making a Template for a CPT created by a plugin
- auto populate list of questions if user select a category xyz
- “Custom Post Type Permalinks” plugin URL strcuture
- Adding CSS to custom post type admin page causes error
- ACF: post query, hide duplicate values [closed]
- Redirect to another page using contact form 7? [closed]
- Custom Post Type Fields
- Custom setup of wordpress comments that are displayed
- publish_post action doesn’t work
- Disable Individual Plugins (specifically in Custom Post Types) on a per-post basis?
- custom post type don’t appear in the home page
- Amazon.com intergration with WordPress?
- Sticky option for custom post types without using custom fields or plugins
- How do I make reusable content blocks for header and footer when using WordPress headless with another front-end?
- How do we update a custom file upload field with the Advanced Custom Field plugin?
- Preview with Custom Post Type Not Working
- 2 wordpress site same database
- How to Include Custom Post Content From Plugin
- Custom Template for wordpress cpt plugin
- Custom post type change excerpt more and excerpt length
- What hook can I use to modify custom post data before it is displayed on the page?
- Order posts of a custom post type by the event date using FT Calendar Plugin
- Custom Post Type template for homepage
- How display specific category post to specific users?
- Rename existing cpt and taxonomy with new textdomain
- Best method of implementing compartmentalized custom post types on a multi-site network
- Need to edit author permissions | custom taxonomy
- Is it possible to pin a post in second position from top
- How to search post titles with whole words only, but not the exact word only?
- Save log for imports in WordPress database – options-table, custom post type or other place?
- Remove custom taxonomy name from the slug – Custom Post Type UI
- Error in Fetching Custom Post Type parent Category URL (slug)
- Register PODS Custom Field with WPGraphQL [closed]
- Hidden permalink different from displayed permalink
- Can i stream data to a custom_post_type?
- Is there a hook similar to “save_post” which only fires AFTER the post is completely published?
- Adding custom post category to categories widget
- Custom Post Type with Sequence ID
- How to arrange custom posts in the backend/admin by custom taxonomy
- Adding LOAD MORE on a page
- save_post hook partly firing in update post
- custom post type get_posts() function not work
- Create multiple posts when a custom post is created
- Cannot view Custom Post Type no matter what I try
- Page not found after creating the add new post slider using custom post type
- CPT-onomies CPT_TAXONOMY->get_terms extremely slow with 6K posts
- Custom Post type plugin breaking the front page shows dashboard?
- Insert data in custom table during new post creation
- Top Contributors Plugin with Custom Post Type
- How can i do custom author list?
- featured image problem with custom post type
- How to list the categories by custom taxonomy created?
- Is an Office a custom post type [closed]
- Snippet displaying LearnDash parent course title with lesson title [closed]
- How to laod wp_enqueue_style to another header i created my self
- Looking for a plugins for organization portal (Staff, Units, Departments)? [closed]
- Links not opening as they should. Custom WP plugin
- How to make content as required in custom post type?
- How to provide page_template path in custom plugin using WordPress