• Resolved NaamaGold

    (@naamagold)


    Hi, I used the plugin to create a custom post type a year ago. At the time I did not enable support for categories taxonomy. Now when I go back into the plugin and check categories and then update, It does not save it as checked and reverts back to unchecked and categories do not show.

    How can I fix this?

    Thanks for your help

    • This topic was modified 7 years, 5 months ago by NaamaGold.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Sounds familiar and similar to https://www.ads-software.com/support/topic/i-cant-add-categories-to-existing-post-type/ but I had no answer for what was going on, and wasn’t able to recreate then either. So I’m not sure what’s going on. Nothing should be preventing it from successfully saving into the settings for the post type. Closest I can think of is somehow losing the data from the PHP $_POST global before actually getting things saved.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    When you try this, do you get any sort of error at the top regarding existing slugs? If yes, then I think I know what may be going on.

    Thread Starter NaamaGold

    (@naamagold)

    Thanks! yes, I didnt notice it at first but then I notice that error at the top of the page.

    I get this error “Please choose a different post type name. yours matches an existing page slug, which can cause conflicts.”

    But it cant find where that slug has been used. It is not a category.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    It’s a page slug issue, not a category slug issue ?? Chances are you’ve got a page with the same name as your post type. I’m looking at a 1.5.4 release that addresses this, and would only return early if creating a post type brand new, that already matches a page slug. If at the time of the update you already have both existing, it’ll still save like expected.

    If you’re willing, I’d love to have a person help test those changes, and I can provide a copy of the plugin with the change in place. If it works like expected again, I’m confident in it being part of a new release to everyone.

    Thread Starter NaamaGold

    (@naamagold)

    Thank you so much. I found the page that had that slug. At least now I know what is going on!

    In the end we are going to deal with our issue in a different way so I would not need to make the category change at this point.

    Thank you for all your great help anyway.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Welcome, and be on the lookout for a new bugfix release soon.

    Let me know if anything else crops up.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Unable to add categroy attribute to existing custom post type’ is closed to new replies.