Reload Query Loop When FacetWP Uncheck

Closed. This question is off-topic. It is not currently accepting answers.Your question should be specific to WordPress.

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 question

I 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 question

I 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 badges
Add a comment  | 

1 Answer 1

Reset to default 1

I 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:

  1. You have the [a-z-listing] shortcode as your "default" state for the FacetWP settings on this page.
  2. FacetWP and AZ Listings are not integrated (I don't believe they are officially).

Here is a breakdown of events (given the assumptions above):

  1. FacetWP does an initial load and executes do_shortcode somewhere in order to render [a-z-listing].
  2. 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?).
  3. 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

相关推荐

  • Reload Query Loop When FacetWP Uncheck

    Closed. This question is off-topic. It is not currently accepting answers.Your question should be specific to WordPress.

    19小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信