My first guess is that the values aren’t the correct “type”. Meaning you might be passing string values when the script expects integers, so try converting the values to integers first.
jQuery(document).ready(function(){
var newsPerPage = parseInt( newsbox_parameters.newsPerPage );
var newsTickerInterval = parseInt( newsbox_parameters.newsTickerInterval );
jQuery(".news_list").bootstrapNews({
newsPerPage: newsPerPage,
autoplay: true,
pauseOnHover: true,
navigation: false,
direction: 'down',
newsTickerInterval: newsTickerInterval,
onToDo: function () {
//console.log(this);
}
});
});
Related Posts:
- force enqueue script to be first in order of prominence
- Handling jQuery Component Collision
- How to Add jQuery Infinite Scroll to My Custom Archive Page
- Editor not displaying dynamically after clicking on the button
- WordPress Enqueue Script Chaos (jQuery & Foundation.js)
- How to fetch serialized data from wordpress options
- Check javascript file Proper way in functions.php
- How to load plugin before the wordpress jquery?
- Why is my ajax call refreshing the page?
- Disable wordpress from including jQuery in the head section
- Admin-ajax.php is dying “0” without processing function
- How to create popup same as wordpress popup feature
- Plugin jQuery version VS Theme jQuery version: search for best practice
- Adding a jquery script to plugin contact form 7
- jQuery function didn’t work in my plugin
- How do I make sure a plugin loads a script after jQuery
- Add get_option to jquery
- Check if email address exists front end with AJAX in a plugin
- Confused about shortcode and settings values
- Running jquery script after shortcode [closed]
- JQuery not working in my plugin [closed]
- Notepad sticky plugin
- Loading jQuery UI in the head
- Form isn’t inserting data into database with ajax plugin
- custom changes removed after plugin update
- Error with Image Slide plug-in/ s3slider in WP
- Change upload folder for a CPT
- Need to change url paramenter of share product pintrest [closed]
- How to tie dark mode with prefers-color-scheme webkit? [closed]
- Uncaught TypeError: jQuery(…).flipster is not a function in wordpress
- jQuery for custom plugin not working with Divi theme
- Redux Framework: Page freezes on typing in Editor
- How can I inject options into an select tag inside the widget form?
- Display wordpress post’s in popup?
- Using color picker in plugin, does input attribute order matter?
- Loading a purchased jquery plugin in a wordpress theme
- Create shortcode to echo javascript
- how to insert data in wordpress table usnig jquery ajax
- Stop WordPress processing Javascript as text
- Jquery NoConflict Problem
- this jQuery function works perfect in static html page but not on wordpress
- How does one include the JQuery UI plugin to wordpress and enque it correctly in a plugin form?
- Is there a function to list all uploaded images? How can I add one?
- How to best create a jQuery Slider to display a native wordpress gallery?
- How to remove js ui library added by default by wordpress
- Creating a widget and missing jQuery
- Stop wordpress from requesting external jquery from googleapi
- Plugin not working & permalink erorr after upgrade to php 7x on Nginx
- Opening a JQuery modal window on click of a button with a JQuery plugin
- Api external with wordpress
- JQuery needs to be defined in , but Gravity Forms is defining it in the
- How do I make sure that my plugin only runs on article detail pages?
- Why do I get jQuery reference error / undefined when changing name of plugin file?
- Custom meta box with jQuery.sortable custom post type list
- How to prevent tabs from opening all at once
- Separate jQuery for Individual Comments?
- force jQuery to load in the head
- Ajax request sends url rather than data
- Error jQuery(domChunk).live is not a function
- jQuery slider widget similar to cnet.com
- Problems with jQuery and is_admin()
- sliding/fading header plugin or approach suggestion
- Trigger jQuery to add events after AJAX-loading table in admin plugin
- How do I reinit WordPress plugins dynamically using jS?
- login form should redirect to register page for in 1st login next time it should redirected to home page
- Get the link title attribute and send it google analytics as custom label via google tag manager using beehive pro for WordPress
- Mixed content error after adding SSL certificate
- main navigation menu disappear after adding jquery source file
- Hide button after form submit and save state to localstorage
- Scroll to ID broken in main menu
- myStickymenu hide on scroll up to certain Y values
- Dynamic input fields in WordPress Plugin
- How to solve Blocked a frame with origin from accessing a cross origin frame error in wordpress?
- Overwrite js code using WP_Footer
- jquery plugin won’t fire when hamburger class element clicked
- Storing Array of values into wordpress options
- jQuery to show icon after .hide
- How to add styling and script to a custom widget plugin
- Add HTML between feed items
- Not getting result using ajax on wordpress
- Theme Load Error
- WordPress ajax not working in registration
- AJAX doesn’t pass variables to the php function in the plugin
- WordPress plugin ajax post parameter
- how to call jQuery in admin as well as in homepage
- “The Events Calendar” Issues in WP 3.2
- How do I output user_registered time in my correct timezone?
- Ajax in Plugins: returns the whole page
- Shortcode return is printing a 1 afterward
- Load css classes after using ajax calls
- FacetWP: Plugin breaks button/modal functionality inside searchable content area
- TypeErrors with Yoast, jQuery in conflict?
- Integrating WordPress Content into a jQuery Slider
- Animate like Stack exchange frequently asked questions [closed]
- Count div with class (.length) only shows 0 [closed]
- Jquery post responses 500 error after some time and lastly an 503 error
- Ajax button “Load more” is not loading correct language version posts for logged out users
- WordPress GiveWP Plugin showing blank page in none default theme [closed]
- Woocommerce attatch files and custom input meta to cart items and then to order
- Ajax response from Media Selection does not update ALL information more than once