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

learn more… | top users | synonyms (1)

2
votes
1answer
1k views

Frontpage pagination issue with paginate_links() function

I'm using following snippet to output pagination: // get the current page if ( get_query_var('paged') ) { $current_page = get_query_var('paged'); } else if ( get_query_var('page') ) { ...
1
vote
1answer
144 views

Force category-slug.php to show page, even if it doesn't exist

I have a custom query in category-slug.php, which works fine unless the category doesn't have that number of pages itself. If the category only has 5 pages of posts, but the query I put in has 7, ...
4
votes
1answer
61 views

How can I see all of a post's comments on a single page as a reader, if pagination is enabled?

Is there an URL I can access, or an argument that can be passed, to disable pagination on the reader's side? The blog uses standard Wordpress comment pagination, i.e., ...
0
votes
1answer
2k views

How do I paginate a list of categories?

I recently added thumbnails for my categories, which has had the side effect of making the page they are listed on unbearably long. Because of that, I am hoping to paginate the list of categories. ...
0
votes
1answer
182 views

Wordpress pagination with wp_query_columns

I'm using the code from here to split my loop up in to columns. The columns work. I have 7 posts in the databese and showposts set to 6. I cannot get nextpage link to show? I have a $paged variable in ...
4
votes
1answer
340 views

Query causing load because of SQL_CALC_FOUND_ROWS post counting?

I found this query causing some load in the server, my hosting provdier asked me to look on it. SELECT SQL_CALC_FOUND_ROWS wp_posts I think this select no. rows found in wp_posts table.. but i ...
1
vote
2answers
2k views

Next and Previous buttons for navigation

I purchased the Nuke theme and added a custom page template using the code from page.php as a framework. The only code I added was a loop to pull 5 posts from category ID 12. I would like to add ...
0
votes
1answer
670 views

Can I paginate this get_attachment query?

Yeah, basically I want to be able to show 15 images attached to a certain page and have pagination when the page has more than 15 images. I'm not very well versed on this kind of query so I'm a bit ...
2
votes
2answers
1k views

Broken pagination

Well I'm here again with almost the same problem as I had in this post three weeks ago, but let me explain what has happened since then: I was originally using one loop to display the most recent ...
0
votes
1answer
655 views

Blog pagination WITHOUT using max_num_pages

WP 3.2.1 I'm in a bit of a bind. I have to create some pagination for the blog, but I believe I'm running into the bug described here, and I don't have authorization to fiddle with the server's ...
0
votes
1answer
884 views

Page with Multiple Loops Breaking Pagination

I made a customized index.php so that I have multiple loops on the same page so that the content can be displayed differently. I got this to work, however the pagination is broken. Despite several ...
0
votes
3answers
2k views

Making a Killer wp_link_pages

I am trying to achieve a similar look to the image below, a working example can be found here: http://www.menshealth.com/celebrity-fitness/mark-wahlberg-fighter-workout The needed code must do the ...
1
vote
1answer
1k views

How to add pagination to my code?

I just want to ask how can I add pagination here in this code: <?php if ( get_option('webly_display_media') == 'on' ){ ?> <div id="recent-projects"> ...
1
vote
2answers
629 views

Pagination on 2nd loop

OK, I am creating a business listing site that is using a custom taxonomy for the listing "type". I need to display two loops on the taxonomy archive page, one for "sponsored" listings and one for ...
2
votes
2answers
455 views

How WordPress converts URL to $query_string

My home.php shows a list of (N) posts and << Previous & Next >> links. When clicked, I want to fetch previous/next list of (N) posts using Ajax. This is: I do NOT want to load the entire ...
1
vote
1answer
404 views

Paginated HTML Sitemap

I've got to the point where I needed to break down my HTML Sitemap into several pages. It contained 2000+ links. The big layout was showing all post titles under category names on one page. I decided ...
0
votes
1answer
369 views

Pagination of Custom Post Types not Changing Posts

I have a custom post type, jobs, being displayed on an external page using WP_Query() - the query itself is working fine. However when I try to paginate the results, the older/newer links show up, ...
0
votes
1answer
1k views

pagination in a custom list created with get_pages function

I have a custom page that calls a function - say generatelist the generatelist functions call get_pages() and loops through the array using for each and building a list containing various data from ...
0
votes
1answer
227 views

Comment Pagination

I am hoping someone can help me with comments pagination. I have the pagination working and the links point to the next page etc, but when clicking the page just refreshes. Here is my code so far and ...
0
votes
2answers
653 views

Custom Post Type, Two categories, Two columns with Pagination

I searching a lot to found a way solves that and no luck at least. Sorry for my unpulish english, I do my best explaining my issue. I have a Custom Post Type called 'Events' this have two categories ...
0
votes
2answers
551 views

Getting content from a single *page* of a post

What function can I use to fetch content of a single page within a post? Let's say I want to split my post into 5 pages - how can I get content of, say, page 3? Can't seem to find this in Codex...
0
votes
1answer
434 views

paginate posts on admin page

I've created a plugin that calls a list of posts and grabs external API data. I am using get_posts to grab the list (because I need to feed the array of links into the API query) For whatever reason, ...
0
votes
2answers
1k views

Page not found yet the posts are listed?

OK, seriously. I have a really modified index.php. The result: after the second paginated page, the page returns Not found and 404, while the posts are shown already. Can anybody tell me, what it ...
0
votes
1answer
117 views

Broken pagination, need help figuring out why!

I just tried slapping together a poor-man's "featured post" section with this exact code out of my index.php: <div id="post-wrapper"> <?php if (is_home() && !is_paged()) : ?> ...
8
votes
6answers
5k views

Paged posts - how to use numbers and next/previous links?

I want wp_link_pages (mutli-page posts) to display the page numbers, the word "previous" before those numbers, and a "next" after those numbers. It would look like this: Prev 1, 2, 3, 4 Next I'm ...
2
votes
3answers
2k views

add spans and characters into paginate_links

I am using paginate_links on my custom page query. What I have already works sweet and this is the code I have so far... <?php global $wp_query; $big = 999999999; // need an unlikely ...
0
votes
1answer
368 views

How to use pagination?

I have the below code for a page, where I am pulling a photo, title and excerpt of the last 10 articles. The problem is, I don't know how to add pagination? I have installed WP-PageNavi aswell. ...
0
votes
1answer
430 views

paginate_links on custom query in admin - 'sufficient permissions' error

I have created a page in my admin with this custom query: $rows = $wpdb->get_results("SELECT * FROM ej_feedback ORDER BY createdtime ASC"); I have made it successfully paginate as required in ...
1
vote
0answers
346 views

Changing the pagination URL format [closed]

Currently when I use the next_posts_link and previous_posts_link functions I get a URL returned such as /posts/page/2. However, is it possible to make Wordpress work with a pagination URL format such ...
0
votes
1answer
853 views

pagination in author.php template returns 404 error

Hi to the community!!! I need some help with pagination in author.php template. I have pagination working in all my loops except in authors.php that i get a 404 error. In my settings/reading i have ...
0
votes
2answers
900 views

Problems with pagination for a custom post type

My pagination links are failing for a custom post type here http://mjw.view-wireframes.com/about-us/press/ the page reloads http://mjw.view-wireframes.com/about-us/press/page/2/ but this has no ...
0
votes
3answers
2k views

Category pagination not working

My category page navigation doesn't seem to be showing up at all, what am I missing in my coding? <?php get_header(); ?> <div class="inner-page"> <div ...
0
votes
2answers
959 views

Pagination on custom taxonomy

I'm having a tough time getting this to work. It's not the first time I run into problems with pagination, or I would say with WPs URL system. Basically I have this URL: ...
-1
votes
1answer
244 views

Custom Page Template and Category Exclusion

I have a blog (bernsteinbear.com) that uses the TwentyEleven theme. I'm trying to make a custom page template for the front page (a blog page) that gets all the posts except in the "Comic" category. I ...
0
votes
1answer
473 views

Using custom post type as front home page pagination not working

I've searched for days for a solution, scouring the interwebs, including, of course, stackoverflow. I'm using a custom post type as a static home page, but the pagination will not work. When I ...
0
votes
1answer
300 views

Can posts_nav_link show post titles?

I have an index.php page that is only displaying 1 post at a time with a query. (found this code online, but it does work) $page = (get_query_var('paged')) ? get_query_var('paged') : 1; // if we ...
0
votes
1answer
3k views

Permalinks and pagination are not working in WordPress with WP e-Commerce plugin

I am running WordPress 3.2.1. and WP e-Commerce 3.8.7.2. The problems I am having are: If the permalinks are set to default (example.com/?p=123) the e-Commerce plugin works ok except when I turn on ...
0
votes
1answer
107 views

Wordpress custom post type post and category links 404

I've recently created several custom post types in a wordpress site, with the code below, they are generating links in the correct form e.g. root/category/id/postname but each link to the full post, ...
0
votes
1answer
199 views

Add pagination to this following template

<div id="omc-main-left-column" class="omc-content"> <?php query_posts($query_string . '&pagename=&page_id='); ?> <?php query_posts('posts_per_page=3'); ?> ...
0
votes
2answers
1k views

Pagination for posts inside a specific category

I have a FAQ category and there are posts in that category I want to add pagination to that category only, not the other category in my wordpress. In short giving pagination to selected category for ...
0
votes
1answer
817 views

Comment submission & navigation redirects to default language

I'm using qTranslate for multi-language & wp-commentnavi for comment navigation. The style of my base permalinks are like so: site.com/ -> for default language site.com/en/ -> for ...
3
votes
2answers
4k views

Using paginate_links() to generate “1, 2, 3 … 10, 20, 30, 40… 55” paginations

I found this code : // Get total number of pages global $wp_query; $total = $wp_query->max_num_pages; // Only paginate if we have more than one page if ( $total > 1 ) { ...
0
votes
1answer
295 views

Custom Post Type, Pagination and 404s?

Head is getting melted with this pagination crap in WordPress! What am I doing wrong here… Test site http://www.clients.eirestudio.net/savvas/reviews/ Code <?php $paged = ...
4
votes
1answer
114 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 ...
1
vote
1answer
627 views

Is it possible to have pagination with an offset loop?

I am developing a blog page that requires 3 different post styles (Ie; one full page width with featured image and content, one full page width without featured image and the rest are half page width) ...
1
vote
1answer
211 views

Add pagination to listing plugin

I am trying to figure out on how to add pagination to your listing. Think you could help me out? I have added the read more button and manage to customise the listing styles. What's left is the ...
0
votes
1answer
762 views

WP_Query and pagination AGAIN?

I am using the WP_Query class to retrieve some posts according to variables set in url. All working well until we get to paging. The second page (though having posts - tested it by making paged => 2) ...
0
votes
2answers
977 views

Possible to paginate on single.php?

I know this sounds illogical and maybe it is, but the client's asked for it so I'm looking into a solution if possible. On a section of the site there's a link that leads to category-news.php, which ...
0
votes
1answer
222 views

The Pagination doesn't work

i have made a new WordPress Theme and ive done .. but i have one problem. I can't get the pagination work. I use the "wp-paginate" plugin and i have put the folloing code on my index.php <?php ...
0
votes
1answer
465 views

Custom post type pagination like “previous current/all next”

I have custom post type works with custom taxonomy work_category I want to build such pagination while viewing single.php previous 2/25 next [link to previous post in custom tax] [current post ...