• Resolved oritzio

    (@oritzio)


    Hi,

    When creating a new CPT, in the support section I checked the “Custom Fields” checkbox then I went to my CPT (an actual post) and clicked on “Screen Options” but I didn’t see the custom fields checkbox over there, is it different now?

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

    (@tw2113)

    The BenchPresser

    Hmm. No changes on that front in a long time. Since you mention screen options, I assume you’re working with Classic Editor?

    Thread Starter oritzio

    (@oritzio)

    Yes, But I don’t see it even without the Classic Editor

    Thread Starter oritzio

    (@oritzio)

    Do I need to add something in the functions.php file? like add_theme_support function?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    No requirement that I’m aware of for custom fields.

    A new question, are you importing your post types in to CPTUI? wherein this post type existed before you installed, and now you want CPTUI to manage it?

    If yes, did you remove the previous registration code for the post type? Post types are registered at run time, and are all stored in a big array of information. Because of that, it’s also technically possible to override existing posts types by using the same slug. (We do what we can to prevent that with CPTUI). So a bit of a case of “last one registered is the one used”.

    So if you have the same post type slug being registered in your theme, without the “custom fields” option set there, chances are that’s the one being used and why you’re not seeing the metabox. The theme’s functions.php file is loaded after plugins, so CPTUI is running first, and potentially having ours overwritten.

    Thread Starter oritzio

    (@oritzio)

    No, I didn’t import, it’s a new one.
    I also created another one just for testing, I don’t see that one as well.

    Ok, let me tell you how I created it and tell me what you think.

    1. After I activated the plugin I went to CPT UI > Add/Edit Post Types.
    2. I filled the required inputs at the top section (Post Type Slug, Plural Label, Singular Label).
    3. I scrolled down to the support section and I checked the Custom Fields.
    4. I clicked on the Add Post Type button.
    5. I’m going to the CPT and I don’t see it.

    • This reply was modified 4 years, 3 months ago by oritzio.
    • This reply was modified 4 years, 3 months ago by oritzio.
    • This reply was modified 4 years, 3 months ago by oritzio.
    Thread Starter oritzio

    (@oritzio)

    But regular post isn’t showing the custom field as well, not just the plugin, so how can I add it to the wordpress?

    Thread Starter oritzio

    (@oritzio)

    Oh.. you know what, I’ve been in this situation before, it’s always annoying.
    The ACF plugin is removing it when you use their plugin.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    ACF would do it too. Good catch there.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Custom Fields Support’ is closed to new replies.