WordPress.org

Ready to get started?Download WordPress

Forums

Custom Post Type UI
[resolved] Use Post Type UI and Advanced Custom Fields together (6 posts)

  1. Col323WebDesign
    Member
    Posted 3 months ago #

    Hey there,

    I'm building a WordPress premium theme. I intend to use Post Type UI together with Advanced Custom Fields.

    I know that I can integrate my settings made in Advanced Custom Fields directly into the theme so my users don't need to use the plugin to use the features when using the theme.

    However, is it also possible to use the Custom Post Types made with Post Type UI in my theme without using the actual plugin?

    Looking forward to hear back from you!

    Sincerely,
    Mika

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

  2. Michael Beckwith
    Member
    Plugin Author

    Posted 3 months ago #

    In its current form, if I'm understanding you correctly, I don't believe so. We definitely store a couple options that have all the post type/taxonomy settings, but the plugin itself is needed to fetch those options and do the actual registering via register_post_type and register_taxonomy functions. I know I have a branch in github for the next major version, but I've been busy with other work and haven't been able to pick it back up again. I don't forsee your inferred usage need to be solved with the next version either.

    At best I think the closest we'd have is a "get code" bit where you can get a block of code that registers each post type/taxonomy that you can copy/paste into your own theme files. Not sure if that's what you need though.

  3. Col323WebDesign
    Member
    Posted 3 months ago #

    Hey Michael.
    Thanks for your good answer :-)

    Regarding your last section "At best...": Does this mean that I would be able to get the code for my post types and add it to the function file (and then remove the plugin) or does the plugin still need to be activated?

    If the plugin needs to be activatd, is there any way to hide the plugin settings from the dashboard?

    Once again, thanks a lot!
    Sincerely,
    Mika :-)

  4. Michael Beckwith
    Member
    Plugin Author

    Posted 3 months ago #

    Correct, with that last paragraph from me, you can use that functionality to get everything you need to migrate away from our plugin completely. Save the generated code to your functions.php and then you could disable CPTUI without issue.

  5. Col323WebDesign
    Member
    Posted 3 months ago #

    Great Michael. Thanks a lot!

  6. Col323WebDesign
    Member
    Posted 3 months ago #

    :-)

Reply

You must log in to post.

About this Plugin

About this Topic