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

learn more… | top users | synonyms (1)

0
votes
1answer
38 views

Can't get pagination to work with this WP_Query loop

I know pagination isn't as straight forward with WP_Query as it is with other loop types but normally I don't have a problem with it. I'm editing a site for a client and this is their current loop; ...
1
vote
1answer
966 views

404 not found error on pagination

Normal post (not custom post type), I did everything I should do, but 404 not found error in pagination. Here is my code $category_id = get_query_var('cat'); //Using this to get category ID to meet ...
0
votes
1answer
55 views

How to devide post into more than one page using <!––nextpage––>?

I want to divide a post into multiple pages using <!--nextpage-->. Please guide me through this and also I want some customization in that. You can check here what type of pagination I want to ...
0
votes
1answer
179 views

2nd page displaying the exact same posts as my first page (minus the very first post)

Site Links: http://manofmany.com & http://manofmany.com/page/2/ I'm seeing my 2nd page displaying the exact same posts as my first page (minus the very first/latest post). All other pages 3,4,5 ...
1
vote
1answer
99 views

Transient pagination not working properly

So I wrote the following to create a transient: $wp_object_i_created = new WP_Query('cat=1'); set_transient('category_one_posts', $wp_object_i_created, 60*60*1); Ok so then I decided "Ya know lets ...
2
votes
2answers
264 views

Paginated Taxonomy Term Archive including one post per term

I have a custom query which gets all the custom taxonomies for the custom post type and displays the latest post in each. At the moment it pulls in all the taxonomies. Is there a way I can limit the ...
1
vote
1answer
748 views

Pass additional parameter in the URL

How do I pass additional parameter in the url for pagination to work my existing page link is http://localhost/site/wp-admin/admin.php?page=myPage How do I create the syntax / logic in PHP to add ...
0
votes
1answer
35 views

Adding pagination to custom Wordpress function

I am trying to add pagination to posts however i cannot figure out how to get it to work - it simply does not show the pagination as i need it to. It should display the first 15 posts on the first ...
0
votes
1answer
121 views

Reverse ordered pagination on home page

Use on the blog reverse pagination. The question arose. How to make a home page is not the first? Need to break the link Home = First page and make a connection Home = Last page. Home should be the ...
1
vote
1answer
313 views

Varying the number of posts per page from the first one

I want to have the index page to have a different number of posts than the rest of the pages (page 2, page 3 of the index page, as well as the archive pages). In my case I want to limit the number of ...
0
votes
2answers
266 views

Add Filter not working with get_posts

While tweaking the "Bryans Childpage Thumbnail Generator" plugin, I am applying filter (with pagination) to the get_posts for WP Pages (post_type=page), but its not filtering at all. Here is the code: ...
2
votes
1answer
113 views

Pagination problem

I have two custom rewrite rules: add_rewrite_rule('foo/bar/?', 'index.php?post_type=foo', 'top'); add_rewrite_rule('foo/bar/([a-z]+)/?', 'index.php?post_type=foo&bar=$matches[1]', 'top'); Which ...
1
vote
1answer
933 views

Pagination doesn't work

I created myfile.php with the following content: global $paged; if ( get_query_var( 'paged' ) ) { $paged = get_query_var( 'paged' ); } else if ( get_query_var( 'page' ) ) { $paged = ...
0
votes
0answers
170 views

Pagination in custom loop [duplicate]

I thought I know how to add pagination to a custom loop and I've seen these questions and tutorials: Pagination not working with custom loop ...
0
votes
1answer
151 views

Link to previous month's posts

On my homepage I am showing only the current month's posts. I'd like to include a link to the previous month's posts at the bottom of the page. Wordpress has get_month_link ...
0
votes
1answer
228 views

Pagination for previous page/next page (with more than one post/page)

I have a template that displays 3 blog posts per page. I want to use Wordpress pagination for previous/next, but the pagination won't display on my page. Here's the code I have now for ...
0
votes
1answer
67 views

Paged within a custom content type template [duplicate]

I'm having a huge problem a custom query within a custom post type template with regards to pagination. For some reason, the previous post, next post links are showing blank. If I do ...
0
votes
1answer
122 views

Storing query variable and then using wp_reset_query

I want to use a pagination function with a custom posts query (to get posts from a specific category). My pagination function gets the query from global $wp_query; So in the following code I have ...
0
votes
1answer
471 views

problem with pagination in custom permalinks

I have set custom permalinks: /%category%/%year%/%monthnum%/%day%/%postname%/ When I use the following url: http://revelutions.com/sandbox/one/2013/08/30/ works fine. However, when I click on the ...
0
votes
1answer
128 views

pagination custom post type on CP page

I know that there are a lot of topics on this question and I've read a lot of them and tried different things. But pagination is still not working. I think it has something to do with the permalink ...
0
votes
0answers
1k views

pagination broken - clicking next displays “page not found”

I'm a newb at Wordpress, but my HTML/CSS is ok. My site is: http://www.modernfuture.net/wordpress been working on it this for quite some time & I'm done with the headaches, need to get some ...
0
votes
1answer
53 views

How can i list all user registered on my website and have pagination [duplicate]

How can i list all user registered on my website. If i have 300 users, i want to list only 10 on a page and list next 10 on other page.. I want the user to have an image I want to list post added ...
0
votes
1answer
857 views

custom post type paging not working past page 3

I have a custom post type called services which has 23 custom posts, i also have a custom taxonomy for all the categories (5 categories). I am trying to create a list of all the custom posts of ...
0
votes
1answer
103 views

Pagination for user list

I am showing all the users by using the get_user() function. But I need to paginate the results. I tried a lot, but didn't succeed. Here is the code, which doesn't work as expected: $args = array( ...
0
votes
1answer
116 views

WordPress: Getting “Newer Posts” and “Older Posts” links on a Specialized Page Template

I am using a Specialized Page Template to display list of posts. I am using the following code for that: <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array( ...
0
votes
1answer
181 views

All blog posts are not showing up

This post may already exists but I just missed it in how I searched for it. Here goes. I have recently changed my blog back to the Genesis Framework. I am using the Nameless child theme. These are my ...
1
vote
0answers
225 views

Custom post and category template pagination problem

I have a category template which holds a query to custom post with a category. The strange thing is when the pagination loads it displays how many pages we have. But when I click on the second page of ...
-1
votes
1answer
40 views

Link to page in category

I want to link to an archive page in WordPress, so like: <a href="<?php page( 2 ); ?>">link</a> so if a for example a category page is shown, this link needs to go to the second ...
0
votes
1answer
98 views

Removing template part when not on homepage if / else

Thank you in advance for any help! What I am trying to do is remove a template part from my home page after the user clicks on the pagination links from the posts, right now my template part serves as ...
-1
votes
2answers
1k views

Achieving pagination with `query_posts`

I'm using query_posts to build a list of posts from a single category, and I'm trying to add pagination to this setup. Here's my code: <ul> <h1><?php the_title(); ?></h1> ...
0
votes
1answer
1k views

next_post_link() not working for single custom post type post

I can't for the life of me get this to work - this is the code in my single-osu_work.php file which is used for this post type, but I can't get the next and previous post links to appear - can you see ...
0
votes
2answers
737 views

max_num_pages says 4, yet I am only able to navigate to the third page

Current query: if ( get_query_var('paged') ) { $paged = get_query_var('paged'); } else if ( get_query_var('page') ) {$paged = get_query_var('page'); } else {$paged = 1; } $args_main = array( ...
1
vote
1answer
288 views

Fetching more posts in Wordpress via AJAX

What's the best way to fetch the next page in post archives and other lists like search results? This question has been asked many times already, but the answers not good enough for me. So far, I've ...
0
votes
1answer
409 views

Custom Homepage Pagination using WP_Query

I have a situation and all the searching I've done hasn't led me to a successful outcome. I have a static homepage template with a custom wp_query that looks like the following (which works on another ...
-2
votes
1answer
71 views

How to add wordpress pagination [closed]

i must use pagination. Where can i found good tutorial? $wpdb->get_results("SELECT * FROM wp_ogloszenia_kupione WHERE klient_id = $current_user->ID");
0
votes
1answer
145 views

Pull Random Attachments With Pagination

I want to make a archive page that pulls in all uploaded images to the site. I am using the current script. Its paginating somewhat but not showing all the images. Showing around 90 out of 140. ...
0
votes
0answers
144 views

Post Filter clearing on pagination $_post

I have a form, in which users can select what taxonomy they want the posts filtered by. It works fine except that it doesn't paginate. When I click on the next page of results, it clears the query. ...
0
votes
0answers
71 views

Loop Navigation Problem

currently I have a loop on my index page which is set to show upcoming posts in ascending order. This is an events listing page. However the pagination at the bottom of my page doesn't work, I am not ...
-2
votes
1answer
118 views

Pagination on custom post type not working

I'm having a hard time getting pagination to work with my custom post type query. The standard "previous_posts_link()" and "next_posts_link();" aren't working. And through a bit of testing, I've ...
0
votes
1answer
114 views

Prev and Next link for splitting single post into multiple pages [duplicate]

I have pagination on my site like this: Pages 1 2 3 4 … and so on. I am doing this by adding <--nextpage--> where i want to split my long pages into multiple pages. I want to add ...
-1
votes
1answer
189 views

Multisite pagination with get_posts

I'm looking for a way to paginate my get_posts : $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array( 'posts_per_page' => 5, ...
0
votes
0answers
60 views

How do I paginate posts page with $wpdb?

I am using this to get the posts: (...) if ( empty( $categories_defined) ) { $posts = get_posts($args); } else { global $wpdb; $posts = $wpdb->get_results( $wpdb->prepare( "SELECT * ...
0
votes
1answer
70 views

Archive template for custom post type only lists first 10

Here is my template for archive-people.com: It currently only shows the first 10 people. I'd like it to show everyone, not just the first 10 people. <?php get_header(); ?> <div id="content" ...
1
vote
1answer
323 views

WP_Query Pagination on multiple-loop page breaks WP or doesn't show up

The loop below is one of several on a Custom Page template, but it's the only loop that I'm trying to implement Pagination with. Once I have Pagination working for this one loop, I'll be implementing ...
0
votes
1answer
87 views

Why is a rewrite rule in wordpress prevent pagination?

I have a custom page that uses a rewrite rule. The "non-pagination" rewrite works fine: add_rewrite_rule( '^brand-list/([^/]*)/([^/]*)/?', ...
0
votes
1answer
407 views

Archive Page for Custom Post Type is not Working

I have registered a custom post type "tutorials" with the following snippet. <?php /* Template Name: Tutorial Archive */ get_header(); ?> <div id="content"> <div ...
0
votes
0answers
84 views

Can't get pagination to work

I'm trying to create pagination on a blog post page where one page displays 13 blog posts and then displays some links to go to another page. Now just to get it working, I'm using this code: <?php ...
1
vote
1answer
26 views

How do you turn on comments for only the last page of a paginated post?

I have a single post with page breaks, but I only want to show comments and the ability to comment on the last page. Is this possible with WordPress?
0
votes
1answer
190 views

Pagination issue in archive.php

I can´t get works fine the pagination in archives for wordpress when i want limite the posts by page , if i let pagination by default as 10 from backend i haven´t problems but if i use this no works ...
0
votes
1answer
411 views

Prev/Next Links Broken on Static Front Page Pagination

I've taken the example straight from the codex on this one, and my pagination is broken. Here's the codex page I copied/pasted the code from: ...