Virtual CPT named externallink is registered when plugin is activated
-
Virtual CPT named externallink is registered when Custom Post Type UI plugin is activated.
Existing site w/ 5 custom post types (via functions.php) all functional. When Custom Post Type UI is installed / activated, a new CPT entry is presented in Custom Post Type UI (named “externallink”).
Of the 5 existing CPTs, Custom Post Type UI plugin displays only 3 of 5, plus the virtual entry named “externallink”. There is some conflict between Custom Post Type UI and mysql DB. Deactivating Custom Post Type UI removes the WP Admin “externallink” entry from Dashboard.
Without Custom Post Type UI installed, using the following code,
foreach ( get_post_types( ”, ‘names’ ) as $post_type ) {
echo ‘<p>’ . $post_type . ‘</p>’; }the following expected types
(post,page,attachment,revision,nav_menu_item,acf-field-group,acf-field,advanced_ads) are displayed PLUS the 5 custom post types runtime.***Notes:
On a QA system, using a copy of the mysql DB, deactivating all plugins except Custom Post Type UI shows the same 3 of 5 custom post types and the “externallink” entry.On the same QA system, removing Genesis (and child theme functions.php ) and activating 2015 theme, Custom Post Type UI shows the same 3 of 5 custom post types and the “externallink” entry. And the WP Dashboard removes 2 of 5 custom post type entries. Switching back the Genesis (and child theme functions.php) adds back 5 custom post types, PLUS the “externallink” entry.
A spurious effect and I thought I would report this.
- The topic ‘Virtual CPT named externallink is registered when plugin is activated’ is closed to new replies.