Questions tagged [pagination]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
965 views

Pagination: Last Page Missing

I've about 12 records and that means I should have 4 pages. My best attempt so far at getting pagination to work is this, and I'd really appreciate if someone could tell me where exactly am I going ...
1
vote
1answer
12 views

How to paginate information obtained from a query to a custom table?

I am building a small application which consults a registration group of a bd in wordpress, the code is as follows. function opt_menu_cactaceas() { global $wpdb; $tabla_aspirantes = $wpdb->...
4
votes
2answers
4k views

Display all posts from all categories with pagination

Alright, this might be a tricky one to explain but I'll do my best. At the front page I want to display all the posts from all the categories. However I want them to be divided. Take this for an ...
0
votes
2answers
515 views

How do I make pagination_links show as 01 02 03, instead of 1 2 3?

Based on: http://codex.wordpress.org/Function_Reference/paginate_links how to make these links show as 01, 02, 03... rather than the normal single digit? thanks so much
0
votes
0answers
11 views

How to add category pagination under single post?

I don't want to split the post, my purpose to add the category pagination under each post is simply click on 1,2,3,4,5.... pagination and go to the exact page of the same category. Let me explain ...
0
votes
0answers
12 views

How to run WooCommerce pagination from within functions.php

I am building a very elaborate pagination script, the only piece I am missing is having the ability to run the in-built pagination from within the functions.php file. While within the functions.php ...
0
votes
1answer
555 views

get_next_posts_link() stops displaying at page 4

Please start by taking a look at this quick video: http://www.screenr.com/8vSH The problem: get_next_posts_link() disappears on page 4. That is, the "go to older posts" link disappears once I am in &...
0
votes
0answers
13 views

Pagination Not Working With Custom Post Type Category

I can't get pagination to work with this custom post type category archive. The custom post type is called 'blog'. <h2 class="category-h2">Blogs Category: <?php single_cat_title(); ?></...
1
vote
2answers
535 views

Querying Custom Post Type, ordering by Custom Taxonomy Pagination Not Working

Maybe there's a better way to do this. Let me explain what I have right now: I have a custom post type (Products), and a custom taxonomy (Manufacturers). What I have outputting so far: Manufacturer ...
30
votes
2answers
9k views

Is it possible to paginate posts correctly that are random ordered?

I found this problem on Wordpress Support and the topic unfortunately is now closed. I have this same issue... (read below) We have created a site where members can recommend things like favourite ...
0
votes
0answers
7 views

How to redirect /blog/page/2 to blog/page2 in wordpress blog page

In the blog page i want to redirect the url /blog/page/2 to blog/page=2 or blog/page2 in wordpress.
0
votes
1answer
718 views

Pagination is not working on custom query inside a custom home page template

I know this is a duplicate question. But to comment on existing question, I dont have enough points. So here we go.... Pagination is not working on custom query inside a custom home page template. ...
0
votes
1answer
679 views

Posts loop with pagination on a single post page

Today, I need your help. On my pages I have a sidebar with : <div class="sidebarActu"> <ul> <?php $i = 1; while ( have_posts() )...
0
votes
0answers
12 views

Custom post types on page with filter and pagination

How to apply pagination to the filtered results when filter adds the string '?filtr=1' after the domain name ? The filter works the following way... On my website (http://arche.cypis.net.pl/) after ...
0
votes
0answers
26 views

Why next_posts(); function does not work inside header.php?

Why does next_posts(); function does not work inside header.php whereas it ^does work^ inside temlate-homepage.php ? My code below: <?php // Query ALL posts ordered by random $args = array( '...
1
vote
2answers
1k views

Disable Pagination on Pages

I have a strange request I thought would be simple. I need to break the Wordpress pagination. Specifically, I need to make the /page/2/, /page/3/, and so on, links disabled. I tried: RewriteRule ^...
4
votes
2answers
140 views

Multiple Paginations on one Page

I have a page template which aggregates multiple CPT's in different areas of the page and displays the first post from each CPT. I'd like to add a separate pagination for each of them. Is it possible ...
0
votes
1answer
608 views

Rewrite Rule & Regex - Extract 'cat-name' and 'page-number' from http://domain.com/custom-post-type/category/cat-name/page/page-number

I have an URL formatted so: http://domain.com/custom-post-type/category/cat-name/page/page-number I need to extract: cat-name and page-number So that in my functions.php, I can create the custom ...
0
votes
1answer
1k views

Creating a Back button on detail post page to go back to blog page with same query strings and page id

So, I would like to have a back button on the single post page that can be dynamic to the point to where it knows where it is in the query and bring me back to the blog page on the right page number ...
0
votes
1answer
815 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
3answers
8k views

Pagination not working on Custom Page Template

I searched a lot on this but I can't figure out why my code is not working. I published a page with slug "blog" that uses a custom built template "page-blog.php" that I build from editing the ...
4
votes
1answer
626 views

Implementing a general Table of Content across single paginated post pages

I am working on a blog and most of my posts are so long they require pagination. See one of my posts. This post has a lot of pages. The only problem is that I can't find a way to show a table of ...
1
vote
1answer
639 views

Sorting Custom Posts on Archive page with pagination

I've got custom taxonomy archive pages with a drop down list that allows users to re-order/sort the posts. It basically waits for the user to select from the drop down then uses array_merge( $wp_query-...
1
vote
0answers
27 views

How do i improve my custom pagination?

So this is my current pagination Currently i am working with total of 6 pages so it shows 1 2 3 .. 5 6 (in the image below) 5 and 6 being the second last and last But when i reach the number 5 it ...
0
votes
1answer
2k views

How to add pagination to custom page

I am using the loop in my custom page template as you can see in my code. Only 2 posts must be shown and for the rest I should be able to have pagination. <?php $paged = (get_query_var('paged')...
0
votes
0answers
18 views

Pagination unique to a widget

I am having troubles with pagination. It's widget. Every widget does have unique id . Say i have two widgets with pagination. If I cick page 2 of widget 2 then it will work but it will change the ...
0
votes
1answer
23 views

category/category_name pagination 404 error

<div class="row"> <?php $currCat = get_category(get_query_var('cat')); $cat_name = $currCat->name; $cat_id = get_cat_ID( $cat_name ); $paged = (get_query_var('paged')) ...
1
vote
1answer
557 views

WP Query with offset breaks wp_pagenavi or any pagination

I am working on a custom loop using WP_Query using the offset parameter. The problem is that as soon as I add the offset, it breaks the pagination, displaying the same links no matter the page number. ...
0
votes
1answer
45 views

Problem with pagination link (error 404)

I have a problem with wordpress patination. The limit of posts (custom type post "properties") per page is 9. When I pusblish 11 properties the pagination links works properly. 9 properties in the ...
0
votes
1answer
653 views

How to group posts by months and add pagination?

I want to group by posts by months. Like this: January 2014 Post name Post name December 2013 Post name November 2013 Post name Post name Post name Post name I need to have 10 months per page, ...
1
vote
2answers
801 views

Start post pagination at 0 instead of 1

Is it possible to start post pagination count at zero instead of 1? I want the URLs to be like this: ../page (Foreword) ../page/1 (Chapter 1) ../page/2 (Chapter 2) But by default the URL ...
0
votes
0answers
14 views

Wordpress/Yoast: How to solve the problem with pagination page?

before I switched to YOAST, I was using All in One SEO but I got some huge problems with it. There were incompatiblliys which made it impossible to further use this plugin. Anyways, I’m facing a ...
1
vote
1answer
697 views

404 when using pagination in a category

I always struggle with pagination in wordpress. I really wish that was a definitive guide to wordpress rewrite rules. I have a site setup this way: permalink custom structure: /%category%/%postname%...
2
votes
1answer
664 views

Display post links under month in paginated archive

I'd like to create an archive that lists posts under a month header. The months would just be plain text and the post titles, obviously, would link to the posts themselves! So: October 2013 Post ...
0
votes
1answer
2k views

Pagination doesn't work on static front page

Static front page pagination working fine on localhost. but when i uploaded the to server online its not working. i am using infinite scroll. the issue is only with static front page, when i don't use ...
0
votes
2answers
913 views

Show a page counter for pagination

I currently have simple pagination set up showing the text older and newer. If one of the text isn't needed it display an 'inactive' version of it so that the text doesn't disappear. <?php if( ...
0
votes
1answer
737 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
0answers
27 views

Pagination Stops

I noticed pagination stops working after page 10 of blog posts. When on page 10, and clicking the right arrow/next button button you are taken back to page 2 instead of page 11. I have read several ...
0
votes
3answers
466 views

Showing the correct number of posts_per_page when avoiding the use of post__not_in

WordPress VIP and other development guides I've seen recommend avoiding the use of post__not_in for performance reasons when using WordPress at scale. Their suggestion is to filter out the posts in ...
0
votes
0answers
6 views

404 error page after hiding product-category slug

after i used this code: add_filter('request', function( $vars ) { global $wpdb; if(isset($vars['error'])){ $lastVar = basename($_SERVER['REQUEST_URI']); $vars['attachment'] = $...
0
votes
1answer
29 views

Trying to get pagination working on WP_Query() post grid

So I've been developing my own theme as a learning experience, and I'm at a loss regarding how to get pagination working. I've tried several things before getting to this point and asking, I just seem ...
1
vote
3answers
6k views

Custom post type archive page pagination

I have set up an archive page for my custom post type reference, where I use a query to get all posts of type reference. This works, but when I try to paginate the result, it doesn't work. Right now, ...
0
votes
3answers
35 views

WP Query for all posts

I have page-property.php in the loop folder with this code. And I see only 8 posts (Custom Post type), but I want to see all of them with pagination, what's wrong? <?php $view = 'archive'; ...
0
votes
2answers
1k views

Always show Next and Previous button in wp_link_pages ?

How do we get wp_link_pages() to show the Next and Previous button when it is the start of the multi-page post as well at the end of a multipage. Currently it only shows Next if it is the first page, ...
0
votes
1answer
600 views

Pagination (on the static front page) shows always the same posts

I have a problem with pagination on my front page. I want to show all posts from a specific category and paginate them. Here is the code if ( is_front_page() ) { $paged = get_query_var( '...
0
votes
1answer
14 views

where is wordpress search pagination

Where is wordpress search pagination? I used this in my search page: <?php echo paginate_links(); ?> It returns pagination, but I want to add bootstrap pagination to this, but I can't find it....
0
votes
1answer
425 views

Pagination on custom post types

Pagination works in the front page but in custom post type page it doesn't appear. Post type: add_action('init', 'portfolio_register'); function portfolio_register() { $args = array( ...
0
votes
0answers
33 views

Pagination 301 redirecting page 1

I am using the paginate_links function in a custom theme to generate the pagination links which is working fine however the page 1 link which is /blog/page/1 gets a 301 redirect to /blog/. This is ...
0
votes
1answer
2k views

How to add Pagination to foreach loop to page

I create a page in wordpress series.php and here it the code where I block! <?php $categories=get_categories( array( 'parent' => $cat->cat_ID) ); ...
0
votes
0answers
25 views

Split post template in two pages

I need to split my single post template in two pages using pagination . It's very simple in post editor by <!--nextpage--> But i want to do it in single.php file So the page content in first ...

1 2 3 4 5 33