Skip Navigation

[Resolved] Custom Post Type Fields Not Displayed in Form Wizard

This support ticket is created 5 years, 11 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 6 replies, has 2 voices.

Last updated by briana-5 5 years, 11 months ago.

Assisted by: Nigel.

Author
Posts
#1167263

I am trying to: Create a form for editing a custom post type

Link to a page where the issue can be seen:

I expected to see: The list of fields from that post type

Instead, I got: Fields assigned to other post types

I'm trying to create a form for editing content of a custom post-type. I created a form and selected edit existing content and selected the desired post-type. However, when I use the Auto-generate Form Content button or the Add Fields button, it lists fields from the default post type and taxonomies assigned to the custom post type but not any of the fields for the custom post-type that the form is set to edit. This same problem does not occur when trying to create a form to edit content using any of my other custom post-types. The custom post type giving me this problem is called "1920bills." Not sure how to resolve this...

#1167511

Nigel
Supporter

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

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

Hi Briana

I can see the problem on your site. I couldn't reproduce the issue on a site of my own (I thought maybe naming a post type beginning with numbers could cause the issue), and so I need to take a copy of your site.

It is a big site (the database is very large), and Duplicator failed, so I'm trying again with another plugin.

When I have done that I'll update again.

#1167760

Nigel
Supporter

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

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

I've been unable to take a copy of the site, the backup plugins are choking on the size of the database.

I alternatively tried to export your Types settings to be able to import those into a local site for testing, but there were errors with the resulting file.

Can you inspect your error logs and see if there is any useful information from 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);

That will create a debug.log file in your /wp-content/ directory which you can examine in any text editor. Try recreating the form and then inspect the log. If you don't find the debug.log file it means it didn't generate any warnings or errors.

#1167795

I will do what you have asked and see if I can figure out the problem. But meanwhile, were you able to at least observe the problem I'm describing with respect to the Form?

#1167856

Nigel
Supporter

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

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

Yes, I could see the issue on your site.

#1167930

Nigel: You're the best. I changed the name of the post type so that it does not start with a number and that has resolved the issue. You also helped me identify an unneeded table in the database that was enormous (left over from some testing), which was the likely the source of the backup problem you had. I've dropped that table. Everything seems to be working now (better even...)

Thanks.

#1167932

My issue is resolved now. Thank you!