[Resolved] Filtered Output Showing Memberium Shortcode on Frontend
This thread is resolved. Here is a description of the problem and solution.
Problem:
Filtered Output Showing Memberium Shortcode on Frontend
Solution:
Third-party shortcodes typically will not work when a page is updated via ajax when you set your filters to update the results using ajax or by using ajax-based pagination. The only solution is to update results via a page refresh rather than ajax in such situations.
Now when you apply a filter to the results the output displays the correct search results but id displays Memberium Shortcode which is designed to hide posts from some members and not others.
If you refresh the page (F5, not the form 'reset' button) the page reloads with the correct search resuls, and the Memberiums Shortcode is hidden and functioning correction. (here is a quick screenshot video of that happening: hidden link)
Can you help us with this? Is there any reason why the shortcode used to work within Views and now does not? And any reason why it doesn't work on a first attempt, but does when we refresh the page?
I will need to send you login details to view this in action as this page is hidden from the public.
I have attached a few screenshots:
1. The Views Setup Page - hidden link
2. The Backedn of the page - hidden link
3. The Frontend of the page before the filter is applied. - hidden link
4. The frontend of the page after the filter is applied - here you can see the shortcode not working (its on display) - hidden link
5. The frontent of the page after the filter is applied and i have refreshed the page (pressed F5) - here you can see the shortcode working correctly, only showing the content according to Memberium permissions. - hidden link
Would really appreciate your help with this! Thanks!
Hello. Thank you for contacting the Toolset support.
If you check with our Docs:
=> https://toolset.com/documentation/user-guides/views/front-page-filters/#2-1-custom-search-settings
We added the following notice: Toolset forms and shortcodes from 3rd party plugins (for example, Visual Composer) will not work properly when any type of AJAX call is used inside Content Templates, Views, and WordPress Archives. This includes AJAX pagination and custom search.
Third-party shortcodes typically will not work when a page is updated via ajax when you set your filters to update the results using ajax or by using ajax-based pagination. The only solution is to update results via a page refresh rather than ajax in suchsituations.