How to update result of search: AJAX update by selecting option in the filter. It works if non-logged in user but if I log in then it works only first time. The following selections of options in the filter doesn't lead to any changes of views results.
Dear anton,
The problem you mentioned above is abnormal, I suggest you check these:
1) Check if there is any JS error in your website, if there is, please paste/copy it here.
Javascript Debugging
Many of the operations in WordPress require Javascript. Any JavaScript error, caused by anything, may stop all further Javascript execution and prevent things from functioning properly.
JavaScript debugging is done using the browser’s built-in Developer Tools, more specifically, using a JavaScript Console. Today, all major browsers feature Developer Tools and a JavaScript Console:
In Chrome, click the Main menu button->More Tools->Developer Tools. Select the Console tab.
2) Remove the custom JS codes in the problem view, deactivate other plugins and switch to wordpress default theme, and test again
Uncaught TypeError: Cannot read property 'remove' of null
at HTMLTextAreaElement.<anonymous> (validation.js?ver=0.1.2:306)
at Function.each (jquery.js?ver=1.12.4:2)
at a.fn.init.each (jquery.js?ver=1.12.4:2)
at reload_tinyMCE (validation.js?ver=0.1.2:299)
at HTMLDocument.<anonymous> (validation.js?ver=0.1.2:352)
at HTMLDocument.dispatch (jquery.js?ver=1.12.4:3)
at HTMLDocument.r.handle (jquery.js?ver=1.12.4:3)
at Object.trigger (jquery.js?ver=1.12.4:3)
at Object.a.event.trigger (jquery-migrate.min.js?ver=1.4.1:2)
at HTMLDocument.<anonymous> (jquery.js?ver=1.12.4:3)
There is also CRED form on the page which lead to conflict. After deleting CRED from the filter works correctly. Please advise how to solve the issue.
thank you in advance!
Anton
Are you using a CRED form for editing post insider the Views loop, and the View is using AJAX custom search form?
If it is, it is a known problem, see the errata:
https://toolset.com/errata/cred-forms-cannot-be-loaded-on-the-frontend-after-third-party-ajax-calls/
There is no workaround for this issue at the moment.
I suggest you display only the Edit form link instead of the CRED form itself, see our document:
https://toolset.com/documentation/user-guides/displaying-cred-editing-forms/
section "Inserting links to “editing mode”"
CRED edit-post link – inserts a link to the “edit mode” of a post (post, page, or custom type). You can choose to insert a link to edit a specific post, the currently displayed post, or a post in a View loop.