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
#1386787
2.fw.png
1.fw.png

Tell us what you are trying to do?

I am creating a layout for a template for main pages which link to a templated post page. i am using filtergrid to display a grid of items drawn from a category. i would like to somehow make this into a template but cant figure out how to automatically select the categories for the different sections of the website.

I have noticed in the doucmentation and example websites that grids are used. Perhaps it is better to use a different module?.... I am not sure which one?....

Is there any documentation that you are following?
yes

Is there a similar example that we can see?
no

What is the link to your site?
hidden link

#1386917

Nigel
Supporter

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

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

"I am creating a layout for a template for main pages which link to a templated post page"

Sorry, I don't really understand that statement. Can you elaborate a little on what you are aiming to do?

Divi has recently added templating, but I don't know anything about the details, nor about the filtergrid module.

The page you linked to is a blog post.

I expect that you might want to create a template for displaying single blog posts.

The normal Toolset workflow with Divi would be to create a template for single posts at Toolset > Content Templates, and then optionally choose to design the template with Divi.

If you wanted to add a grid of some posts below the blog post content then you would create a View to generate the grid of posts and you would insert that into your template using a Divi Text Module and using the Field and Views button.

As part of the template for posts that would then appear on every blog post, which may not be what you intend. If you only wanted it to appear on specific posts then you could insert the View into the post directly.

I'm not sure what to tell you as I'm not clear what you want to do. Ignoring which tools are used, if you want to clarify that I should be able to give some more specific help.

#1386963

Hi Nigel,

Thanks for the response...

"If you wanted to add a grid of some posts below the blog post content then you would create a View to generate the grid of posts and you would insert that into your template using a Divi Text Module and using the Field and Views button."

I was hoping to add a grid of posts not in the post page but the page before it. For example if you click on restaurants.... you get a page with a grid of posts which link to individual restaurant posts.

How would I setup a grid that dynamically loads restaurants for example (in the restaurants section), make it into a template page and apply that same grid to dynamically load the "things to do" page which then links to individual activies.????.

#1386967
3.jpg

this is the grid for accommodation . i would like to make it a template and load items in it from different categories, so basically there is one page which is used for multiple categories and loading items from each category

#1387131

ok, So it seems I can insert a grid.

but...

1. Can I insert a grid into a divi page
2. Can the grid be used as a single template for several pages that require grids which have different items loaded into them?.

#1387135

Nigel
Supporter

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

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

You would use a View to create a grid of posts such as the grid of accommodation posts you show.

Is accommodation a category or taxonomy term, and restaurants and things-to-do would be examples of other categories, but they all relate to the same post type?

You could create the View and include a Query Filter which specifies the category of posts to display, where the category is passed to the View where the View is inserted, using a shortcode attribute.

That's described here.

But I'm not sure how you would automatically pass the relevant category because I'm still not sure where you want to display it.

I simply don't understand "I was hoping to add a grid of posts not in the post page but the page before it".

#1387147

Nigel
Supporter

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

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

Sorry, seems we cross posted.

1. You can insert Views into pages, posts, and templates for posts.

2. The grid isn't a template. The grid (generated by a View) is something you add to a template.

If you were, for example, displaying a blog post, and that post had a category "accommodation", then you could include the View that displays the grid on the page, and where you insert the View (using a wpv-view shortcode) you can add an attribute for the category of items to display in the grid (as described in the previous reply) and automatically generate the value of that attribute with the wpv-post-taxonomy shortcode, which in the context of a blog post categorised "accommodation" would pass "accommodation" to the View so that it knew which posts to display in the grid.

Does that sound closer to the kind of thing you are aiming for?

#1387161

Yes. Thats correct thanks... If i can insert the view and taxonomy for the cateogry that would be perfect and allow me to use a single template for a dozen pages.

I dont though understand exactly how to do it. would you mind sending me a link to a tutorial on how to do it?.

thanks so much!!

#1387169

Sorry i re read that

so i have main pages for various places (about 10 places)

1. accommodation
2. things to do
3. events

I was hoping to create one single template for all these pages and for ten places.
I was hoping on each of these pages to have a grid that links to individual post pages

In order to do this, as i understand, I need a post grid.

This post grid somehow dynamically loads the items for each category.

A tutorial on this would amazing, if you could send the link... thanks

#1387551

Hi again, just letting you know I am using DIVI, so the grid button does not appear in the views button on the gui editor.

#1387731

Nigel
Supporter

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

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

Ah, yes. Divi isn't compatible with Bootstrap, so you can't choose a Bootstrap grid as the output format of the View.

So you will need some manual intervention to set up the markup in such a way as to create the grid.

Give me some time to check whether it is possible to re-use the CSS for Divi's own grids, or whether it would be easier to roll-your-own grid. I'll get back to you on that.

The items you are displaying in the grids for different categories, from the link you shared, it looks like these are all just standard posts, yes? You haven't made custom post types for accommodation, for events, etc., they are all posts and are identified by category?

#1387791

Thanks Nigel,
There are three levels of pages I would like

1. The post page (level 3) - which is a single page without a post type. If I made post types for the categories, I would need 100 post types of pages which are all the same.

2. The landing page for sections like accommodation, things to do, festivals & events (level 2) which is about 50 pages which all just have the grid linked to posts

3. The main destination page for different places (level one) which I was thinking of not templating but would be open to it.

Am I correct this is possible without Divi?.... I would consider that although I know Divi and would prefer it for that reason.

So if there are other options, if Divi is not possible , It would be great to hear them!

Thanks again!!

#1387799

Is this a work around?.

Rather than make pages, I use categories and create categories...........

The Blog Module
The Blog Module is the primary module that should be used to display Category Page templates. This is because has the built in option to display Posts for Current Page.

hidden link

#1387835

Actually, the dynamic category page template does work if I could load the category description dynamically into it!!

#1387857

SO now it seems I need to find a way to get the category description inside the category template

hidden link