Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 5 years ago.
Improve this questionI am working on wordpress site with facetwp plugin. It already show the facet filter properly. When I filter it by checked the checkbox (on left sidebar) it will show the results. But when I uncheck that then it's not back to reload the content of wordpress (in this case I use AZ Listing plugin).
How to revert back to showing the old content when uncheck the facetwp? This is the link: /
Closed. This question is off-topic. It is not currently accepting answers.Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 5 years ago.
Improve this questionI am working on wordpress site with facetwp plugin. It already show the facet filter properly. When I filter it by checked the checkbox (on left sidebar) it will show the results. But when I uncheck that then it's not back to reload the content of wordpress (in this case I use AZ Listing plugin).
How to revert back to showing the old content when uncheck the facetwp? This is the link: http://korexindo/k-market/
Share Improve this question edited Jul 20, 2019 at 21:40 panjianom asked Jul 18, 2019 at 14:00 panjianompanjianom 717 bronze badges1 Answer
Reset to default 1I think the "initial" state being a shortcode is the root of your issue.
I'm making a few assumptions to what your setup looks like:
- You have the [a-z-listing] shortcode as your "default" state for the FacetWP settings on this page.
- FacetWP and AZ Listings are not integrated (I don't believe they are officially).
Here is a breakdown of events (given the assumptions above):
- FacetWP does an initial load and executes do_shortcode somewhere in order to render [a-z-listing].
- Upon filtering something with FacetWP, the shortcode html is completely deleted from the DOM. This means that we cannot get it back unless we somehow re-render the default state (page refresh?).
- Unchecking the filter does not resolve back to the initial state because FacetWP does not execute do_shortcode again.
Here is an animated GIF of a-z listings being replaced by the Facetwp results template completely: https://i.sstatic/pSaXU.jpg
While this may not be the answer you're looking for, it may point you in the right direction. I would look into the following resources:
- https://facetwp/reset-facets/
- https://facetwp/documentation/developers/how-facetwp-works/
- https://facetwp/documentation/shortcodes/
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745305346a4621676.html
评论列表(0条)