Skip Navigation

[Resolved] Is there any way to connect one post type taxonomy to another PFA

This support ticket is created 4 years, 6 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 4 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#1992979

Thank you for getting back to me.

The taxonomy I created in one post type is not able to map with the other post type. I have Expertise information as a taxonomy in Law expert post type. I have added a relationship between Law expert Post type and Cities Post type and chose Expertise information as a custom field.

But I think custom coding is the best option as you suggested.

Keeping that aside, I m now facing a new issue.

As I stated earlier I have Law experts who work at multiple locations with multiple expertise.

One expert can be a child custody lawyer in NY and Divorce lawyer in Brooklyn.

I would like to display experts available based on the location or expertise information the consumer chooses.

To achieve this I have created 4 Post types:

1. Law Experts (information such as phone, email, picture, description, expertise info etc)
2. States
3. Counties
4. Cities

I have created relationships between States -> Counties, Counties -> Cities, Cities ->Law Experts.

While creating a relationship between Cities and Law experts, I chose the expertise info field in the Law Experts as the Custom field (PFA one.png).

I am displaying the Expertise info on the search page along with State->Counties->Cities dropdown. (PFA two.png)

This information mapping such as city, county, expertise info is appearing on the Law Experts as PFA three.png

However, when I am displaying expertise info as the dropdown on the search page I am unable to see the mapped expert info. I am only able to see 'All' as an option PFA four.png.

I would like to display all the expertise information (PFA five.png) on the filed on the dropdown. Please suggest.

Thank you.

#1993143

Hello,

I assume we are talking about this case:
1) many-to-many relationship between post types "Law Experts" and "Cities", connect with an intermediary post type.
2) the custom field "field of expertise information" is in above intermediary post type
3) You are using a view block:
- Query "Law Experts" posts
And you are going to filter the result by custom field "field of expertise information".

If it is, it is not possible yet, and Toolset Views block is using WP_Query to query the posts, you can filter the result by custom fields/taxonomies of current post type, but the custom field "field of expertise information" is not in "Law Experts" post type, so it is expected result, you see none option in that dropdown menu "field of expertise information"

In your case, you might consider to move custom field "field of expertise information" into post type "Law Experts"