You can get the (current) displaying posts number from offset number.
As it’s an ajax load more for wp post, it should has the offset numbers.
So, you can display the number like this
Javascript
var offset = 4;
return $.ajax({
url: ajaxurl,
type: "POST",
data: data,
success: function(returnData) {
// diplay offset number in .post-number div
$('div.post-number').html('This is the displaying post number="+ offset);
}
}), offset += 4;
HTML
<div class="post-number"></div>
You can add this under the loadmore div
I am not quite sure with Ajax Load More plugin.
If you just want to customize Ajax Load More plugin, you should ask the author of that plugin.
Related Posts:
- WordPress Ajax always returns a 404 error
- Click loads template via ajax
- Display notification only once
- 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]
- How to speed up admin-ajax.php in wordpress
- Colorbox ajax loading of outside HTML content works perfect on localhost but not on server
- Sending jsPDF documents to the server
- Ajax return code 400
- How to test nonce with AJAX – Plugin development
- class click counter save number
- AJAX request status 200 but no actual “response”
- Save Search System
- dynamic dependent select dropdown
- How to add a do_action on refreshing of WP customizer?
- Setting value of session with Ajax not working
- How to add a Custom Mailchimp AJAX Newsletter Subscribe Form
- Fancybox type popup window that’s not an iframe
- How do I Import / Upload Files with jQuery AJAX?
- WordPress Ajax Call inserting data but success response false
- Why i can’t get custom fields value or post ID via Ajax?
- Accessing an API with jQuery and AJAX
- Change Query Arguments (filter) with jQuery/Ajax or PHP?
- WordPress cascading dropdown selection search based on Parent Page & Child Page
- Tracking Visitor LatLng with WordPress using JS, PHP. How to put data which was extract using JS into DB
- Admin-ajax.php 404 error
- How to pass values from one function to the other using an array variable
- How to use wp_ajax_set_post_thumbnail?
- Update $wpdb query with AJAX
- AJAX to add to cart multiple products woocommerce
- Cannot successfully execute AJAX script to call function.php specific function. Using XAMPP localhost to test
- How to echo a PHP code into WooCommerce variation product?
- How can i get the same ajax result using WP REST API instead of admin-ajax?
- How to call a function from functions.php with ajax?
- Find the method which AJAX GET calls
- Why I’m Not Having Access to “$_POST” Data Outside My AJAX Callback?
- 500 (Internal Server Error) of external php file
- Dynamic Gallery
- Pass a PHP variable (loop-audio.php) to jQuery function (js/script.js)
- notify users when changed database
- SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
- How can I fetch loop of post titles via AJAX?
- Ajax Load More Posts in Category Page
- How to use WordPress (PHP) functions in AngularJS partials files?
- Audio Player not loading when the content is loaded through Ajax, MediaElement.js no applied
- Handling an Ajax form submit
- Using an Image Slider twice on the same page
- Custom WordPress+PHP+MYSQL+AJAX form, submit event not captured by Javascript, but does POST data to the DB
- JQuery not working on WordPress Admin page [closed]
- How to make custom total price reactive in navigation
- js file in root loading without
- Slider loading issue
- Ajax not working es expected (Returns 0)
- Creating a Multi-Level Associative Object Using AJAX
- Status 400 for AJAX POST Request with admin-ajax.php
- Why ajax doesn’t work on certain wordpress hooks and reload the page instead?
- AJAX pagination, update current page
- adjust section according to country?
- Ajax request returns ‘Array’. How to output the actual results?
- Add / Update Custom Fields After Select Pictures in Media Window
- Pull GetOption() variable into jQuery dynamically created html
- Error – ‘create_function is deprecated’ [closed]
- What are the advantages/disadvantages of using jQuery DOM manipulation as opposed to PHP DOM manipulation?
- Load Posts on Click via Ajax into a DIV
- Shortcode to pull posts
- Ajax search shows all results when user empties input?
- Get uploaded image and attach it to the new post
- Cannot access $wpdb, comes back NULL
- Admin-ajax php not working on new wordpress version
- Proper way to use WordPress function with AJAX PHP file
- Live search from database table
- Add a counter for mouseovers (custom field)
- Ajaxurl suddenly not defined
- Replacing WordPress Icons (menu,icons32, etc)?
- How to set variables with AJAX request to use in another function in WordPress
- Search Ajax Call – Use Form Data in Response
- Why does PHP called with Jquery AJAX not allow additional php code to be added?
- Database entry removed on browser refresh, Ajax PHP jQuery
- Add other class content with reference class value
- Ajax result show in console if is called outside function and not showing in array
- Can’t make lazy load for my site, help!
- wp_ajax_ 400 Bad Request
- update_post_meta Not Processing Array Data (Not Sure What I Am Missing)
- Input field duplicates on form submit by jQuery
- Custom theme admin-ajax.php 400 (Bad Request)
- Ajax wordpress function showing source code in alert and not value of input field?
- ACF + WP + Slick Slider Repeater Slide Group PHP not Displaying [closed]
- How to create a radio button to alt between settings in wp_options table
- Retrieve $_POST data to send to javascript without using localize script
- Add a downloaded JS file to WordPress
- How to call javascript function (jquery) in a shortcode?
- ajax form with multiple submit buttons and values
- How to run ajax in WordPress Post?
- Adding instant search to wordpress page
- Add php function into .js file (for tinyMCE button)
- Why this plugin is not working?
- Trying to fix multiple category drop down
- ajax form function error
- ajax problems on loading page [closed]
- How can I use AJAX in child theme template?