• Resolved Anonymous User 17622042

    (@anonymized-17622042)


    Hello, I have recently just started using this plugin. Previously, I have written my own custom post types manually into the functions.php file of my theme.

    When I installed CPT UI, I was hoping that the plugin will be able to detect some of the post types I have already made in my functions.php. However, it was only able to detect one of the post types that I had manually written.

    Has anyone else faced this problem? Does anyone know how to fix it such that CPT UI can detect all the CPTs I have written manually in the past?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Our plugin is based on the options we eventually save to the database, so we don’t have any sort of auto-detect and edit capabilities of post types/taxonomies registered elsewhere in the install. I could imagine the idea that we probably could detect and even import/auto import, but that’s also a potentially dangerous path to go down because that could lead to unintended consequences. At least for the foreseeable future, we will likely not explore that avenue.

    That’s not to say that post types/taxonomies can’t be re-registered with our plugin, and then the code in the original location removed afterwards. As long as the post type/taxonomy slug matches what was originally used, all the content for each should automatically get re-found, so to speak.

    Regarding the review you left us, thank you for that. We do have the ability to add support for the standard out-of-box custom fields UI where you have the input to select/create a meta key and then input a basic meta value. Just make sure to check “custom fields” for your post type’s “Supports” section. However, if you’re wanting anything fancier along the lines of Advanced Custom Fields Pro, CMB2, Pods, etc, that will require external plugins or coding.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Any news or changes here @ranicetan68 ?

    Thread Starter Anonymous User 17622042

    (@anonymized-17622042)

    Hello, sorry for the late reply.

    I decided to just manually shift all the custom post types to using CPT UI.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    No worries on the late reply, and sounds like things are in a good spot all in all, which is what matters most ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to import old manually written CPTs’ is closed to new replies.