about load more ajax

I made some simple changes to your ajax function call and your ajax-js call.I hope this helps out ajax function call: $return = array(); $paged = $_POST[‘page’]; ob_start(); $args = array( ‘post_type’ => ‘book’, ‘posts_per_page’ => 3, ‘paged’ => $paged, ); $query = new WP_Query($args); while($query->have_posts() ): $query->the_post(); ?> <div class=”ajax”> <?php the_title(); ?> </div> … Read more

Edit user meta on front-end via AJAX

The wp_ajax_ is a prefix for your ajax action. your action is my_tag_count so its should be: add_action( ‘wp_ajax_my_tag_count’, ‘my_action’ ); You tried to access the wrong url in the ajax request because you set wp_localize_script( ‘custom’, ‘my_ajax_obj’, $ajax_url ); So the the request url should be my_ajax_obj its not an object its don’t have … Read more

How to submit form data in the same page in WordPress without reloading the page?

Your jQuery event is bound to elements with the class submit, but your submit button in the form doesn’t have that class. Either add that class to the submit button, or just target the form itself. Simply change $(“.button”).click(function() { to $(“#modalForm”).submit(function() { This will fire when the form is submitted, whether the user clicks … Read more