Skip Navigation

[Resolved] View Pagination linking to XML page

This support ticket is created 3 years, 6 months 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 3 replies, has 2 voices.

Last updated by davidL-7 3 years, 6 months ago.

Assisted by: Shane.

Author
Posts
#2060229

Hi, we have a web page that displays a view with pagination ("Pagination enabled with manual transition and page reload"). Here's the pagination template code:

[wpv-filter-start hide="false"]
[wpv-filter-controls][/wpv-filter-controls]
[wpv-pagination]
<p style="text-align:center;">Viewing page [wpv-pager-current-page] <em>of</em> [wpv-pager-num-page]</p>
<div class="row">
<div class="pagination_col pagination_col_side">
<p>[wpv-pager-next-page] [wpml-string context="wpv-views"]" Older Meetings[/wpml-string][/wpv-pager-next-page]</p>
  </div>
  <div class="pagination_col pagination_col_center">[wpv-pager-nav-links output="bootstrap"]</div>
<div class="pagination_col pagination_col_side">  
<p class="right">[wpv-pager-prev-page][wpml-string context="wpv-views"]More Recent Meetings "[/wpml-string][/wpv-pager-prev-page]</p>
  </div></div>
[/wpv-pagination]
[wpv-filter-end]

Link to a page where the issue can be seen:

You can see the page in question at hidden link

I expected to see:

When clicking on the pagination, instead of seeing another web page with the paginated set of results...

Instead, I got:

...one gets an XML sitemap! (Click on any pagination link to reproduce.) The URLs produced by the pagination are taking this form:

hidden link

The XML sitemap is produced by the Yoast SEO plugin. I deactivated the plugin, cleared the cache and refreshed the web page, but the pagination URLs pointing to /page-sitemap.xml didn't change (although now the pagination link produces a 404 page instead of the XML sitemap).

Since the pagination links are being produced by

[wpv-pager-nav-links output="bootstrap"]

, I'm unclear what to try next.

Thanks in advance for any thoughts,
David

#2060371

Shane
Supporter

Languages: English (English )

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

Hi David,

I tried to look at the site but i'm unable to view because access has been blocked by wordfence.

Can you provide me with credentials to log in and look as well ?

Please allow the ip to access the site.
104.244.231.118

Thanks,
Shane

#2060485

Shane
Supporter

Languages: English (English )

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

Hi David,

This is definitely caching on your end.

When I looked at the site the pagination works fine.

So clearing your browsers cache should resolve the issue for you on your end.

Thanks,
Shane

#2064539

Thanks Shane! It's all good now.

I'm guessing that the original issue was some kind of bug between Views and Yoast SEO (thought I still can't think of any reason why the pagination links would start pointing to page-sitemap.xml).

In any case, just to re-cap, I deactivated Yoast SEO, cleared the cache, re-activated it, and then once the browser cache's were cleared the issue was gone and the pagination links working as expected.

Mysterious, but we're all good! Thanks for taking a look!