• Resolved Ian

    (@ianaleksander)


    I upgraded to 3.1 and while it seems like all my info is intact, I’m having some very serious problems. First of all, the “if” sequence in my php isn’t sending to the right single files anymore. Trying the new system of single-CUSTOMPOSTTYPENAME.php doesn’t seem to work either.

    Second, I liked the permalink structure /POST-TYPE/post-name/. Is there any way to get that back?

    Perhaprs most importantly, wordpress won’t let me edit any of my custom posts anymore! It’s as if they were created by another user and I don’t have permission!

    https://www.tradereadingorder.com/list/comics/marvel-universe/

    The content is still displaying fine on the index page, but the single books just defaul to the index again.

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter Ian

    (@ianaleksander)

    do you think these problems may be caused by the fact that my post types originally were uppercase?

    Thread Starter Ian

    (@ianaleksander)

    it seems like they’re now lowercase ie

    wp-admin/edit.php?post_type=marvel

    but maybe the original posts still have the uppercase letter?

    Thread Starter Ian

    (@ianaleksander)

    I found this code:

    if(!get_option(‘custom_type_updated’)){
    global $wpdb;
    $wpdb->query(“UPDATE $wpdb->posts SET post_type = ‘portfolio’ WHERE post_type = ‘Portfolio'”);
    update_option(‘custom_type_updated’,’true’);
    }

    https://www.ads-software.com/support/topic/31-rc3-uppercase-custom-post-type-problems?replies=13

    and I’m gonna try that

    Thread Starter Ian

    (@ianaleksander)

    This seems to have worked for the first one! It also fixed the permalink structure (back to /type/post/) and got the if in the single.php working!

    I’ll try it for the others and report back

    Thread Starter Ian

    (@ianaleksander)

    It worked for the first two, but now it isn’t working :-/

    any ideas? Did using it a couple times make it not work? I was changing the variables each time

    Thread Starter Ian

    (@ianaleksander)

    weird, I had to do it as

    if(!get_option(‘marvel2_update’)){
    global $wpdb;
    $wpdb->query(“UPDATE $wpdb->posts SET post_type = ‘marvel’ WHERE post_type = ‘marvel'”);
    update_option(‘marvel2_update’,’true’);
    }

    Thread Starter Ian

    (@ianaleksander)

    it’s working now for the other ones. a couple of them must have gotten double messed up or something.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    I swear I read something about just THIS today…Something about how you had to fix them.

    Thread Starter Ian

    (@ianaleksander)

    it all seems to be working now, nearly gave me a heart attack, though. sorry for the frantic posting while I figured it out, haha.

    The capitalization fix seems to have solved the permalink structure thing the single.php if swithc AND the edit link disappearing as well.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Thread Starter Ian

    (@ianaleksander)

    yeah, that’s where I got the update code. My problem was that my old posts were still in limbo because they thought they had an uppercase character. Everything seems to be fine now though ??

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Yeah, you need to search/replace the DB for the rest of it. (God and I posted in that old topic too!)

    Thread Starter Ian

    (@ianaleksander)

    yup, I used the Search and Replace plugin to clean up the old links. I think it’s as good as its going to get. Not much I can do about outside links anyway.

    it did not helped me… and i have custom post type in lower case. any suggestions?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    djanym – please make a new topic with a descriptive title.

    Share the code you’re using for your CPTs.

    Once a topic is resolved, we kinda stop patrolling it.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘I can't access my Custom Post Type posts after 3.1 update!’ is closed to new replies.