tokmak / wp-load-more-ajax Goto Github PK
View Code? Open in Web Editor NEWWordpress AJAX Load More tutorial
Wordpress AJAX Load More tutorial
Hello, how to integrate it with masonry append method?
Thanks :)
Hi there,
It's working perfectly but I have a question in my mind that is about posts_per_page : headJS.posts_per_page
.
I can not understand about that how It's working?
headJS Where is it coming from? as well as posts_per_page and ajaxurl.
Thanks!!
Does not get the offset after click on Load more button. Can you replace live() with on() ?
"The live() method was deprecated in jQuery version 1.7, and removed in version 1.9. Use the on() method instead."
Having some difficulty understanding what the loop would look like:
Just a basic example, but it's not firing for me.
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<?php
if ( have_posts() ) :
if ( is_home() && ! is_front_page() ) : ?>
<header>
<h1 class="page-title screen-reader-text"><?php single_post_title(); ?></h1>
</header>
<?php
endif;
echo '<div id="posts_list">';
/* Start the Loop */
while ( have_posts() ) : the_post();
echo '<article class="single-article"><h3>'.the_title().'</h3></div>';
endwhile;
// nav
echo '</div>';
else :
get_template_part( 'template-parts/content', 'none' );
endif; ?>
<a class="load_more" data-nonce="<?php echo wp_create_nonce('load_posts') ?>" href="javascript:;">Load more</a>
</main><!-- #main -->
</div><!-- #primary -->
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.