I have 2 CPTs Parent Locations and Child Locations.
There is an existing relationship Parent ONE to Child MANY. so a one to many relationship.
I want a simple button on the child CPT that takes a viewer to the parent location.
Adding button is easy.
Do I need to build a second one to many relationship backwards from child to parent, or should the relationship I've got give me the options on the template?
Thanks
J
Hello. Thank you for contacting the Toolset support.
To display the title as button, you should display the title as link using the shortcode [wpv-post-link] and to target the parent you should use the "item" attribute.
For example:
[wpv-post-link item="@relationship-slug.parent"]
Where:
- replace "relationship-slug" with your original post relationship slug.