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
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- 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?
- WordPress Plugin development Call to undefined function 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
- WordPress 3.5 Media Manager – add a button
- Handling jQuery Component Collision
- 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]
- 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?
- Create shortcode to echo javascript
- how to insert data in wordpress table usnig jquery ajax
- Jquery NoConflict Problem
- this jQuery function works perfect in static html page but not on wordpress
- AJAX fileupload – TypeError: not a function ajaxSubmit()
- “Conflict” with jQuery (or its plugins)?
- How does one include the JQuery UI plugin to wordpress and enque it correctly in a plugin form?
- Remove Yoast jQuery from front end
- Adding media upload button to User Profile page (following a tutorial)
- Is there a function to list all uploaded images? How can I add one?
- 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?
- How to prevent tabs from opening all at once
- jQuery code didn’t run on my plugin
- “switchEditors is not defined” with wp_editor() in jQuery UI tabs
- 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
- Problems with jQuery and is_admin()
- sliding/fading header plugin or approach suggestion
- Cannot read properties of undefined (reading ‘firstChild’) using photoswipe in product page
- Trigger jQuery to add events after AJAX-loading table in admin plugin
- wc_get_template_part doesnt display the content [duplicate]
- 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
- Cannot pass value variable to WP AJAX functions
- How to properly enqueue jQuery knob on WordPress without conflict?
- How to get a specific string from a url
- $wpdb not working wordpress plugin ajax call
- main navigation menu disappear after adding jquery source file
- Scroll to ID broken in main menu
- WordPress Thickbox Navigation Issue in Gallery
- Dynamic input fields in WordPress Plugin
- Overwrite js code using WP_Footer
- jquery plugin won’t fire when hamburger class element clicked
- Not displaying Woocommerce product page in lightbox
- Storing Array of values into wordpress options
- jQuery to show icon after .hide
- How to add styling and script to a custom widget plugin
- show-hide based on select option jquery wordpress
- Add HTML between feed items
- WordPress Feedback popup with date saved into table
- Not getting result using ajax on wordpress
- WordPress ajax not working in registration
- AJAX doesn’t pass variables to the php function in the plugin
- 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
- Element works, but not on wordpress site [duplicate]
- Shortcode return is printing a 1 afterward
- WordPress site keeps getting flagged as malware [closed]
- FacetWP: Plugin breaks button/modal functionality inside searchable content area
- TypeErrors with Yoast, jQuery in conflict?
- 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
- How to add an active state class to my info box