Well, this question is old but still has no answer!
Here is a small solution for future visitors.
Implementing load more button for comments without plugins is simple enough:
- Create a button if comment pages are 2 and more
- Create a jQuery script that will process the button click event and passes the current comment page number to
wp_ajax_
action hook - The last step – is
wp_ajax_
function that will process the AJAX request.
That’s all!
But if you need the ready code, please look at this tutorial https://rudrastyh.com/wordpress/load-more-comments.html
Related Posts:
- How to use WordPress (PHP) functions in AngularJS partials files?
- Click loads template via ajax
- How to speed up admin-ajax.php in wordpress
- How do I fetch all comments per post via WP REST API?
- dynamic dependent select dropdown
- Why i can’t get custom fields value or post ID via Ajax?
- Update $wpdb query with AJAX
- How to call a function from functions.php with ajax?
- WordPress load javascript file if something… (after the page is loaded)
- Find the method which AJAX GET calls
- Trouble figuring out how to get my button to submit comment
- How to hide .js files on wordpress website using php or wp plugins or any? [closed]
- I got this error POST https://localhost/meraboilerwp/[object%20Object] 404 (Not Found)
- Most efficient way to add javascript file to specific post and/or pages?
- Pass media upload value to input field
- Combine CSS and JS files from plugins
- How to call a PHP function from Javascript in WordPress
- JqueryUi Dialog giving Uncaught TypeError: this._addClass is not a function error
- WordPress Infinite Scroll without using any plugin
- WordPress Ajax always returns a 404 error
- How to preserve PHP modifications while upgrading WordPress?
- Is it possible to get a theme customizer setting from wp.customize using jquery?
- Calling a method from functions.php on a click of a button
- Change comments form title on a page by page basis
- Is there a reason why my wordpress PHP page isn’t loading into my PHP template
- Nice scroll to wordpress
- How do I create comment-reply-button using element not
- Understanding WordPress child theme custom JS loading
- How can I loop into two different DIVS without repeating the DIVs
- Using an Image Slider twice on the same page
- Uncaught TypeError: Cannot read property ‘firstChild’ of null after upgrading to WordPress 5.5
- Display notification only once
- Replace comment avatars and links at the same time
- Access/update database with jQuery
- How to display something in a div when the user clicks on a text in another div – no page refresh [closed]
- javaScript in section of WP API
- Using wp_localize_script to store the template url into a variable to use in JS
- Adding ads code between comments
- JQuery not working on WordPress Admin page [closed]
- Colorbox ajax loading of outside HTML content works perfect on localhost but not on server
- Adding tawk.to code just before body tag on functions.php file
- Slide in Panel WordPress Post
- Sending jsPDF documents to the server
- Ajax return code 400
- Show post in slider
- Using shipped version of jquery
- comments_number display outside specified span
- Trying to implement Ajax comments in WordPress, getting WP error
- How to test nonce with AJAX – Plugin development
- How do I display a user’s previous orders as a select box option on a product?
- How does this WordPress Plugin (Thrive Comments) apply their custom comment sort? [closed]
- js file in root loading without
- WooCommerce – Reset quantity input field when variation changes
- class click counter save number
- Trigger popup in a php if/else statement
- Slider loading issue
- jQuery not defined
- AJAX request status 200 but no actual “response”
- Conditional Header in wordpress
- Use menu link or onClick to set a variable
- Create another “Display Site Title and Tagline” checkbox, “Header Text Color” setting and control
- How to select the contents in the text view textrea in wp_editor?
- Populate dropdown with Child Pages based on Parent Page chosen
- remove wp floating submenu in wp dashboard
- How to complete two other input fields, completed the first
- Customize Theme comment template to Insert VoteUp and VoteDown buttons
- Pass Category Name, Description and Photo into variables to pass to jQuery
- JS file work only in index page
- Ajax request not sending to server and returning – wp-admin/admin-ajax.php 400
- Save Search System
- How can I get the values of my WordPress $wpdb query in Jquery?
- How to add a do_action on refreshing of WP customizer?
- Limit 1 global comment per minute
- Menu jumping when calling it via PHP
- Create Page To Count Comments For Each Post In WordPress Site
- Setting value of session with Ajax not working
- How to add a Custom Mailchimp AJAX Newsletter Subscribe Form
- Add / Update Custom Fields After Select Pictures in Media Window
- Post repeating with infinite scroll
- wp-comments-post.php file returns a blank page
- php function to display commenter username or login
- Fancybox type popup window that’s not an iframe
- How to disable controls in theme customizer?
- How do I Import / Upload Files with jQuery AJAX?
- Alter required message using comment form api
- Noscript not working as it should in wordpress site
- WordPress Ajax Call inserting data but success response false
- How to use js variable to php in wordpress functions.php
- Replace the image of a product with its video in the shop page
- Show Login Errors In WordPress/Elementor (Code “works”, but breaks site)
- hiddenQuestions.find is not a function
- get_post_meta returns on side but it doesn’t return on bottom of admin page
- Calling a function via a shortcode in javascript
- Retrive the value of the Active variation of the product and then link it to the “read more” to dynamically change
- JQuery UI Autocomplete showing as bullets
- How to add icon to WooCommerce add to cart button
- Can’t find elemnts on the DOM using Custom Control in Customizer API
- Why jquery arrray return 0 value
- Translating the “Everything” filter menu in Quicksand jquery file
- Custom PHP contact form issue