Skip Navigation

[Resolved] Filter child by parent relationship

This support ticket is created 6 years, 3 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.

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 1 reply, has 2 voices.

Last updated by Minesh 6 years, 3 months ago.

Assisted by: Minesh.

Author
Posts
#1116157

Tell us what you are trying to do?
Hi! We have a custom post type "location" and "Private dining rooms" so one to many relationship.

How can we filter the Rooms by location in URL? We want a friendly URL like site.com/private-dining/location/ instead of site.com/private-dining/?locationID=123 or any idea to make it URL friendly?

#1116930

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

How can we filter the Rooms by location in URL? We want a friendly URL like site.com/private-dining/location/ instead of site.com/private-dining/?locationID=123 or any idea to make it URL friendly?
==> Well - URL param is needed when you set your view to filter by URL param as well as there is no way to add another custom post type title to URL, you simply can not use pretty URLs that as its not possible or you need to write such custom URL rewrite that fulfill your requirement.

More info:
=> hidden link