I have a CRED form where users can submit new custom post. The submitted post is set to published, displaying on the frontend, but not listed in the archive page until I edit this custom post at the backend.
What is the link to your site?
cred form: hidden link
archive page: hidden link
Hello and thank you for contacting the Toolset support.
It seems like a cache issue. Editing the post from the backend flushes the cache and lets the archive return all the posts. Please check if this issue appears when:
- Only Toolset plugins are activated. It will tell us if there is an interaction issue with another plugin.
- The theme is set to a WordPress default like Twenty-Twenty. It will tell us if there is an interaction issue with your theme.
If the problem disappears, start activating one at a time to track where the incompatibility is produced.
If the issue persists, we'll need to migrate your website to our platform to make sure it is not a server-level cache issue.
Can I log in to your website, or preferably a staging site where the issue is reproduced, and check this further? Your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **
If I don't spot the cause of the issue, I'll need to migrate your website to our platform, is that ok with you? Do I have your approval?
Thank you for the credentials. The archive template is ordered by the custom field "Kiemelt edző", which means that it will display only posts that have a value for that field. Check this screenshot hidden link
I checked some posts and they had the default value for the post which is saved as 0 to the database. hidden link
So, I updated some posts, that have the default value, and I just saved them, then they appeared in the archive. So, I checked the form and there is a custom Javascript code that makes the field disabled. Check this screenshot hidden link
Can I ask the following:
- Do you need to set this field as disabled?
- Can you test the field with different values for it (use a different value than 0 for the default option)?
In my case "kiemelt edző" field means featured partner.
I will have two forms: one for free and one for users who are willing to pay, to get the featured partner "Kiemelt edző" sign.
On the free form I want to disable the form and set to No ("nem") the "kiemelt edző" field.
I would like to have the archive page ordered by this field (kiemelt edző) to make sure the featured partners are on the top.
After reading your last response at the custom fields settings I changed:
- the values of the kiemelt edző field from 0 & 1 to 1 - ("nem" - this is default) and 2 - ("igen"),
- and in the settings of the free form, I changed the default value of the disabled field to 1.
But the post still not displaying in the archive after submitting.
So I realized the problem is, in the cred form I set the kiemelt edző field disabled (using jquery), as i dont want to let the user to change the value to 'Igen' (value=2). I thought the default value will be saved in the database, but its not happening.
In this form somehow I should pass the value=1 but without the option of changing it.
Can you help me with this?
(I will have an other form for premium users when they can change the value.)