[Resolved] Views filter shortcodes wrapped with {!{ }!} and not working
This thread is resolved. Here is a description of the problem and solution.
Problem:
A bug in Views 2.5 causes shortcodes to be wrapped with curly braces instead of square brackets in some unintended places such as in the Filter Editor of a View.
Solution:
Manually edit the shortcodes to replace [ and ] with square brackets until a fix is published.
This support ticket is created 7 years 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.
I have created a very simply View for a CPT called Exercises.
Exercises has a taxonomy called "Exercise Categories".
I wanted to create a "select/dropdown" filter for these Exercises with the Exercise Categories in the select menu.
If I choose it to be an AJAX filter, then no Exercise categories are populated in the select menu. If I choose it to display results after the Submit button is selected then the Exercise Categories actually get displayed.. but the Submit Button doesn't display.
I have done this on many other sites before and not had this issue. I am using a TOOLSET theme and disabled all unnecessay plugins. I cannot find any conflicts. Any help would be appreciated.
I just checked this on a test site using the Toolset Starter Child theme and was unable to reproduce the issue, it seems like it may be an exception on your particular install.
I think the best way for me to proceed is to take a copy of the site and test it locally.
I will mark your next reply as private so that I can get log-in credentials from you—you may want to create a temporary admin user for me to use that you can later delete. And be sure to have a current backup of your site, even though I don't intend to make any changes other than to temporarily add a backup plugin to take a snapshot of the site.
I took a look at your site and could see the problem straight away.
We have an issue with Views currently when used on sites with page builders where shortcodes are being inserted erroneously using curly braces rather than square brackets.
We should be publishing a fix soon, but in the meantime I manually edited your View for exercises and changed the shortcodes to the correct format.
The View didn't seem to be displayed anywhere so I made a test page (Toolset Test Exercise View) where the View is inserted and where I was able to test that it works.
Keep an eye only those curly braces (actually {!{ and }!} in place of square brackets) if you are adding/editing Views content until the update is published.
I took a look at your site and could see the problem straight away.
We have an issue with Views currently when used on sites with page builders where shortcodes are being inserted erroneously using curly braces rather than square brackets.
We should be publishing a fix soon, but in the meantime I manually edited your View for exercises and changed the shortcodes to the correct format.
The View didn't seem to be displayed anywhere so I made a test page (Toolset Test Exercise View) where the View is inserted and where I was able to test that it works.
Keep an eye only those curly braces (actually {!{ and }!} in place of square brackets) if you are adding/editing Views content until the update is published.