Title: Post Carousel bug + solution
Last modified: November 30, 2023

---

# Post Carousel bug + solution

 *  Resolved [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/post-carousel-bug-solution/)
 * There is a bug in the Post Carousel frontend.js.php file.
   Then there is no setting
   available for `move_slides` it will currently render nothing:
 *     ```wp-block-code
       moveSlides: <?php echo $settings->move_slides; ?>,
       ```
   
 * This will result in JS code that creates a fatal error “Unexpected ‘,'” since
   there is no value for modeSliders.:
 *     ```wp-block-code
       moveSlides:,onSlideBefore: etc.
       ```
   
 * Simple solution would be to cast it to an integer:
 *     ```wp-block-code
       moveSlides: <?php echo <span style="font-family: inherit; font-size: 0.8rem;">(int) $settings->move_slides; </span><strong style="font-family: inherit; font-size: 0.8rem;">?><span style="font-family: inherit; font-size: 0.8rem;">,</span>
       ```
   
 * This is most likely the case with more settings throughout the codebase.
   I couldn’t
   find a repo on GitHub for this so therefore I posted it here.
 * Cheers, Jory

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [Jamie](https://wordpress.org/support/users/codente/)
 * (@codente)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/post-carousel-bug-solution/#post-17246062)
 * Hi Jory,
 * Thanks for reporting this. I’ve filed a bug report for our development team and
   we’ll get this fixed up!
 *  Thread Starter [Jory Hogeveen](https://wordpress.org/support/users/keraweb/)
 * (@keraweb)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/post-carousel-bug-solution/#post-17246607)
 * Hi [@codente](https://wordpress.org/support/users/codente/)
 * Thanks for your quick reply.
 * Upon reading my own post again I noticed that the editor messed up my code a 
   bit.
   The fixed code should be:
 *     ```wp-block-code
       moveSlides: <?php echo (int) $settings->move_slides; ?>,
       ```
   
 * Cheers, Jory
 *  Plugin Contributor [Jamie](https://wordpress.org/support/users/codente/)
 * (@codente)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/post-carousel-bug-solution/#post-17246633)
 * No worries, we got it! And thanks again! It will be in the next BB release (2.7.4).
   I expect that within the next 2 weeks.
    -  This reply was modified 2 years, 6 months ago by [Jamie](https://wordpress.org/support/users/codente/).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Post Carousel bug + solution’ is closed to new replies.

 * ![](https://ps.w.org/beaver-builder-lite-version/assets/icon-256x256.png?rev=
   2361183)
 * [Beaver Builder Page Builder - Drag and Drop Website Builder](https://wordpress.org/plugins/beaver-builder-lite-version/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/beaver-builder-lite-version/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/beaver-builder-lite-version/)
 * [Active Topics](https://wordpress.org/support/plugin/beaver-builder-lite-version/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/beaver-builder-lite-version/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/beaver-builder-lite-version/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jamie](https://wordpress.org/support/users/codente/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/post-carousel-bug-solution/#post-17246633)
 * Status: resolved