Skip Navigation

[Resolved] Refresh a view with button click

This support ticket is created 6 years, 3 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.

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by robina-2 6 years, 3 months ago.

Author
Posts
#1120211

I have a view that is loading content just fine. I would like to have the view refresh, grab the posts again in case there are new ones, when I click a button.

Is there a simple way to do this?

#1120455

The simplest way is adding an HTML Button that leads to the page where the View is inserted (hence, reloads the page)

Example:

<a href="whatever.url/page-with-view">Reload</a>

Views only feature a reset button for Searches, but not a "reload" button as you mention. I usually use the above manual HTML.

#1125329

That stinks. There should be a method for refreshing a view, the same way a filter option does, using an AJAX call.