Easy Post Pagination doesn't work #145
Unanswered
Quin452
asked this question in
Technical Help
Replies: 1 comment
-
Please add the following code to the PHP & HTML tab of a Code Block just above the Easy Posts element on your home page: <?php
if ( get_query_var('paged') ) { $paged = get_query_var('paged'); }
elseif ( get_query_var('page') ) { $paged = get_query_var('page'); }
else { $paged = 1; }
query_posts('posts_per_page=10&paged=' . $paged);
?> You will need to update the number of posts per page on the last line if you're using a different number of posts per page. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I went to try the Easy Post component, and although the presets looks great! (shame you have to change the query each time you select a new preset), the pagination doesn't work, at least for CSS Grid Newspaper on the Homepage.
So the blog posts are on the index, and when you click on 2, the URL is simply updated with /page/2. Everything is fully up to date.
I've come across this problem before developing my own plugins, however, I wanted to check if there was a fix first rather than spend time sorting it out myself.
Beta Was this translation helpful? Give feedback.
All reactions