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?
- 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
- 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?
- 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?
- 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
- Making a Template for a CPT created by a plugin
- auto populate list of questions if user select a category xyz
- Unable to delete custom post types, confusion around capabilities
- What is the best way for showing a grid of customer logos?
- How to delete all trashed item in one-go
- How can I use a file in my plugin as a replacement for single.php on custom-post-type query?
- Edit Permalink Structure For Custom Post Type or Modify .htaccess?
- How to set category correctly for a custom post created by a remote API call?
- How to use template_include hook with form submission?
- Trying to add a page template for my custom post type from a plugin, but it will not display in the template dropdown unless file is in theme
- Custom Post Type – custom form in dashboard
- $pages = get_pages(‘child_of=’.$post->ID); Why arguments are concatenated?
- WP-API Custom Post Type json_no_route
- Price comparison table based on Custom Post Type?
- How can I list custom post type categories of portfolio
- Show related posts based of current ACF field name in a single page post (a loop within loop)
- Plugin generated unexpected output – No PHP errors
- “Allowed memory size” problem [closed]
- “After file loaded” action
- Including content from legacy app: via plugin or custom content?
- Dictionary-style definition list plugin
- Custom Post Type, Custom Columns List
- How to create repeater field manually, without plugin (ACF Pro)?
- Error Metabox Warning: call_user_func() expects parameter 1 to be a valid callback
- how to create hierachial taxonomy and manage under single post type?
- need click to clipboard button on my site
- Setting Author on CPT
- Check if theme supports sidebar
- Custom Post Type same name as Category
- Create category for each user
- Adding category base to url in custom post giving 404?
- custom post type plugin error [closed]
- How to display the custom post related blog by category?
- Undefined index: custom_post_template_present
- Problem with checked box on wp car manager plugin
- Merging new theme and plugins from development site to production
- WordPress hide post from custom post-type on a single page
- $wpdb->insert not working inside save_post tag
- Is it possible to customize a wordpress post from outside dashboard(Something like site.com/post-type/post/?e=post_id)?
- Calling an custom field from theme option at the frontend
- Array to string conversion error when trying to POST multidimensional array
- Creating themes using the one Plugin (Toolkit)
- How to add jquery to my custom post type wp plugin
- WordPress list child pages of custom post type
- WordPress custom posttype meta values doesnot save
- Assigning a custom post type to a custom page
- making a glossary with wordpress
- Create custom fields on a post
- Synch Custom Post Types (and Custom Fields, Cats, etc.) Between WordPress Sites
- get_option include in my adsense
- WordPress Custom post type won’t save properly
- How can I default a new post to being saved?
- Remove base from the custom post type URL [duplicate]
- Change the behaviour of archive cpt category and single cpt by plugin, not by theme
- A plugin for software reviews site like this one?
- Display Custom Post Type and Custom Taxonomy Data on Front End Using Only a Plugin
- WordPress show different custom post type
- Links not opening as they should. Custom WP plugin
- How to export post tags from wordpress
- How to access the page without registering in wordpress
- CPT template is not being automatically used single post pages
- How to provide page_template path in custom plugin using WordPress
- Create CPT on Ajax Call
- My site has only one page, and users access my uploaded mp3 files from there – can I analyze access by song title?
- How do I know if an archive correspond to a custom post type taxonomy?