WordPress posts loop pagination – first page return 125 posts instead of 10 and the rest return 10
The sticky posts was the problem, Thanks to @Michael answer, I have excluded the sticky_posts from the query ‘ignore_sticky_posts’ => 1
The sticky posts was the problem, Thanks to @Michael answer, I have excluded the sticky_posts from the query ‘ignore_sticky_posts’ => 1
You might need a different var … set_query_var(‘posts_per_archive_page’, 1); posts_per_archive_page (int) – number of posts to show per page – on archive pages only. Over-rides posts_per_page and showposts on pages where is_archive() or is_search() would be true.
You can use “mid_size” to manage number of pages to display in paginate_links() function. Please check https://developer.wordpress.org/reference/functions/paginate_links/ for pagination options. Please see example below to use mid_size. $args = array( ‘mid_size’ => 3, ‘prev_next’ => true, ‘prev_text’ => ‘« Previous’, ‘next_text’ => ‘Next »’, ); $result = paginate_links($args);
This is not pagination, this is site structure. Similar structure can be achieved by the following: Pages and subpages (default functionality) Posts and categories or tags (default functionality) Hierarchical custom post types (using plugins or coding yourself) Custom post types and taxonomies (using plugins or coding yourself) Depending on a variety of causes, possibly, you’ll … Read more
If you are only showing one post of each category then in your query_posts() change the &paged=’.$paged to &offset=”.$paged
Use the comments number function or the more native get_comments_number function and combine it with the page comments option if ( get_option( page_comments ) == TRUE ) // do stuff
Maybe my (edu) plugin can help you understanding the ways that are possible to display pagination a little better. I updated it after reading your Q. You can now more easily style your links. Just add your buttons as background-images to the stylesheet.
I tried reverting back to the older version 3.0.x, but the problem remained the same. The answer can be found here: https://stackoverflow.com/questions/5843214/wordpress-loop-problem-multiple-loops-index-php-and-is-paged-causing-duplicate/5853514#5853514
thanks Jan – it was the ‘more fields’ plugin and the temp plugin fix is here; http://wordpress.org/support/topic/plugin-more-fields-media-library-only-shows-5-images-at-a-time-and-not-10?replies=10
I believe you’re using 2 custom functions one of them is emm_paginate_loop() you’re showing. But i saw that settings for that custom pagination is on function emm_paginate() and specifically “gap”: ‘gap’ – Default is 3 (int). The minimum number of pages before a gap is replaced with ellipses (…). But that only sets a minimum … Read more