Questions tagged [pagination]

Breaking up content into smaller-sized pages to be viewed individually

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

Pagination for custom categories template

I'm a newbie with wordpress theme creation. I want to create a custom category.php file, I've implemented the loop and it will display the last 8 posts. I have some fake posts to test if all works ...
0
votes
0answers
11 views

How to paginate comments with wp_list_comments

How to paginate comments using 'per_page' and 'page' arguments, some how like 'paged' argument for WP_QUERY works. I want to list comments passing arguments somehow this way: $curr = max( 1, ...
0
votes
0answers
15 views

PAIN. Comments Pagination

Sorry for flame, but i wasted 7-12 hours trying to understand how comments pagination works.... Never thought that simple step will take that much with WordPress :'(((( i output comments in my theme ...
1
vote
1answer
33 views

How to get an array of years from all of the search results, and use it to filter by year the paginated loop?

I hope this is not too dumb: even though I'm learning at an acceptable rate, my WP knowledge still has some important gaps. What do I have: My search.php template gets its results from the normal ...
0
votes
1answer
27 views

Show number of pagination pages even when total under two

I have implemented pagination to my wp site and pagination works correctly, but when I limit to display lets say 10 posts and I have 9 then it won't show pagination. Is it possible to show in that ...
0
votes
1answer
36 views

Pagination Not Working for Custom Taxonomy with Custom Query - 404 Error

I am having trouble getting pagination working for custom taxonomy archive with the custom query. The pagination on the taxonomy archive ends up with a 404 page. I have to run a query multiple times ...
0
votes
0answers
21 views

Go back to the exact post page number

I use pagination in my index.php and I have many posts per page. Every post have a button to go back to home. The problem is that when I visit a post in a page 5 for example, the button always send me ...
1
vote
0answers
21 views

How to create pagination for custom taxonomy in Wordpress

my code it's this, and i can't create the pagination for that, its working good the pages 1, 2, 3 and etc.. but its just that the pagination links are not showing in the template. I created a template ...
0
votes
0answers
13 views

WordPress Pagination Issue, displaying first page only

I have searched and can't find a solution that is working. I have this exact code on another site and it works. Not sure why it's not working here. All it's doing is ever showing the first page of ...
1
vote
0answers
113 views

Blog post per page setting conflicting with custom WP_Query?

I am creating a theme, and have run into a problem with how a custom WP_Query seems to interact with the Blog pages show at most settings found under Settings -> Reading in the WordPress backend. I ...
0
votes
0answers
21 views

Next Previous link in Custom Post types only within same Taxonomy

I use a Genesis theme and Pods templates for custom post types. I have 4 CPTs for different types of Artwork. Within a given CPT I have a pods field to indicate whether the artwork is available or ...
0
votes
0answers
31 views

posts_per_page problem

I'm new here. So if I ask my question in wrong way, let me correct please. Anyway, here is my problem. I have a post category which has 22 sample posts. I created a shortcode with wp_query which has ...
0
votes
0answers
17 views

pretty urls for categories instead of query string along with pretty pagination

I am trying to add a pretty urls instead of query string like customers/reviews/xyz here reviews is a custom post type and xyz is category customers/reviews gives all reviews and customers/reviews/...
0
votes
0answers
13 views

Taxonomy pagination permalink structure not working

I have registered a custom taxonomy "bookgroup" for custom post "book". To get permalink like "www.example.com/book-group/fiction/" working, I have used code as below. $bookgroup_structure = '/book-...
0
votes
1answer
20 views

Problem paginating a subquery on a post

I have created a post template that looks for other posts with the same tags. I want to paginate this list of posts. The pagination links look correct but when I click on them the pagination is lost. ...
0
votes
0answers
37 views

how do i add prev/next button instead of number pagination?

I have a blog with multipage posts, I see the pagination is in numbers like 1 2 3 … is it possible to add the prev/next buttons to navigate instead of number pagination? Thanks.
1
vote
0answers
13 views

Archive page pagination links redirecting to home page instead of going next page

I am displaying 2 posts in archive page with pagination. But my next page pagination link is redirecting to the home page instead of going to next page with containing next 2 posts. The URL is ...
0
votes
1answer
79 views

Pagination not work on page but work on category

i am using kriesi Pagination, it is working perfectly fine category page but it when i do similar query on page then it is not working. any idea why ? function kriesi_pagination($pages = '', $range = ...
0
votes
2answers
33 views

Pagination for custom posts loop

I have made little shortcodes to insert data to my home screen. I loop over total number of posts and output pre-styled html. My question is, is it possible to also make pagination for that kind of ...
0
votes
1answer
20 views

Is there a way to by-pass the pagination function on one custom template?

I'm working on a site where the client wants only the linked titles of all posts in a particular category on one page. That is, the query does not pick up the smaller number of posts that is defined ...
0
votes
0answers
15 views

Wordpress pagination links with query args

I have set some arguments to the paginate_links function and managed to do pagination with query args instead of path, but on the first page it does not rewrite my arguments, it just keeps the current ...
0
votes
1answer
19 views

Pagination doesnt work in custom post type

Pagination template part includes common pagination function with style.The template part works for archive.php ( its for "single", you know default wp file ) but doesnt work for custom post type. ...
0
votes
0answers
19 views

How to implement pagination in category.php template

I'm creating the category template for a custom theme. With this code I'm able to get the last six posts of the news category, I need to add pagination links at the bottom of the page, How I can do ...
0
votes
1answer
28 views

Pagination doesnt show numbers

Edit: full code: <?php get_header(); ?> <main role="main"> <!-- section --> <!-- Home Design Inner Pages --> <div class="ulockd-inner-home" <?php if ( ...
0
votes
0answers
27 views

Multisite Posts Ajax Pagination?

I am using Multisite and have the below code which pulls in posts from 2 sites. How can I add Ajax "Load More" pagination to the below code? Ideally when a "Load more" button is clicked it displays ...
0
votes
0answers
32 views

Yoast's rel=“next” & rel=“prev” tag don't work on static homepage's paginated pages

Yoast support says "Our plugin utilizes the built-in WordPress core functions to recognize pagination. Some plugins and theme developers have modified or created their method of adding ...
0
votes
0answers
23 views

Custom Post Type Pagination getting 404 error

function viewevnts() { ob_start(); $query = ( get_query_var( 'query' ) ) ? get_query_var( 'query' ) : 1; $args = array( 'post_type' => 'events', 'category_name' => 'en-events'...
0
votes
0answers
19 views

Pagination on custom post type without plugin

What's the best way to display pagination on a custom post type archive page without a plugin? I tried paginate_links() didn't work. I'm using a custom query and here's the code: $args = [ '...
0
votes
1answer
29 views

Why my pagination gets 404?

I'm trying to understand why my pagination gets 404 error on each page starts from second. Right now in Reading settings I've set Blog pages show at most to 1. <?php $paged = (get_query_var('...
0
votes
0answers
11 views

Adding query argument after slash in URL

I am trying to add a parameter at the end of my custom post type page to do some pagination. I've added the following to the functions.php but wordpress still throws me to 404 page add_action('init', ...
0
votes
1answer
16 views

Can't Add Pagination

I can't add a pagination to divide my posts between pages and navigate between pages. Currently all 20 posts I have loads at once. I want to add a pagination to the bottom of my Page and view posts ...
0
votes
0answers
20 views

Two Pagination in One page with shortcode

I create a shortcode to show posts by category with attributes. I want to show 2 separate categories with a separate shortcode in one page but the pagination connected. If I change pagination in the ...
0
votes
1answer
26 views

Post Pagination Showing Same Posts Every Page at wordpress blog

at WordPress blog Post Pagination Showing Same Posts Every Page My loop <?php $args = array( 'numberposts' => 12, 'order'=> 'DESC', 'orderby' => 'date' ); $postslist = get_posts( $args );...
0
votes
0answers
11 views

How do i change pagination permalink structure?

Current permalink structure is like: /page/2/, /page/3/ And i want to make it like: /?_page=2, /?_page=3
0
votes
0answers
24 views

Change default pagination URL style

My default pagination style on category pages is /page/2/ but I require it to be /?_page=2/ Can I accomplish this with a rewrite? Cheers Janine
0
votes
0answers
154 views

How to reverse the pagination numbers of an archive?

I have archive pages that each contain titles and excerpts from 10 blog entries. Both entries and archive pages are in reverse chronological order: when a new blog entry is written its title and ...
1
vote
1answer
96 views

Unwanted Duplicate Posts Showing in Pagination Pages

For some reason, I have posts that keep repeating on certain pagination pages using the code below. It's completely random, so I have no idea how to fix the problem. Maybe it's something in the post ...
0
votes
0answers
35 views

Remove WP Core canonical for category pagination

It seems that WP is adding a canonical to the root of my pagination, and no indexing all other pages on Category pages. For example, /locations/residential/?_page=2 is no-index, and gives /locations/...
0
votes
0answers
24 views

Custom pagination permalink structure Product page

I'm using WooCommerce. And WC has an ugly link structure /product/category-name/product-name. I removed /product/ from the url. But now I'm facing an issue. On the product page reviews are shown, when ...
0
votes
0answers
18 views

How to get post from all custom post_type multisite to the main site with pagination ordered by date?

Currently this is my WordPress Multisite: Main site -Sub Site -Sub Site -Sub Site -Sub Site and this is the example code for getting all post from multisite : foreach( $blog_ids as $id ) { ...
1
vote
1answer
28 views

Pagination not working in custom page, only working in post page

global $wp_query; $result = $wp_query; $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $original_query = $wp_query; $wp_query = null; $args=array( 'post_type'=> 'post', '...
0
votes
1answer
140 views

get understrap pagination to work with custom query

I am using the excellent understrap Wordpress boiler plate theme. It has a pagination function that works if you put inside a standard loop like so: <?php if ( have_posts() ) : ?> <?php ...
0
votes
0answers
19 views

Remove pagination pages of Wordpress Blog from Google Search Index

I have tried adding rel="prev" and rel="next" to the pagination. But the pagination pages pages still appear on Google Search Index. I want to remove them but Yoast SEO doesn't have the functionality ...
2
votes
0answers
32 views

How to output different posts per page?

I want to display one blog article less than on the following pages. The following code works but the the paginaton on the first page displays 1, 2, 3, 4 and on the next pages i get the correct ...
0
votes
1answer
91 views

Pagination Not Working on `WP_Query` Archive Page

I have an archive page that pulls two different custom post types into an archive using WP_Query(). Because there is a home page to the site which shows 9 of the custom post type posts, I offset the ...
1
vote
0answers
28 views

Get the number of posts shown in the current page

I am currently trying to implement a load more function described in this stackoverflow post, and in order to do so it is necessary to know how many post have been loaded already. Thus, I am trying to ...
0
votes
1answer
37 views

how can I do numeric pagination?

How can I do numeric pagination? <?php $args4 = array('post_type' => 'post', 'showposts' => 99, 'cat' => 23); $loop4 = new WP_Query($args4); while ($loop4->...
0
votes
0answers
15 views

Numeric Pagination on custom post page [duplicate]

I have a custom post page like this: <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array("post_type" => "post", "post_type" => "viaggi", "orderby" => "...
0
votes
0answers
9 views

Updated WordPress and Pagination on page stopped working properly

The PageNavi plug-in is only showing squares. The links in the squares work and bring me to next page. But why can’t I see numbers? I’ve tried multiple different plugins and none work.
-1
votes
1answer
30 views

Pagination in category.php not functioning

Original Url: https://www.something.com/category/ftm-atf/ When I add pagination in, the following url is generated which results in a 404: Paginated Url: https://www.something.com/category/ftm-atf/...

1
2 3 4 5
34