Skip Navigation

[Resolved] How to create a simple navigation button

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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by Jay 4 months, 4 weeks ago.

Assigned support staff: Minesh.

Author
Posts
#2414871

Jay

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

hidden link

#2415273

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

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.

More info:
- https://toolset.com/documentation/programmer-reference/views/views-shortcodes/item-attribute/

Then, you customize this link using CSS as required.

#2415873

Jay

My issue is resolved now. Thank you!