by gabrielperezs on WordPress.org
WordPress plugin to load more event with your own template.
For code contributions please go to https://github.com/33themes/ttt-loadmore
This is the base html:
Load more content
Then, you have to create an action with the same name of the data-tttloadmore-do
'post',
'post_status' => 'publish',
'order' => 'DESC',
'orderby' => 'date',
'paged' => $page,
'ignore_sticky_posts' => 1,
'category_name' => $args['category'],
);
$archiveposts_query = new WP_Query($archiveposts);
?>
have_posts()) : ?>
have_posts()) : $archiveposts_query->the_post(); ?>
}
add_action('ttt_loadmore_archiveposts','loadmore_archiveposts', 1, 2);
?>