Home › Toolset Professional Support › [Resolved] Slider shows only the first post content then transitions to blank slide
Problem: I have a Slider View that is configured to loop over 5 posts using a post ID filter. The first slide loads correctly, but then the Slider shows a blank space and transitions stop.
Solution: Review the View configurations and ensure "Don't include the current page in query results" is not checked, since it can cause unexpected problems like this.
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)
Tagged: Sliders, Views plugin
Related documentation:
This topic contains 7 replies, has 2 voices.
Last updated by Brian 6 years, 11 months ago.
Assisted by: Christian Cox.
I am trying to: Create a "testimonials" slider with five client testimonials
Link to a page where the issue can be seen: hidden link (site homepage)
I expected to see: Slider with automatic transitions looping through five testimonials
Instead, I got: First slide displays, then transition spinner, then blank space (second through fifth slides don't display). Note: this slider worked when I first created it a couple of years ago. Then it stopped working - maybe after a Toolset plugin update?
Hi, I'll be glad to take a look. Can you try the following troubleshooting steps first?
- Temporarily disable all plugins except Types and Views. Activate a default theme like Twenty Seventeen, then test again. You may activate a plugin like Maintenance Mode if you need to while testing.
- If the slides appear as expected, reactivate your theme and plugins one by one until the conflict is revealed.
- If the slides do not appear as expected, please take screenshots showing the entire View editor screen in wp-admin and share those here for me to review.
I'll review your findings and we can go from there.
Hi Christian, thanks for your response.
I tried the troubleshooting that you recommended, but I wasn't able to solve the problem. I disabled all of the non-Toolset plugins and switched themes to Twenty Seventeen. Unfortunately I wasn't really able to test whether it was a theme conflict because I'm using Dynamik Gen, and the slider is displayed in a widget area that is specific to that theme. However, when I reactivated Dynamik Gen but kept all plugins disabled, the slider problem persisted.
I'm uploading a screenshot of the View editor screen as requested.
A couple of other things to mention:
(1) When I click on the Scan button at the bottom of the editor screen, it says that the View is not being used anywhere. But in fact, the View is being used in a WP Views widget within a Dynamik Gen homepage widget called EZ Home Middle #1. So that in itself is odd.
(2) I currently have five posts listed for display (by ID) in the slider, but I've tested it with fewer posts, as well as changing the display order of the posts. It doesn't make a difference: only the first one is displayed, and then the space goes blank.
(3) I don't know whether this is related, but another odd problem is that the "testimonial" for Post 987 (Littman), which is currently the first one displayed in the slider, actually does not display on the individual portfolio project page, i.e., the actual post, that it's being pulled from. The other four testimonials do display on their respective project pages. I'd like to resolve this too if possible.
If necessary, I'd be willing to provide backend WP Admin access to get this resolved.
Thanks.
Brian
Unfortunately I wasn't really able to test whether it was a theme conflict because I'm using Dynamik Gen, and the slider is displayed in a widget area that is specific to that theme.
Okay test the View independently of the widget area instead. Place the View in a custom Page using the Fields and Views button. Save that Page as a Draft, and then deactivate other plugins and deactivate Dynamik Gen. Preview the Draft Page and see if the slider is displayed as expected here.
If the slider is not displayed as expected, please go to Toolset > Settings > Frontend Content and check "Enable Views debug mode", then "Full debug mode" and save those settings. Reload the site homepage, and you may see a notification that your popup blocker blocked a popup. Please disable the popup blocker temporarily and reload the homepage again. A popup window will appear with some debug information. Click the buttons to toggle each section open, and copy + paste the debug information here for me to review. Then you can go back to settings and disable debug mode.
I did the additional testing. The slider works fine on the draft page -- even when the Dynamik Gen child theme and all plugins are activated.
So it appears to be an issue with the WP Views widget, I guess. I'm pasting the debug information below.
Incidentally, I temporarily published the draft page, and even when the page was published, the content scan for the slider view indicated that it wasn't being used anywhere on the site.
Debug results:
Enable line breaks Enable syntax higlighter
Page info
Current page hidden link
Total memory used 5.1765MB
Render time 1.25
Total MySQL queries 56
Elements info
- Testimonial slider (Portfolio ordered by post date, descending, 1 item per page with automatic AJAX)
ID 916
Name Testimonial slider (Edit)
Kind of element View
Render time 0.05203
Memory used 0.0455MB
Summary Portfolio ordered by post date, descending, 1 item per page with automatic AJAX
Query args Hide
Basic query arguments
Array
(
[post_type] => Array
(
[0] => portfolio
)
[paged] => 1
[suppress_filters] =>
[ignore_sticky_posts] => 1
)
MySQL query Hide
SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE 1=1 AND wp_posts.ID IN (987,725,898,973,877) AND wp_posts.post_type = 'portfolio' AND ((wp_posts.post_status = 'publish' OR wp_posts.post_status = 'private')) ORDER BY wp_posts.post_date DESC LIMIT 0, 1
Items found 1
Query results Hide
WP_Query Object
(
[query] => Array
(
[post_type] => Array
(
[0] => portfolio
)
[paged] => 1
[suppress_filters] =>
[ignore_sticky_posts] => 1
[posts_per_page] => 1
[wpv_original_limit] => -1
[wpv_original_offset] => 0
[wpv_original_posts_per_page] => 1
[post_status] => Array
(
[0] => publish
[1] => private
)
[post__in] => Array
(
[0] => 987
[1] => 725
[2] => 898
[3] => 973
[4] => 877
)
[orderby] => date
[order] => DESC
)
[query_vars] => Array
(
[post_type] => Array
(
[0] => portfolio
)
[paged] => 1
[suppress_filters] =>
[ignore_sticky_posts] => 1
[posts_per_page] => 1
[wpv_original_limit] => -1
[wpv_original_offset] => 0
[wpv_original_posts_per_page] => 1
[post_status] => Array
(
[0] => publish
[1] => private
)
[post__in] => Array
(
[0] => 987
[1] => 725
[2] => 898
[3] => 973
[4] => 877
)
[orderby] => date
[order] => DESC
[error] =>
[m] =>
[p] => 0
[post_parent] =>
[subpost] =>
[subpost_id] =>
[attachment] =>
[attachment_id] => 0
[name] =>
[static] =>
[pagename] =>
[page_id] => 0
[second] =>
[minute] =>
[hour] =>
[day] => 0
[monthnum] => 0
[year] => 0
[w] => 0
[category_name] =>
[tag] =>
[cat] =>
[tag_id] =>
[author] =>
[author_name] =>
[feed] =>
[tb] =>
[meta_key] =>
[meta_value] =>
[preview] =>
[s] =>
[sentence] =>
[title] =>
[fields] =>
[menu_order] =>
[embed] =>
[category__in] => Array
(
)
[category__not_in] => Array
(
)
[category__and] => Array
(
)
[post__not_in] => Array
(
)
[post_name__in] => Array
(
)
[tag__in] => Array
(
)
[tag__not_in] => Array
(
)
[tag__and] => Array
(
)
[tag_slug__in] => Array
(
)
[tag_slug__and] => Array
(
)
[post_parent__in] => Array
(
)
[post_parent__not_in] => Array
(
)
[author__in] => Array
(
)
[author__not_in] => Array
(
)
[cache_results] => 1
[update_post_term_cache] => 1
[lazy_load_term_meta] => 1
[update_post_meta_cache] => 1
[nopaging] =>
[comments_per_page] => 50
[no_found_rows] =>
)
[tax_query] => WP_Tax_Query Object
(
[queries] => Array
(
)
[relation] => AND
[table_aliases:protected] => Array
(
)
[queried_terms] => Array
(
)
[primary_table] => wp_posts
[primary_id_column] => ID
)
[meta_query] => WP_Meta_Query Object
(
[queries] => Array
(
)
[relation] =>
[meta_table] =>
[meta_id_column] =>
[primary_table] =>
[primary_id_column] =>
[table_aliases:protected] => Array
(
)
[clauses:protected] => Array
(
)
[has_or_relation:protected] =>
)
[date_query] =>
[request] => SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE 1=1 AND wp_posts.ID IN (987,725,898,973,877) AND wp_posts.post_type = 'portfolio' AND ((wp_posts.post_status = 'publish' OR wp_posts.post_status = 'private')) ORDER BY wp_posts.post_date DESC LIMIT 0, 1
[posts] => Array
(
[0] => WP_Post Object
(
[ID] => 987
[post_author] => 1
[post_date] => 2015-10-16 17:06:08
[post_date_gmt] => 2015-10-16 21:06:08
[post_content] =>
[post_title] => The Firm of Allen J. Littman
[post_excerpt] =>
[post_status] => publish
[comment_status] => closed
[ping_status] => closed
[post_password] =>
[post_name] => the-firm-of-allen-j-littman
[to_ping] =>
[pinged] =>
[post_modified] => 2016-08-24 17:31:49
[post_modified_gmt] => 2016-08-24 21:31:49
[post_content_filtered] =>
[post_parent] => 0
[guid] => hidden link
[menu_order] => 0
[post_type] => portfolio
[post_mime_type] =>
[comment_count] => 0
[filter] => raw
)
)
[post_count] => 1
[current_post] => -1
[in_the_loop] =>
[post] => WP_Post Object
(
[ID] => 987
[post_author] => 1
[post_date] => 2015-10-16 17:06:08
[post_date_gmt] => 2015-10-16 21:06:08
[post_content] =>
[post_title] => The Firm of Allen J. Littman
[post_excerpt] =>
[post_status] => publish
[comment_status] => closed
[ping_status] => closed
[post_password] =>
[post_name] => the-firm-of-allen-j-littman
[to_ping] =>
[pinged] =>
[post_modified] => 2016-08-24 17:31:49
[post_modified_gmt] => 2016-08-24 21:31:49
[post_content_filtered] =>
[post_parent] => 0
[guid] => hidden link
[menu_order] => 0
[post_type] => portfolio
[post_mime_type] =>
[comment_count] => 0
[filter] => raw
)
[comment_count] => 0
[current_comment] => -1
[found_posts] => 5
[max_num_pages] => 5
[max_num_comment_pages] => 0
[is_single] =>
[is_preview] =>
[is_page] =>
[is_archive] =>
[is_date] =>
[is_year] =>
[is_month] =>
[is_day] =>
[is_time] =>
[is_author] =>
[is_category] =>
[is_tag] =>
[is_tax] =>
[is_search] =>
[is_feed] =>
[is_comment_feed] =>
[is_trackback] =>
[is_home] => 1
[is_404] =>
[is_embed] =>
[is_paged] =>
[is_admin] =>
[is_attachment] =>
[is_singular] =>
[is_robots] =>
[is_posts_page] =>
[is_post_type_archive] =>
[query_vars_hash:WP_Query:private] => 08b7774857b2a14dc6d66245bfe8b6b3
[query_vars_changed:WP_Query:private] =>
[thumbnails_cached] =>
[stopwords:WP_Query:private] =>
[compat_fields:WP_Query:private] => Array
(
[0] => query_vars_hash
[1] => query_vars_changed
)
[compat_methods:WP_Query:private] => Array
(
[0] => init_query_flags
[1] => parse_tax_query
)
)
Filters
Filter arguments before the query using wpv_filter_query Hide
wpv_filter_query
Array
(
[post_type] => Array
(
[0] => portfolio
)
[paged] => 1
[suppress_filters] =>
[ignore_sticky_posts] => 1
[posts_per_page] => 1
[wpv_original_limit] => -1
[wpv_original_offset] => 0
[wpv_original_posts_per_page] => 1
[post_status] => Array
(
[0] => publish
[1] => private
)
[post__in] => Array
(
[0] => 987
[1] => 725
[2] => 898
[3] => 973
[4] => 877
)
[orderby] => date
[order] => DESC
)
Filter the returned query using wpv_filter_query_post_process Hide
wpv_filter_query_post_process
WP_Query Object
(
[query] => Array
(
[post_type] => Array
(
[0] => portfolio
)
[paged] => 1
[suppress_filters] =>
[ignore_sticky_posts] => 1
[posts_per_page] => 1
[wpv_original_limit] => -1
[wpv_original_offset] => 0
[wpv_original_posts_per_page] => 1
[post_status] => Array
(
[0] => publish
[1] => private
)
[post__in] => Array
(
[0] => 987
[1] => 725
[2] => 898
[3] => 973
[4] => 877
)
[orderby] => date
[order] => DESC
)
[query_vars] => Array
(
[post_type] => Array
(
[0] => portfolio
)
[paged] => 1
[suppress_filters] =>
[ignore_sticky_posts] => 1
[posts_per_page] => 1
[wpv_original_limit] => -1
[wpv_original_offset] => 0
[wpv_original_posts_per_page] => 1
[post_status] => Array
(
[0] => publish
[1] => private
)
[post__in] => Array
(
[0] => 987
[1] => 725
[2] => 898
[3] => 973
[4] => 877
)
[orderby] => date
[order] => DESC
[error] =>
[m] =>
[p] => 0
[post_parent] =>
[subpost] =>
[subpost_id] =>
[attachment] =>
[attachment_id] => 0
[name] =>
[static] =>
[pagename] =>
[page_id] => 0
[second] =>
[minute] =>
[hour] =>
[day] => 0
[monthnum] => 0
[year] => 0
[w] => 0
[category_name] =>
[tag] =>
[cat] =>
[tag_id] =>
[author] =>
[author_name] =>
[feed] =>
[tb] =>
[meta_key] =>
[meta_value] =>
[preview] =>
[s] =>
[sentence] =>
[title] =>
[fields] =>
[menu_order] =>
[embed] =>
[category__in] => Array
(
)
[category__not_in] => Array
(
)
[category__and] => Array
(
)
[post__not_in] => Array
(
)
[post_name__in] => Array
(
)
[tag__in] => Array
(
)
[tag__not_in] => Array
(
)
[tag__and] => Array
(
)
[tag_slug__in] => Array
(
)
[tag_slug__and] => Array
(
)
[post_parent__in] => Array
(
)
[post_parent__not_in] => Array
(
)
[author__in] => Array
(
)
[author__not_in] => Array
(
)
[cache_results] => 1
[update_post_term_cache] => 1
[lazy_load_term_meta] => 1
[update_post_meta_cache] => 1
[nopaging] =>
[comments_per_page] => 50
[no_found_rows] =>
)
[tax_query] => WP_Tax_Query Object
(
[queries] => Array
(
)
[relation] => AND
[table_aliases:protected] => Array
(
)
[queried_terms] => Array
(
)
[primary_table] => wp_posts
[primary_id_column] => ID
)
[meta_query] => WP_Meta_Query Object
(
[queries] => Array
(
)
[relation] =>
[meta_table] =>
[meta_id_column] =>
[primary_table] =>
[primary_id_column] =>
[table_aliases:protected] => Array
(
)
[clauses:protected] => Array
(
)
[has_or_relation:protected] =>
)
[date_query] =>
[request] => SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts WHERE 1=1 AND wp_posts.ID IN (987,725,898,973,877) AND wp_posts.post_type = 'portfolio' AND ((wp_posts.post_status = 'publish' OR wp_posts.post_status = 'private')) ORDER BY wp_posts.post_date DESC LIMIT 0, 1
[posts] => Array
(
[0] => WP_Post Object
(
[ID] => 987
[post_author] => 1
[post_date] => 2015-10-16 17:06:08
[post_date_gmt] => 2015-10-16 21:06:08
[post_content] =>
[post_title] => The Firm of Allen J. Littman
[post_excerpt] =>
[post_status] => publish
[comment_status] => closed
[ping_status] => closed
[post_password] =>
[post_name] => the-firm-of-allen-j-littman
[to_ping] =>
[pinged] =>
[post_modified] => 2016-08-24 17:31:49
[post_modified_gmt] => 2016-08-24 21:31:49
[post_content_filtered] =>
[post_parent] => 0
[guid] => hidden link
[menu_order] => 0
[post_type] => portfolio
[post_mime_type] =>
[comment_count] => 0
[filter] => raw
)
)
[post_count] => 1
[current_post] => -1
[in_the_loop] =>
[post] => WP_Post Object
(
[ID] => 987
[post_author] => 1
[post_date] => 2015-10-16 17:06:08
[post_date_gmt] => 2015-10-16 21:06:08
[post_content] =>
[post_title] => The Firm of Allen J. Littman
[post_excerpt] =>
[post_status] => publish
[comment_status] => closed
[ping_status] => closed
[post_password] =>
[post_name] => the-firm-of-allen-j-littman
[to_ping] =>
[pinged] =>
[post_modified] => 2016-08-24 17:31:49
[post_modified_gmt] => 2016-08-24 21:31:49
[post_content_filtered] =>
[post_parent] => 0
[guid] => hidden link
[menu_order] => 0
[post_type] => portfolio
[post_mime_type] =>
[comment_count] => 0
[filter] => raw
)
[comment_count] => 0
[current_comment] => -1
[found_posts] => 5
[max_num_pages] => 5
[max_num_comment_pages] => 0
[is_single] =>
[is_preview] =>
[is_page] =>
[is_archive] =>
[is_date] =>
[is_year] =>
[is_month] =>
[is_day] =>
[is_time] =>
[is_author] =>
[is_category] =>
[is_tag] =>
[is_tax] =>
[is_search] =>
[is_feed] =>
[is_comment_feed] =>
[is_trackback] =>
[is_home] => 1
[is_404] =>
[is_embed] =>
[is_paged] =>
[is_admin] =>
[is_attachment] =>
[is_singular] =>
[is_robots] =>
[is_posts_page] =>
[is_post_type_archive] =>
[query_vars_hash:WP_Query:private] => 08b7774857b2a14dc6d66245bfe8b6b3
[query_vars_changed:WP_Query:private] =>
[thumbnails_cached] =>
[stopwords:WP_Query:private] =>
[compat_fields:WP_Query:private] => Array
(
[0] => query_vars_hash
[1] => query_vars_changed
)
[compat_methods:WP_Query:private] => Array
(
[0] => init_query_flags
[1] => parse_tax_query
)
)
- View Loop
Title Title: The Firm of Allen J. Littman, ID: 987
Received array Hide
WP_Post Object
(
[ID] => 987
[post_author] => 1
[post_date] => 2015-10-16 17:06:08
[post_date_gmt] => 2015-10-16 21:06:08
[post_content] =>
[post_title] => The Firm of Allen J. Littman
[post_excerpt] =>
[post_status] => publish
[comment_status] => closed
[ping_status] => closed
[post_password] =>
[post_name] => the-firm-of-allen-j-littman
[to_ping] =>
[pinged] =>
[post_modified] => 2016-08-24 17:31:49
[post_modified_gmt] => 2016-08-24 21:31:49
[post_content_filtered] =>
[post_parent] => 0
[guid] => hidden link
[menu_order] => 0
[post_type] => portfolio
[post_mime_type] =>
[comment_count] => 0
[filter] => raw
)
Original content
[wpv-post-body view_template="Testimonial slider - slide"]
Shortcodes
wpv-post-body: Hide
Attributes: {"view_template":"Testimonial slider - slide"}
Info: Output shown in the Nested elements section
Nested elements
- Testimonial slider - slide
ID 917
Name Testimonial slider - slide (Edit)
Kind of element Content Template
Render time 0.00736
Memory used 0.0105MB
- Template results
Received array Show
Original content <p class="testimonial"><i class="fa fa-quote-left"> [types field="project-endorsement"][/types] <i class="fa fa-quote-right"></p><p class="author">— [types field="project-testimonial-author"][/types]</p>
Output (RAW) <p class="testimonial"><i class="fa fa-quote-left"> I can’t say enough about Brian at Antigravity Design in his design and implementation of my new website and stationery. He was a real pleasure to work with, helping me along step by step and listening carefully to me and my needs. He is very collaborative and patient and has a great eye for design and a very high level of technical expertise. 5 stars! <i class="fa fa-quote-right"></p><p class="author">— Allen Littman</p>
Output (RAW)
<p class="testimonial"><i class="fa fa-quote-left"> I can’t say enough about Brian at Antigravity Design in his design and implementation of my new website and stationery. He was a real pleasure to work with, helping me along step by step and listening carefully to me and my needs. He is very collaborative and patient and has a great eye for design and a very high level of technical expertise. 5 stars! <i class="fa fa-quote-right"></p><p class="author">— Allen Littman</p>
Okay thanks. At this point I think it's best for me to take a look at wp-admin to see if anything looks out of place. Flywheel does not support cloning software like Duplicator, so it's not possible for me to create a site clone and install it locally. I will discuss with you before making any changes to the live site. Please provide login credentials in the private reply fields.
Hi, I found a configuration issue in your View that is easy to fix. The "Don't include the current page in query results" checkbox should not be checked. Since the View is shown on the homepage post archive, but queries Portfolio posts, this option is not needed. Sometimes it causes unexpected problems like this. Please uncheck it and test again, then let me know if the problem is not fully resolved.
Christian,
That fixed the problem. Thank you so much! I really appreciate your prompt and diligent attention to the issue. Great support!
Best, Brian