CRED plugin allows you to build forms that create child posts and set parents for these posts, supporting the parent-child relationship functionality from Types plugin.
When you ask for help or report issues, make sure to tell us the structure of your content and the relationship between the content types.
Viewing 15 topics - 301 through 315 (of 476 total)
Problem: I have two custom post types in a many-to-many relationship. I would like to use Forms to create one of the custom posts and use the Forms API to connect it to an existing post. I would like to copy all the terms associated with the existing post into the new post using the Forms API.
Problem: I have an Edit Form used to edit a row of some RFG attached to my custom post type. I would like to display information from the parent custom post in the Form edit page, and I would also like to include information from the parent post in the email notification.
Solution: In the Form display section, use the wpv-search-term parameter to access the parent post ID. Then in the email notification, use the @relationship-slug.parent syntax.
In the Form page:
Problem: I would like to show a list of posts related to the current post. I can use post relationships but I would prefer to use taxonomy terms. How can I use the current post slug as a taxonomy term slug filter?
Solution: You can set up a taxonomy term filter to respond to a shortcode attribute. In the View shortcode, you can place the current post's slug using the wpv-post-slug shortcode. Something like this:
[wpv-view name="Jobs related to this Health Center" healthcenter="[wpv-post-slug]"]
Problem: I have a View of repeatable field groups (RFGs) and I want to add a link to edit any row.
Solution: Place your Edit RFG Form in an unassigned Content Template (or Template Layout). In the View's Loop, use the Toolset Forms button to insert an Edit Post Link. Choose the Content Template or Template Layout you just created.
Problem: I am trying to use the Forms API, but I'm having trouble getting the value of a custom field and the selected post parent.
Solution: Use the 'wpcf-' prefix to access the value of a Types custom field in the Form, and use the parent field name to access the ID of the parent post.
Problem:
When you have Select2 inputs in a Toolset form (e.g. parent post selectors in a one-to-many relationship, where the form applies to the child post), and use the TAB key to move through the form on the front-end, then selecting an option in the Select2 inputs will provoke the next TAB click to reset the current location.
This means after selecting the option in Select2, pressing TAB will not lead to the next input but back to the top of the page.