[Resolved] Reviews on CPT – stuck with linking the CRED form
This thread is resolved. Here is a description of the problem and solution.
Problem:
CRED Child form page is not working.
Solution:
Please follow the below steps:
Step 1. Create a CRED form
Step 2. Create a new page and Insert the CRED form you have created in step 1.
Step 3. Create a Content Template and Add CRED form >> Child Form Page >> Page (write page name you have created in step 2 and click on the page, it will take page ID automatically, or you can manually write the page ID). Screenshot here: https://d7j863fr5jhrr.cloudfront.net/wp-content/uploads/2017/07/544745-Child_form_Page.png?x36781
I have a "reviews" CPT which is a child of "Sports Providers" (and potentially of other parents if that's possible) to review them.
I've created the CRED form and followed https://toolset.com/documentation/user-guides/cred-forms-for-child-content/ (as I want exactly the same thing).
I am stuck with the Page ID under Child Form Post requested. I filled in $parent for page ID as it'll appear on each "sports provider" created page.
This is the code I have:
[cred_child_link_form form='14754' parent_id='$parent' text='Review this Sports Provider' target='_self']
Thank you for getting in touch with us. I believe you have missed one step of inserting the CRED form in a page. Please follow the below steps:
Step 1. Create a CRED form (which you have already created)
Step 2. Create a new page and Insert the CRED form you have created in step 1.
Step 3. Create a Content Template and Add CRED form >> Child Form Page >> Page (write page name you have created in step 2 and click on the page, it will take page ID automatically). See attached screenshot.
- Also you have options for “How do you want to set the parent in child form?” to set the parent. No need to place $parent.
Thanks, I've created the page now (I did miss that part ) but when filling in the name of the page (or anything else), nothing happens. The page ID doesn't get populated (or the page name completed).
Thanks Noman!
That was easy 😉
Now, I notice I have another problem related to the same.
I can't see my CRED post form on my review page (I thought that related to this), but now I notice I can't see the other froms which I used to see. The links to edit a post (via CRED) which used to appear have gone as well.
I didn't change anything about those recently.
My user registration forms are still there.
Are you saying that when we add cred form child link in the Content Template of Reviews post type, or when we add the page ID for the cred form, then other forms have stopped working? If its true then we can debug it here.
Otherwise, the issues with other forms being disappeared need to be debugged separately in a new ticket since the original form is working now (CRED Forms for Child Content). So please check and confirm if the problem is appearing due to the current change we have made or not -- you can reset recent change to check that. Thanks
I think this is a new/another issue (which probably was present prior to this ticket).
I noticed it when I created a new page (hidden link) with the CRED post form for reviews but nothing appears.
None of the post forms appear (they use to - but I don't know when it stopped).