I am trying to:
Setup a front end submission form for ads, using:
a) custom post type Produse
b) custom fields
c) custom taxonomies (category and tags)
d) CRED form
Link to a page where the issue can be seen: hidden link
I expected to see:
A new ad added
Instead, I got:
Two entries are created:
1. the first one has: the Title and Post content (only native, WP fields)
2. The second one has all custom fields: Price, Currency, Image, Location, Phone number and its name is CRED Auto Draft and a code
In order to ensure that this is not being caused by some custom code applying to your form. Could you try creating a new form for this exact cpt and see if this issue still remains.
Thank you, Shane
Unfortunately a new form didn't solve the problem. However, let me try one more thing - I'll prepare a new group of custom fields for the custom post and a new form and then will come back to you with an update.
Meanwhile, If you have some spare time to enter the admin zone of the site (I've provided the credentials) - please feel free to take a look. maybe you find some missconfiguration or some settings I've omitted.
Thank you Shane!
Your experiment has disclosed the problem. Only when you add a picture to the post, the form would generate two posts.
I've placed an ad without adding a picture - it was placed correctly (as in your case). The next ad had a picture included and then again the post has split in two: native fields and custom fields.
Shane, I've added Featured image as a field to the form (also checked this option in the Custom Post Type settings). Added a new ad with picture uploaded via Featured image field (no picture for old Image field), activated Relevanssi. Again two posts created.
It seems like the image is the problem - no matter how one it is uploaded.