[Resolved] Relationships between custom post type to front-end form
This support ticket is created 2 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I'm building a directory site. I created a form for adding ads by front-end users. In this form, users have to choose Producer and Model (both are CPT and required fields). The problem is when the user adds his ad and choice Producer and model the relationship between these posts isn't created and when someone uses filters on the ads page this ad isn't presented. How can I add the relationship form to Post Form on Front-end?
Hello. Thank you for contacting the Toolset support.
I would like to know that you are using the post form created with Toolset Forms to create a new entry from frontend for your post type where you added the post reference fields which allow you to select the parent - right?
or
Are you using the post relationship form?
If you can share problem URL and admin access details that would help to me review your current setup.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Hi Minesh,
yes I'm using the Post Form (not relationship form) created with Toolset Forms to create a new entry from front-end where I have two Post reference filed. Right now I resolved this by adding this pice of code: