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

learn more… | top users | synonyms (1)

1
vote
1answer
419 views

Pagination in pages (not posts) with the twentythirteen theme?

I wrote a very long page with a lot of content and would like to add a pagination to make it more readable. I added in the texteditor several <!–-nextpage–-> but it doesn't create any ...
1
vote
1answer
229 views

Genesis multiple category custom loop 404s after first page

Ok so, I have a page which shows a feed of posts in the "news" category (url is: mydomain.com/category/news ), but the client wants it to also show posts in the "press-releases" category. So in the ...
1
vote
1answer
1k views

404 - Category pagination for custom post type

--Edit I've managed to narrow it down that the paged variable is not working properly here, (get_query_var('paged')) ? get_query_var('paged') : 1; is always returning 0 although maybe it is due to ...
1
vote
1answer
57 views

Custom Admin Pagination links

I am talking about the wordpress admin area where all the posts reside. I would like to ask if there is a way to show not only the first and the last pagination links but also the links in the ...
1
vote
1answer
556 views

Too many posts cause slow load when paginating

I have about 10k posts and I made a page that lists all posts but it is paginated every 54posts. It gives 131 queries in 6.730 seconds which is pretty slow to load. Is there a way to make it load ...
1
vote
1answer
365 views

Limiting number of visible links displayed with wp_link_pages

I need to extend the wp_link_page function to only show a max of 5 links at a time. What is the best approach to limit the number of links? In the end i'd like it to look like this: Previous 1 2 3 4 ...
1
vote
1answer
2k views

Search page pagination does not work

I am working on a custom theme. My issue is that when I use the search form it will show the search results as it is suppose to but when I use the pagination on the page it just takes me back to my ...
0
votes
1answer
25 views

How to limit page pagination… again

I'm digging out on old question as no solution came out. How to limit page pagination I'm looking for a way to limit pages on homepage and categories (archive.php). I have around 200k posts spread ...
0
votes
1answer
43 views

Pagination in html table is not working

I have a custom page template and I found a a PHP snippet that create a pagination in html table. But the code is not working properly. UPDATE: I change the code. But still the code is not working ...
0
votes
1answer
18 views

Paginate Links function: Page 1 doesn't work

I got this: $pagination_args = array( 'base' => '%_%', 'format' => '?listpostspage=%#%', 'total' => $the_query->max_num_pages, 'current' ...
0
votes
1answer
24 views

Apply filters when loading post via ajax

Have been trying to solve this for couple of hours already. Here's the case: I'm making a plugin that separates the posts into pages using the <!--nextpage--> tag. It works fine but I want to ...
0
votes
1answer
23 views

Pagination in WP_Query?

I am using a WP_Query to display posts from within a category and a custom term selected ("fitness visibility" inside category "articles") My code: <?php $catquery = new WP_Query( ...
0
votes
1answer
41 views

Pagination For Page Post Type

I try to use the Eric Meyer's pagination codes to make it working for page post type, but unable to figure out how to make it working. It's always show the first page. Here is the codes: <?php /* ...
0
votes
1answer
48 views

WooCommerce custom loop pagination on front page

I'm having custom page template that I use as front page of my theme. In that page i have section which lists woocommerce products using custom loop. I want to insert next posts pagination to that ...
0
votes
1answer
246 views

WooCommerce - Customer Order History Pagination

I'm trying to implement pagination into WC's customer order history that can be seen on the "My Account" page using woo_pagination(). https://docs.woothemes.com/document/woo_pagination/ The template ...
0
votes
1answer
130 views

the_posts_navigation is not working

Unfortunately, the_posts_navigation function is not working for me. When I click on 'Older Posts' it's showing '404 page I don't know why my code is not working. Here is the code - <div ...
0
votes
1answer
50 views

Default pagination in Home/Front page

I am using my home page to show all my posts. Therefore I use WP_Query. When I click on the pagination, the url changes but not the page content. This is my code, <?php $paged = ...
0
votes
1answer
110 views

The pagination on index.php doesn't work on a first page

I have index.php with a pagination. The permalink settings is plain permalinks. I have a correct pagination view when I open a page '/?paged=2' but if I open just index.php I have all posts without ...
0
votes
1answer
55 views

offset and max_num_pages in pagination gallery

I rewrote the code galleries and stopped at the pagination. How can I get the maximum number of pages? at the moment I can not define it, and put a test for the number 5. (Here "for ($ i = 1; $ i ...
0
votes
1answer
24 views

Search pagination link redirecting to a link that doesn't work with pagination

I have my search set up with a page called 'search' and a template called 'searchpage.php'. When I visit 'domain.com/search?s=term' the URL changes to 'domain.com/search/?s=term' To solve this and ...
0
votes
1answer
32 views

Use cookies in pagination

I am having a problem with cookies. I am using page breakers for long content post. I initialize a cookie with value 1 once you are reading the post. For each page breaker or let say page (from ...
0
votes
1answer
36 views

Custom pagination (Title, date and teaser)

I'm working on implementing a custom pagination for a website. Unlike default Wordpress pagination with "Older" and "Newer" links, this one requires to show the title, the date and the teaser of the ...
0
votes
1answer
33 views

Pagination adds product to cart Woo-Commerce

In my WordPress Woo-Commerce theme when a product is added to cart from shop page its added into the cart with a url e.g /shop/page/3/?add-to-cart=149 and when I switch to another page using ...
0
votes
1answer
26 views

Removin /page/2 from pagination

I would like to remove /page from category pagination or translate is so it looks like this: http://www.example.com/category/catname/2 or http://www.example.com/category/catname/customword/2 ...
0
votes
1answer
14 views

Combining content breaks category pagination

I'm trying to combine two types of content in a category archive, essentially injecting a second stream of content into the archive, but I can't get pagination to work. Say I have 15 posts, and 10 of ...
0
votes
1answer
61 views

Get Non-Paginated Index of Post in Paginated Query

I want to number "product" post types according to their position in their archive. Currently, I have tried to do this by creating a counter variable $count and incrementing it in the loop in my ...
0
votes
1answer
82 views

How to show 1-5 of X Total Results

I know I'm doing something that's been done 1000's of times before in WordPress, but struggling to get the terms to find it on the Interwebs. I've got a custom category template page and have a while ...
0
votes
1answer
63 views

Admin is showing all posts on page 1

I have 900 media items on the site. For some reason the pagination has stopped working in a few sites and all the posts are being shown slowing down the site a lot. This happens on the Media library ...
0
votes
1answer
30 views

WordPress not showing pagination links

In my WordPress Index.html I am pulling out the 3 latest posts by using <?php query_posts('posts_per_page=3') ?> <?php while(have_posts()) : the_post(); ?> //rest of the post related ...
0
votes
1answer
118 views

why custom post archive gives always no more than 10 posts despite of paging settings?

I've got a strange problem. I'm programming a custom post archive page. I'm using wp conventions, so I've got a 'project' custom post type and an archive-project.php page, which is correctly showing ...
0
votes
1answer
57 views

404 Error on pagination with WP Query

I have a website that is built almost entirely on the page.php template using Advanced custom fields flexible content field to determine what gets displayed. As part of that flexible content I have a ...
0
votes
1answer
103 views

Custom Select Query pagination not working properly

I have Custom Select Query joining two tables and displaying events older than current date. Everything works fine until I try to paginate it. <?php global $wpdb; $date = ...
0
votes
1answer
101 views

Pagination of custom post type leads to 404 error

This seems to be common issue, and there exist a lot of posts about this issue but none of them works for me. I have a custom post type (portfolio) with a page pagination. $paged = ...
0
votes
1answer
61 views

Custom Query & Rewritten URL Pagination 404

I have a custom search results page that has the url "/mysearch/location/SUBMITTED DATA/" which works perfectly fine. However I'm now trying to get my pagination working on that page so the URL will ...
0
votes
1answer
43 views

Need help on wordpress pagination script

Could you please check what is wrong in pagination script. Actually I have set 4 post limit and there around 8 posts in my blog. When click on 2 pagination, it won't move to next page. Please check ...
0
votes
1answer
301 views

pagination in woocommerce order history page

Please help me to add pagination in my order history page. Pagination should work like WooCommerce products page. Here is my code: <?php $customer_orders = get_posts( apply_filters( ...
0
votes
1answer
27 views

Archive - Show Page Month Headers

Trying to output posts on an archive page with date titles. Ideally this can be a single query so I can paginate the archive. Currently I can call multiple queries for each date item but I don't think ...
0
votes
1answer
445 views

WordPress get pagination on wpdb get_results

How do I gee the numbered pagination of custom wpdb result? below code will show one latest post from each authors in the site. I want to show 20 posts per page with a numbered pagination. $postids ...
0
votes
1answer
224 views

WP-PageNavi not working on custom loop

I used WP-PageNavi on custom loop. It shown /page/2/ or /page/3/ on url, but I the result still on page 1. I took me a week and I still can't solve this problem. Here is my code <?php ...
0
votes
1answer
153 views

Changing post per page causing 404 for pagination. Need a redirect htaccess rule

i changed my wp theme and i changed the "post per page" wp setting on "reading"now because i want to display more posts on the archives pages. i m using pagination on the archives so a lot of pages ...
0
votes
1answer
124 views

Next Post links not working in custom post type shortcode

I'm trying to paginate some custom posts types, and the previous link works, but not the next link. I tried several ways but I'm not able to find the correct one... if anyone could help :) This is ...
0
votes
1answer
70 views

post_results filter confused by pagination in sidebar and main section

I have a post_results filter that I want to use to manipulate the results returned from a the query. Let's say that it's supposed to put stars around the first post on the first page, second post on ...
0
votes
1answer
79 views

Custom post type with Filter and Page Nav

A custom post type custom also have special custom fields people and location I am trying to get this in the listing archive page with a filter on people location year (which is the post date) to ...
0
votes
1answer
250 views

Archive pagination not working

I am trying to add pagination for my Archive. I want to show 12 posts per page and then show the 'next' / 'previous' buttons. When I manually change the value of the $paged variable, the 1 into a 2 ...
0
votes
1answer
133 views

How to fix blank pagination links?

I am working on a Wordpress blog that has what appears to be custom pagination for the posts. As you can see here the correct amount of links are being rendered at the bottom of the page, however ...
0
votes
1answer
47 views

Adding pagination to query for custom page

I've made a custom news page using a custom page template and this is my query for latest posts: if ( have_posts() ) : while ( have_posts() ) : the_post(); the_content(); ?> ...
0
votes
1answer
366 views

Pagination in custom post type page template

I made a query for my custom post type "websites". I'm trying to get the pagination working but I'm running in some errors. I think the whole code is ok, only the part just before the end while tags. ...
0
votes
1answer
83 views

Need help with get_posts pagination

I've been working on a wordpress site, and I'm trying to build a page where visitors can see all of the images that have been uploaded to the wordpress media gallery, regardless of whether or not said ...
0
votes
1answer
53 views

Paginations in Category Page Leads to Sample Pages

I'm having trouble with my WPMU site that I hope you guys can help me with. Anyway, here's the situation. For example, I'm on my site's category page. I clicked the next page, or any other page aside ...
0
votes
1answer
70 views

Plugin to show pagemap beneath certain page and next/previous page beneath certain page?

I'm publishing a course online. The course is written on pages and I need some kind of navigation for the course. For navigation I want: Previous/next page links A page index I figure that all ...