Find the method which AJAX GET calls

If the url is something like this admin-ajax.php?example_ajax_request=1&data=1234 The add_action function in the code would be wp_ajax_nopriv_example_ajax_request So, try to grep the whole of your theme directory or plugin directory for the text. Example: grep -r ‘wp_ajax_nopriv_example_ajax_request’ * The second parameter of the add_action is the function name you’re looking for. See https://codex.wordpress.org/AJAX_in_Plugins#Ajax_on_the_Viewer-Facing_Side for example … Read more

Walker or wp_get_nav_menu_items VS jQuery

As you know, walker is server side method while jQuery is client side method. You need to choose what will be the best in any situation. If you don’t use a dedicated Walker for each menu, default WordPress Walker will run so why don’t use your own and adapt it via jQuery for the different … Read more

How to use jQuery plugin

If you don’t need js datepicker then no need to keep that anymore. Use your desired plugin. Make sure your theme based on bootstrap latest version.

jQuery Plugin Uncaught TypeError: jQuery(…).slider is not a function

You can try this code: add_action(“wp_enqueue_scripts”, “my_jquery_enqueue”, 11); function my_jquery_enqueue() { wp_deregister_script(‘jquery’); wp_register_script(‘jquery’, “//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js”, false, null); wp_enqueue_script(‘jquery’); wp_enqueue_script(‘bootstrap-slider’, ‘CDN Url’, array(‘jquery’), false, null); } What I am doing is deregistering the WP jQuery script. Then I’ll add a new jQuery script with the CDN. I will enqueue this script and then enqueue your bootstrap slider … Read more

I was wondering if it’s possible to implement card.js on WordPress

Seems like you have misplaced the card jquery library. You can include the js using wp_enqueue_script in WordPress. wp_enqueue_script( ‘jquery-card-script’, get_stylesheet_directory_uri() . ‘/js/card.js’, array( ‘jquery’ ), ‘1.0.0’, true ); Use the above code in your child theme functions.php and call your card from your main js file. new Card({ form: document.querySelector(‘form’), container: ‘.card-wrapper’ });

ACF + WP + Slick Slider Repeater Slide Group PHP not Displaying [closed]

Ok I figured it out! The setup is a little different but it works great. PHP / HTML Working Code <section class=”dev-slider-wrppr”> <div class=”dev-slider-row”> <div class=”slider-for”> <?php if( have_rows(‘slider_content’) ): ?> <?php while( have_rows(‘slider_content’) ): the_row(); ?> <?php $slideimage = get_sub_field(‘slider_image’); $slidetitle = get_sub_field(‘slider_title’); $slidebdycpy = get_sub_field(‘slider_body_copy’); ?> <div class=”slick-container”> <h4 class=”info-title text-center”><?php echo $slidetitle; … Read more