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...
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.
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:
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.
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?
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...)