Title: Infinite Loop with Filtered Posts
Last modified: September 23, 2021

---

# Infinite Loop with Filtered Posts

 *  [katherinecc](https://wordpress.org/support/users/katherinecc/)
 * (@katherinecc)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/infinite-loop-with-filtered-posts/)
 * Hello,
 * I currently have a few carousels set up that I’ve coded to be filtered by specific
   tags on specific pages.
 * We are trying to use the infinite loop on these, however, when there are fewer
   posts that are filtered in then the number of columns selected in the plugin 
   the posts are repeated due to the selection of the infinite loop. Is there a 
   simple way to modify this plugin so that the loop setting will only kick in if
   the number of posts available is greater than the number of columns selected 
   in the plugin?

Viewing 1 replies (of 1 total)

 *  Plugin Author [thehowarde](https://wordpress.org/support/users/thehowarde/)
 * (@thehowarde)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/infinite-loop-with-filtered-posts/#post-14902571)
 * Hi [@katherinecc](https://wordpress.org/support/users/katherinecc/) – This seems
   like a lot of extra coding for a fringe use case (on a free plugin). I’m happy
   to accept a pull request on [github ](https://github.com/DuckDivers/owl-carousel-2)
   though for this suggestion.

Viewing 1 replies (of 1 total)

The topic ‘Infinite Loop with Filtered Posts’ is closed to new replies.

 * ![](https://ps.w.org/dd-post-carousel/assets/icon-128x128.png?rev=1929447)
 * [Custom Post Carousels with Owl](https://wordpress.org/plugins/dd-post-carousel/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dd-post-carousel/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dd-post-carousel/)
 * [Active Topics](https://wordpress.org/support/plugin/dd-post-carousel/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dd-post-carousel/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dd-post-carousel/reviews/)

## Tags

 * [loop](https://wordpress.org/support/topic-tag/loop/)

 * 1 reply
 * 2 participants
 * Last reply from: [thehowarde](https://wordpress.org/support/users/thehowarde/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/infinite-loop-with-filtered-posts/#post-14902571)
 * Status: not a support question