Filter post by tag

Iive found the next example to make filters on my site by tag: https://www.bobz.co/ajax-filter-posts-tag#comment-28112 But is working not like i spected… I’ve added on my functions.php: function ajax_filter_posts_scripts() { wp_register_script(‘afp_script’, get_template_directory_uri() . ‘/assets/js/olv_test.js’, false, null, false); wp_enqueue_script(‘afp_script’); wp_localize_script( ‘afp_script’, ‘afp_vars’, array( ‘afp_nonce’ => wp_create_nonce( ‘afp_nonce’ ), ‘afp_ajax_url’ => admin_url( ‘admin-ajax.php’ ), ) ); } add_action(‘wp_enqueue_scripts’,…

JQuery not loading

I am trying to load a custom script in my WP site, and when I inspect the page it says Uncaught ReferenceError: JQuery is not defined . I’ve loaded the scripts as so in the functions.php file: function custom_scripts() { wp_enqueue_script(‘custom_js’, get_stylesheet_directory_uri() . ‘/js/custom_js.js’, array(‘jquery’), ‘1.11.0’, false ); } add_action( ‘wp_enqueue_scripts’, ‘custom_scripts’, 10 ); The…