Skip Navigation

[Resolved] Views custom template and taxonomy relationship

This support ticket is created 6 years, 10 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 3 replies, has 2 voices.

Last updated by Minesh 6 years, 10 months ago.

Assisted by: Minesh.

Author
Posts
#613959

We have a site with properties located in multiple states.

In our main menu, we link to a page for each state. On the page is a list of all properties in that state. Here is our current site so you can see an example - hidden link.

I will create a taxonomy for each state, and a content template for each taxonomy to list the properties in that state.

I just want a small thumbnail and and link to the main page for that property on the views page for each state.

From what i can see, i will create a page for each state and use that views content template for the corresponding state page.

In the content template editor, i used visual composer, added text field and added {!{wpv-post-taxonomy type='alabama'}!}.

Now in the "usage" section, do I select "alabama" under "taxonomy archives"?

But when i create my page for Alabama, i do not see my views template listed in the drop down? Do i select "pages" under "single pages" AND "alabama" under taxonomy archives"?

This is not clear at all how to do this from reading your docs.

Just need a little guidance.

Thanks

#614061

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

I would like to know here - do you want to create different content template for each state?

If no, then you should assign the content template to use as page and then check if that help you to show content template within the dropdown.

Here is the information how you can build content template with visual composer:
=> https://toolset.com/documentation/user-guides/using-toolset-with-wpbakery-page-builder/create-templates-for-custom-post-types/

I this best way for you is to create a view and add taxonomy filter, filter by "Value set by the current page where this View is shown" option.
=> https://toolset.com/documentation/user-guides/filtering-views-by-taxonomy/

#614418

The general layout wiil be the same, it will just show different properties tha belong to that state. You can see on our exisiting site under Find a Community menu item.

I will read the docs you linked to. I just want to make sure i have all this setup correct.

There are too many moving parts to this plugin. It needs to be simplified and streamlined a lot.

#614604

Minesh
Supporter

Languages: English (English )

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

The general layout wiil be the same, it will just show different properties tha belong to that state. You can see on our exisiting site under Find a Community menu item.
==> Ok - I've checked the page and I see it just lists posts group by category.

So, the Doc I already shared with you will help you.

But you should see following article - it will certainly help you:
=> https://toolset.com/2015/07/how-to-group-posts-by-category/

You just need to follow the steps and you will be able achieve what you were looking for.