Skip Navigation

[Resolved] Replacing or Making the

This support ticket is created 6 years, 7 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+00:00)

This topic contains 6 replies, has 2 voices.

Last updated by Nigel 6 years, 6 months ago.

Assisted by: Nigel.

Author
Posts
#682965

Tell us what you are trying to do?
Hello,
I have this plugin that automatically Filters Post as the user interacts with checkboxes of categories..
(without clicking a form "summit" button)
I've been trying to make it work with the Layouts and Views extensions.
...The URL takes a little while to be modified but it does seem to partially work.
The only missing element would be the Automatic Refresh.

Is there any documentation that you are following?
Yes:
hidden link

Is there a similar example that we can see?
A Similar example is here:
hidden link
The check boxes on the left refresh the whole page thought..
I would like to refresh only the Posts Area in the my page bellow:

What is the link to your site?
hidden link

It should be achieved with the "AJAX" setting of the Plugin.
It works perfectly in a regular WP page but I really would want to use ToolSet Layouts and Views...
Perhaps this plugin can be removed and I could achieve the same functionality with TooSet?

I'm open to either way.
Please let me know
Thank you!

#682981

Nigel
Supporter

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

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

Screen Shot 2018-04-18 at 07.33.41.png

Hi there

This is something that you can do natively with Views, and Views is unlikely to work with a 3rd-party plugin that performs a similar function, you should choose one or the other.

When you create a custom search View for a post type that includes custom taxonomies or custom fields that can be displayed as checkboxes you insert filters for these in the Filter Editor.

In the Custom Search Settings you would choose "AJAX results update when visitors change any filter values".

That way as soon as as user makes a selection from a checkbox, the list of matching posts will update.

https://toolset.com/documentation/user-guides/front-page-filters/#2-1-custom-search-settings

#688457

Oh great, thank you so much!!
I'll go ahead and try to build this function with Views

#690647

Nigel
Supporter

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

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

OK, let me know if you get stuck.

#718476

Thank you, I will...

#721115

That was a great Tutorial Nigel,
Thank you for sharing,
I was able to achieve exactly the same functions needed...
Only 3 questions remain:

#1 How can I exclude certain categories from the filter controls?
I'm using Regular WP Post Categories as checkboxes but wouldn't want to have them all listed.
Maybe I can exclude some by their ID?

#2 How can I set only 10 "Featured" articles to be loaded by default?

#3 Can I have the Spinner appear in the left side replacing the Articles until it loads them again?
See Filter on the right, results in the Left here:
hidden link

Looking forward to hear from you,
Thanks a lot again!!

#726060

Nigel
Supporter

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

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

Screen Shot 2018-04-24 at 11.43.20.png

Hi there

1. That's not possible. The only options that affect which taxonomy terms (or categories) are displayed are in the Custom Search Settings to either display all options, or only terms that have been assigned to posts (so if there is a category "Future" but no posts have Future assigned then it will not be displayed).

That's why it is not a good idea to use categories for multiple purposes, e.g. adding some categories to organise blog posts, other categories to organise some custom posts. Better to create a custom taxonomy for the specific purpose of organising your custom posts and leave the categories to organise your blog posts, for example.

2. I'm not sure exactly what you mean by showing featured articles. Your View may be set up to, for example, only show posts with a "featured" category, and if you want to limit how many are shown you can do that with the "Limit and Offset" settings.

If you have created a custom search View this section may not be visible. Go to the Screen Options tab at the very top of the page and check the "Limit and Offet" settings checkbox, which will expose the section required to set the limit to the number of posts.

3. If your View updates via ajax then in the Filter Editor you should see a "Spinner Graphics" button which you can use to insert the shortcode that generates a spinner while the results update.