Skip Navigation

[Gelöst] adding pagination to flex slider from modules samples

This support ticket is created vor 7 Jahre, 7 Monate. 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 15 Antworten, has 2 Stimmen.

Last updated by Marisa vor 7 Jahre, 6 Monate.

Assigned support staff: Luo Yang.


I found a super awesome solution to creating swipe enabled sliders from Custom Content (including fields).

I combined types and views with Shortcodes Ultimate Extras Add-on and used the Content Slider Shortcode:

The result looks great in desktop and mobile:
hidden link

(it has nothing to do with soliloquy even though that's in the slug).

My View settings are as follows:

I checked case stories.

My loop output looks like this:

	<!-- wpv-loop-start -->
          [su_content_slider arrows="yes" pages="no"]<wpv-loop>[wpv-post-body view_template="SU Single"]</wpv-loop> [/su_content_slider]
	<!-- wpv-loop-end -->
		[wpml-string context="wpv-views"]<strong>No items found</strong>[/wpml-string]

My content template looks like this:

[types field="case-story-image" size="full" align="none"][/types]<div class="case-story-text">
  <h1>[wpv-post-title]</h1><p class="story">[wpv-trim-long words="20"][types field="case-story-text" output="raw"][/types][/wpv-trim-long]</p></div>

My css looks like this:

 .case-story-text {
      padding:10px 20px 0;
    p.story {
	h1 {
@media screen and (max-width:800px) {
      .case-story-text {
      p.story, h1{

I really hope this helps someone else. Combining types and views with SU is amazingly powerful. The code for the above using only Content Slider from SU would have been many more lines without Types and Views to query the custom post types and let me have granular control over the content template style (the slides).

And most valuable, due to the Views query loop, I can make a change in one place and it changes all slides. Also the client or team can add a case story and it will magically appear in the slide, why I love to use Views in the first place.