Skip Navigation

[Resolved] view from two taxonomies where one term may be empty

This support ticket is created 7 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.

Our next available supporter will start replying to tickets in about 7.29 hours from now. Thank you for your understanding.

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 4 replies, has 2 voices.

Last updated by Minesh 7 years, 6 months ago.

Assisted by: Minesh.

Author
Posts
#405751

I have two custom taxonomies areas and provider e.g.

Areas:

- Berkshire
- London
- Sussex

Providers:

- Photographers
- Caterers
- Venues

There may not be any entries for each each provider for a particular category. For example there may not be any entries for photographers in Sussex

I am trying to create a view which shows the taxonomy name and image for all the different providers for each area where the provider is not empty. I don't want to show the actual post. I know how to show the taxonomy images

The end result will be a page called, for example "wedding providers in Sussex" with photos of all the different provider types, this links to a page where you can see the actual custom posts (I have set this view up).

Do you know how I can do this? I can show all the providers for an area but not hide them when they are empty.

Apologies in advance. if I take a while to get back to any response.

#405756
sussex.jpg

I would like to try to do this with an archive view, but I realise this is not possible (unless it will work in the forthcoming version of views).

I've added a mockup to show exactly what I am trying to achieve.

Many thanks

#405783

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

There is no way to relate taxonomy to another taxonomy. But what if you try to build a view that returns clean output and use that view in conditional shortcode.

Something like this:

[wpv-view name="your-provider-taxonomy-view" tax="paas-here-current-ara-taxonomy-term"]

Then, filter the above view by Views shortcode attribute "tax" .

Use above view with [wpv-confitional] statement.

[wpv-conditional if="( '[wpv-view name="provider-taxonomy-view" tax="current-area-taxonomy-term"]' ne '''' )"]
show taxonomy title
[/wpv-conditional]

I also would like to review your setup and problem URL where you are displaying taxonomy terms for taxonomy providers for taxonomy areas for taxonomy term "Sussex".

#405785

Thankyou for the speedy reply.

I will try this out when I get back in a few days.

#405786

Minesh
Supporter

Languages: English (English )

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

Ok - thank you.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.