When using a cred form for post comments, the child post is not saving the post relationship. It has to be set manually. I need the post relationship[ to be saved when someone adds a comment. By the way, the status is set to 'Pending Review' upon submission.
hidden link
Hello,
I assume the "post comments" custom post type, which is a child post type of post type "my-cpt".
1) Setup the post type "post comments" as child post type "my-cpt":
https://toolset.com/documentation/user-guides/creating-post-type-relationships/
2) Follow our document to setup the CRED form for creating the child post:
https://toolset.com/documentation/user-guides/cred-forms-for-child-content/
You can setup the default value of the parent selector by specific the attribute "value" of shortcode [cred_field], for example:
[cred_field field='_wpcf_belongs_my-cpt_id' value='[wpv-post-id]' ...]
It will be able to setup current post ID as the the default value, see our document:
https://toolset.com/documentation/user-guides/cred-shortcodes/#cred_field
value: Preset value
I couldn't be more lost. I have built dozens of sites with Toolset and still I struggle with this one. I am happy to provide credentials if you would take a look for me.
In case it is a compatibility problem, please try this:
1) deactivate other plugins and switch to wordpress default theme, and test again
2) If the problem still persists, please provide your website credentials in below private detail box, also point out the problem page URL and CRED form URL, I need a live website to test and debug. thanks
Thanks for the details, I am checking it in your website, will feedback if there is anything found
Here are what I found:
1) In the CRED form "Post Comment", there isn't post relationship field, so I have add below codes in it:
[cred_field field='_wpcf_belongs_post_id' value='[wpv-post-id]' order='date' ordering='desc' select_text='--- not set ---' class='form-control' output='bootstrap']
2) Test it in front-end, all you need to do is using CSS codes to hide the dropdown menu