WordPress.org

Ready to get started?Download WordPress

Forums

Custom Post Type UI
[resolved] Custom Post Types Won't Appear on Backend (8 posts)

  1. r1se
    Member
    Posted 11 months ago #

    Hello Michael,

    I've just exported a db from a wordpress instalation to a new site, installed the latest version of wp and cpt ui but none of the cpt i've created on the other site will appear on this new site. I even checked the db and cpt_custom_post_types has all of the information about the cpt's but it won't show up on the admin interface on wordpress.

    Any idea what might be going? I've tried with 0.8 and 0.81.

    Thanks

    http://wordpress.org/plugins/custom-post-type-ui/

  2. Michael Beckwith
    Member
    Plugin Author

    Posted 11 months ago #

    Quick first-round questions
    Non-altered export/import other than perhaps urls? all the same tables etc.

    CPT UI used on both old and new site?

  3. r1se
    Member
    Posted 11 months ago #

    Yup, everything's the same except urls.

    CPT UI was used on the old site and new site. In fact it's the same site i'm backing up on another server to do some tests. Weird thing is that if I re create the custom post type, the posts won't show up either.

  4. r1se
    Member
    Posted 11 months ago #

    Update: I don't have a clue what i've done, but i've fixed it. I did a lot of stuff on my db deleted some tables, imported it again etc. I'll leave this as solved, and if I find out what I exactly did ill update again. Thanks for taking a look into this.

  5. Michael Beckwith
    Member
    Plugin Author

    Posted 11 months ago #

    Well, one thing to keep in mind is that the slugs have to match for the db values to be re-referenced.

    Regarding the plugin itself, as long as options didn't get re-saved at the new location wiping them out anew, then it should be re-picked up from the old values on the old site. Admittedly something I hadn't thought to test at all.

  6. Ov3rfly
    Member
    Posted 11 months ago #

    Had the same effect with 0.8.1beta, two problems:

    This in lines 104 and 112:

    if ( 'true' == get_disp_boolean( $cpt_post_type["show_ui"] ) ) {
    	...
    } else {
    	$cpt_show_in_menu = 0;
    }

    should be:

    if ( true == get_disp_boolean( $cpt_post_type["show_ui"] ) ) {
    	...
    } else {
    	$cpt_show_in_menu = false;
    }

    And this in line 143:

    'capability_type' => $cpt_map_meta_cap,

    should be:

    'capability_type' => $cpt_post_type["capability_type"],
  7. Michael Beckwith
    Member
    Plugin Author

    Posted 11 months ago #

    Noted :)

    All the more feedback to help make this more bulletproof.

  8. Michael Beckwith
    Member
    Plugin Author

    Posted 11 months ago #

    Fixed in the latest version of the plugin on GitHub

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.