Skip Navigation

[Resolved] custom fields not appear in custom post type add new or edit

This support ticket is created 4 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 5 replies, has 2 voices.

Last updated by brianN-2 4 years, 7 months ago.

Assisted by: Nigel.

Author
Posts
#1574671

Multisite - having the same issue on /site-template and /template

I am trying to: The same issue was happening with custom post type - students and donors
at some point, the fields did and do appear now but do not know how or why not showing in the first place

Link to a page where the issue can be seen: Ministry Info post type

I expected to see: ministry email and phone custom fields

Instead, I got: missing

#1575361

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Brian

I've done some testing on your site and I can't identify the cause of the problem.

I even deleted the ministry info field group and created a new one using the same fields, and it won't display on the ministry info posts, or on—for example—the donor posts if I assign it to that.

Can you check the debug logs to see if it is producing any helpful warnings or errors?

If you haven't already, turn on the debug log by editing your wp-config.php file and change the line with WP_DEBUG like so:

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
define('WP_DISABLE_FATAL_ERROR_HANDLER',true);

That will create a debug.log file in your /wp-content/ directory which you can examine in any text editor.

Try editing the custom field group and saving it again, try editing a ministry info page, then inspect the log.

Let me know what you find.

#1575629

Hi
Followed your instructions - still missing the custom fields.
The debug log doesn't give any info related to this
[06-Apr-2020 12:53:54 UTC] PHP Warning: getimagesize(/var/web/site/public_html/template/wpcontent/uploads/sites/3/2020/04/0203001-Sekamatte-Michael-PHOTO-1-576x1024.jpg): failed to open stream: No such file or directory in /var/web/site/public_html/wp-content/plugins/wp-smush-pro/core/modules/class-cdn.php on line 1410

This is very odd. I have had the same problem with other sites and just like the first 2 custom post types here (student/donor) -- the fields eventually show up after I try troubleshooting. The problem is I can't tell what I did to make them eventually appear -- I don't really know that what I tried with disable plugins, etc actually did cause a "fix".

#1577361

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Brian

I'm going to have to take a copy of one of the affected sites so that I—or my colleagues—can debug the issue locally.

No amount of expermenting with the settings has helped so far.

I'll get to it as soon as I can and let you know what I find.

#1578329

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Brian

I installed the copy of your site locally.

I had to rename the mu plugins folder to be able to log in, and also removed the WPMU dev Hummingbird object caching.

I then logged in, activated only Types, went to edit a Ministry Info post, and the field group was there.

On your server can you clear or disable/remove the caching as a starting point, and see if that is the problem?

#1579105

My issue is resolved now. Thank you!
I had cleared the cache - hummingbird but didn't realize there was an object cache flush option in my hosting
It seems to have done the trick
thanks