Skip Navigation

[Resolved] Taxonomy slider doesn't display content when clicking next/previous controls

This support ticket is created 5 years, 4 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by alisonC 5 years, 4 months ago.

Assisted by: Christian Cox.

Author
Posts
#1287915
Capture.PNG

On the front page of the associated site, look at the suppliers section. This is a taxonomy slider using a Toolset-created custom taxonomy and Views. When you click the next/previous buttons using Ajax transitions, no content loads.

If you force a page reload using a generated link, e.g. /?wpv_view_count=1811&wpv_paged=2, page 2 content loads.

Directly beneath is a post slider using the exact same settings and code (the client slider), and it's working perfectly. I tried removing the second slider to see if it was causing a conflict, but that did not solve the problem.

Here is the view code:

[wpv-layout-start]
	[wpv-items-found]
<div class="flex-wrap col-slider-wrap">
	[wpv-pager-prev-page]
        [wpml-string context="wpv-views"]<div class="prev-wrap"><span class="dashicons dashicons-arrow-left-alt2"></span></div>[/wpml-string]
    [/wpv-pager-prev-page]
	<!-- wpv-loop-start -->
  	<div class="slide-wrap">
	<wpv-loop wrap="5">
      [wpv-item index=1]
      <div class="one-fifth">[wpv-post-body view_template="Suppliers Slider - slide"]</div>
      [wpv-item index=other]
      <div class="one-fifth">[wpv-post-body view_template="Suppliers Slider - slide"]</div>
	</wpv-loop>
  </div>
		<!-- wpv-loop-end -->
	[/wpv-items-found]
	[wpv-pager-next-page]
        [wpml-string context="wpv-views"]<div class="next-wrap"><span class="dashicons dashicons-arrow-right-alt2"></span></div>[/wpml-string]
    [/wpv-pager-next-page]
</div>
	[wpv-no-items-found]
	[/wpv-no-items-found]
[wpv-layout-end]

And the template, which is working perfectly on slide 1 and on page reload:

<a href="[wpv-taxonomy-url]" title="[wpv-taxonomy-title]">[types termmeta='supplier-logo' title='%%TITLE%%' alt='%%ALT%%' size='full' align='center'][/types]</a>

See slider settings in attached image.

#1287941

Okay can you try replacing the template shortcode in the Loop Editor with the code inside the template? In other words, move the link tag out of the template and place it directly in the Loop Editor. There could be some kind of template corruption going on.

#1288159

Yep, that worked! Seems strange, as I created a whole new view (and, therefore, a new template) before trying anything else, in case the view was corrupted, but I won't look a gift horse in the mouth. 🙂

Thanks for your help!