Skip Navigation

[Resolved] Two almost identical sites, [wpv-found-count] not refreshing on one of them

This support ticket is created 6 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Shane 6 years ago.

Assisted by: Shane.

Author
Posts
#1196432

I am trying to:

I have two sites on the same multisite installation. Each one uses a near-identical archive view, differing only in the specific fields that each one is displaying, but with the same html structure and order. On one site, the [wpv-found-count] AJAX-updates when I select a filter; on the other it does not.

Both have the following settings:
- Pagination enabled with manual transition and AJAX
- AJAX results update when visitors change any filter values
- [wpv-found-count] shortcode placed immediately inside [wpv-filter-controls] (inside a nested div).

The only difference I can see is that on the site where the count does not refresh automatically, there is an option that says "Browser History Management: Update the URL of the page when paginating the WordPress Archive" (which is ticked), while on the site where it does refresh automatically this option doesn't exist. This may not be relevant, but I can see no explanation for the discrepancy.

According to some previous support threads:

- The count only updates (without page refresh) when within the [wpv-items-found] shortcode:
https://toolset.com/forums/topic/wpv-found-count-not-updating/

- Although it can be used in the search and pagination section:
https://toolset.com/forums/topic/show-wpv-found-count-in-the-search-button/

My question is twofold:
1. Why does the count refresh work on one of the sites, despite the shortcode not being within the wpv-items-found section?
2. The count does refresh when placed within the wpv-items-found section. but since the page layout lends itself to the count being placed above the filters, rather than above the results, and given that it does work on the other site, I don't want to move it, so is there some way to get the count updating without refresh in that location?

Link to a page where the issue can be seen:
- Not available (organizational login required)
- I can provide any necessary details as requested

I expected to see:
I want to see the count updating on both sites (but given the above, I guess I expect to see the count not updating on site 2).

Instead, I got:
The count does not update without page refresh.

** Note, the debug information below is for site 1, where the refresh is not working. I tried appending the debug info for site 2 where it is anomalously working, but the form doesn't accept it. Thanks.

#1196770

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Jeremy,

Thank you for contacting our support forum.

1. Why does the count refresh work on one of the sites, despite the shortcode not being within the wpv-items-found section?

A. The site that it works on is it using an AJAX refresh for the results update ? I've tested this on my end with an AJAX refresh within the wpv-items-found shortcode and it doesn't work here.

It could be that the site where it works is not using the AJAX refresh.

2. The count does refresh when placed within the wpv-items-found section. but since the page layout lends itself to the count being placed above the filters, rather than above the results, and given that it does work on the other site, I don't want to move it, so is there some way to get the count updating without refresh in that location?

A. It seems that there is an issue with this as i'm able to replicate an issue where it is in the filter section of the view but when the filter updates and the view update the count does not update.

I suspect that this is the same scenario for you. Could you please confirm and let me know.

This way I can create an escalated ticket with the reported issue.

Thanks,
Shane