Skip Navigation

[Resolved] can i somehow use this with filtergrid

This support ticket is created 5 years, 4 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+01:00)

This topic contains 20 replies, has 2 voices.

Last updated by Nigel 5 years, 4 months ago.

Assisted by: Nigel.

Author
Posts
#1387903

ahh ok.... So i managed to load a php snippet using the plugin - Insert PHP code snippet

I then generated a shortcode to load the category description.

I used the below code to create a shortcode which i loaded into the divi layout for the category page.

<?php
the_archive_description( '<div class="taxonomy-description">', '</div>' );
?>

I now have a divi grid on each category which loads the templated post page for that category.

#1387925

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

The Divi document you linked to is about creating custom category archives.

Divi includes certain modules for generating lists or grids of content and can now create custom templates for posts and archives, but I can't help you with that, you would need to consult Divi for guidance. You seem to be most of the way there in resolving this yourself going down the route of using Divi for this.

In the context of Divi, what I can help you with is using Divi to design output that you generate with Toolset, e.g. Views, templates and custom archives.

I had been about to post how I would set this up if I were doing it, using Toolset, but I'm not sure that helps as you appear to be doing everything entirely with Divi.

If you are stuck with something related to Toolset, let me know.

#1387949

Hi Nigel,

Thanks for your response...

How would you set it up?.... I am not sure if what I have done is the best solution....

#1388035

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Abstracting from Divi, you want a "page" structure that is something like this, without having to manually create all of the pages yourself:

Aran Islands
                Inishmore
                            Accommodation (in Inishmore)
                            Events (in Inishmore)
                            Things to Do (in Inishmore)
                Inishmaan   
                            Accommodation (in Inishmaan)
                            Events (in Inishmaan)
                            Things to Do (in Inishmaan)
                Inisheer
                            Accommodation (in Inisheer)
                            Events (in Inisheer)
                            Things to Do (in Inisheer)
                etc.

On a site where you may already be using standard posts in a blog for news etc. I think it is helpful to create a custom post type to keep them apart.

There might be a case for making separate post types for accommodation, for events, and for activities, but in this case I think you want to use a single post type, where the post content contains the entirety of the post (rather than having much of it in custom fields etc.).

So generalising across the categories, the things that we ultimately want to display are posts of activities, events, or accommodation, and in such a broad case I might call the post type "guides", but it could equally be "entries" or something else.

So I have guides as a post type. And I need to be able to distinguish them by the place they belong to, and by the kind of guide, so I make two custom taxonomies, one "place" and another, let's say "kind", but you might have a better name.

So I publish "guide" posts and assign them a "place" and a "kind". So I might publish a place to stay in Inishmore which would have the place term "Inishmore" and kind term "Accommodation" assigned, etc.

I'm assuming here that you are going to want to create pages for each place ("Welcome to beautiful Inishmore where..." etc.) and on that page you will include links to Accommodation in Inishmore, Events in Inishmore, and Activities in Inishmore.

We don't want to manually publish such pages, we would instead create one page that we add a View to where we pass the place and kind as parameters in the links to that page so that the View knows which guide posts to display.

Let's call that page "Guides", so it would be at a URL such as aranislands.ie/guides/

(We can't use "guide" because that would be used for the individual posts of the guide type.)

So on my page "Inishmore" I insert links to the same View, but each time passing different parameters to the View to specify the place and kind.

So that would look something like this:

<a href="<em><u>hidden link</u></em>">Places to stay</a>
<a href="<em><u>hidden link</u></em>">Events</a>
<a href=""<em><u>hidden link</u></em>">Things to do</a>

Then your View which will display guide posts needs two Query Filters that listen to these URL parameters to specify the place and kind.

When you insert such a taxonomy filter it will normally suggest a parameter such as "wpvplace", but you can change these, as long as it is something different than the taxonomy slug, and in my example above I used _place and _kind.

So, to recap, you make individual pages for each location which includes a description and images, and then you include links as shown in the example above to a target page which has the View that will display a grid of relevant posts.

You could abstract this a little further by taking that set of links above, putting them into a simple Views content template, and automatically generating the _place parameter value from the current page slug (provided your page slugs correspond to the slugs of your place taxonomy terms).

If you want to discuss how you would go down this route and involve Divi let me know, and be sure to be clear about pages vs. posts vs. archives in your replies, thanks.

#1391077

Thanks so much for help on this.
For the moment, we manually built the pages... but in retrospect, I think your solution is better.... We will come back to this solution down the road... Making the first level pages was more time intensive than I first anticipated.

#1391101

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

OK, well good luck with the project.

I think we can close here..?