Answer the question
In order to leave comments, you need to log in
How to arrange "Show more" for a static Wordpress page?
Please help with the organization of dynamic content loading for a static page in Wordpress. Tried various plugins. On the page of records work. And on a static page they don't want to. Pagination on static is and works. Static page code:
<article>
<?php $paged = (get_query_var('page')) ? get_query_var('page') : 1;
$temp = $wp_query; $wp_query= null;
$wp_query = new WP_Query(); $wp_query->query('showposts=3' . '&paged='.$paged);
while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
<h2><a href="<?php the_permalink(); ?>" title="Read more"><?php the_title(); ?></a></h2>
<?php the_excerpt(); ?>
<?php endwhile; ?>
<?php wp_pagenavi(); ?>
<?php wp_reset_postdata(); ?>
</article>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question