Hmm. No changes on that front in a long time. Since you mention screen options, I assume you’re working with Classic Editor?
Yes, But I don’t see it even without the Classic Editor
Do I need to add something in the functions.php file? like add_theme_support function?
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.
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.
But regular post isn’t showing the custom field as well, not just the plugin, so how can I add it to the wordpress?
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.
ACF would do it too. Good catch there.