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

learn more… | top users | synonyms (1)

0
votes
1answer
2k views

How to get category/tag in URL for Pagination links?

I have a custom pagination function in functions.php. If I'm at the URL: http://mysite.com/tag/dogs, the Next link currently just contains /page/2. How can I make it so it will look like ...
4
votes
4answers
9k views

How to add CSS Class to previous_post_link or get previous/next post link URL

How can I add a CSS Class to the previous_post_link output or just get the URL and create the HTML markup myself
3
votes
1answer
672 views

Get next/previous cousin page

Hey Guys, I'm trying to build pagination links for the next/previous cousin page. For example, my page structure is like this: Top Level A a1 a2 B b1 b2 When I'm on a2, I want the 'Previous ...
0
votes
1answer
2k views

Pagenavi Plugin and Custom Post Type - Multipage results

I having trouble with the results, the url and the pagination shows correctly, but when I'm on page 2 or 3 etc... there only show the results from the first page. this is my code. <?php ...
1
vote
1answer
1k views

Pagination : How to remove /page/x/ after a 'POST' action on a form returning to page 1

I have the following query, what it does is get a list of "Books" (custom post type). This list is displayed on a page which also has a small form with a dropdown populated with the terms of "Editors" ...
0
votes
2answers
4k views

Why Pagination is not working on Category.php

There are two different category "Life Sciences" and "General Lab" and there are sub-categorical product on "Life Sciences". Now "General Lab" category want to fetch all the sub-category and products ...
5
votes
1answer
6k views

Custom Taxonomy not working with posts_per_page in new WP_query (pagination problem)

OK, so i'm messing with Custom Taxonomies for the second time and in both instances i've run into this problem where using the posts_per_page argument in either a query_posts or WP_query scenario.. ...
0
votes
1answer
616 views

Media library only show 2 items per page?

For some reason WordPress media manager is only showing 2 images per page? This is happening on 2 separate sites now and I can't get rid of it. Is there a way to manipulate items per page for the ...
0
votes
1answer
1k views

Wordpress loop problem: Multiple loops, index.php and is_paged causing duplicate posts on next page

Hey everyone. I'm not sure if what I'm experiencing is a result of a bug (due to the recent upgrade to 3.1.2) or poor coding. Ever since i upgraded to version 3.1.2 ive been experiencing a problem ...
0
votes
1answer
723 views

what code to add to search.php

what line of code can i add to my search page in order to display the results up to 3-5 pages per "search
0
votes
1answer
1k views

Custom Post Type pagination when CPT 'rewrite' rule and a page have the same slug

I would like to achive the following link structure on my site: /properties/ -> a properties page with properties CPT, page 1. /properties/page/2 -> a properties page with properties CPT, page 2. ...
4
votes
1answer
4k views

How To create ajaxed wp-pagenavi?

I'm using WordPress as a Facebook platform and have a page that shows posts from 2 different categories. Each category has it's own pagination using wp-pagenavi. In order to stay in Facebook I need ...
0
votes
1answer
95 views

Number of posts in the archive

How do I show 10 posts on the first page of the archive, and 20 on others (>1)? My custom post type name is "apartments". Cheers!
3
votes
1answer
475 views

Custom Post Type Archives by Date (stored as meta value) WP3.1

I would like to implement date-based archive functionality (similar to original WP Archives widget functionality) for custom post type (CPT). What makes it difficult is the fact that I need to group ...
2
votes
3answers
1k views

Automatically create pages in a post based on number of words

I need a method to automatically create pages (using <!--nextpage-->) in posts based on number of words. For example... A post containing 1200 words should be broken down into 6 pages with ...
0
votes
1answer
954 views

Stomping WP_Query in author archive to facilitate pagination with custom queries

I am using get_posts and get_comments to build several loops on the page, at which I am having some issues in pagination. I have the global posts per page option (Settings > Reading) set to 10, and ...
1
vote
2answers
984 views

Pagination gives extra page with no results

I'm trying to implement pagination on a category page. The pagination is working, but now for some reason the pagination plugin I'm using is noting one extra page of results, when that page is ...
1
vote
6answers
8k views

How to style current page number (wp_link_pages)?

When a post is split on more pages TwentyTen theme use the native function wp_link_pages to display a navigation page bar at the end of post. I am trying to style those elements for my theme, but ...
0
votes
1answer
1k views

Post Navigation Not Working In Blog Template - Redirecting to same page with correct URI

I have the following code: <?php /* Template Name: blog */ ?> <?php get_header(); ?> <div id="blog"> <div class="content"> <?php ...
0
votes
2answers
2k views

How to do admin CRUD & Pagination

I am wondering how might I create an admin page to do CRUD. I know how to add a basic/options page to the admin menu. But I want to go further, how might I manage data (CRUD) and for the index/listing ...
1
vote
1answer
2k views

Sorting archive pages with “pretty” URLs?

We want the users to re-order the posts on a page similar to pagination but I can't find anything anywhere! It would be great to create a link to a url similar to .../page/2/title/, title being the ...
0
votes
1answer
652 views

adding images to wordpress pagination?

I'm working with a blank theme and my nav.php looks like this <div class="navigation"> <div class="next-posts" style="float: left;"><?php next_posts_link('&laquo; Older Entries') ...
0
votes
1answer
2k views

Skip 5 latest post while paging?

In the index.php page, I need to skip 5 posts (the last 5 posts in the blog). I use the WP-Paginate plugin, but all pages show the same. I'm using offset=5, this is my code: <?php $paged = ...
0
votes
2answers
507 views

Querying posts only if the current page is not paged?

For example, I want to query posts in a page. But I don't want to show them when the user clicks the pagination links. Pretty much like what happens in Youtube. You only see the Top comments in the ...
0
votes
1answer
699 views

Paginated Archives or Loop by Month

I'm trying to figure out a way to do a loop / archive page with posts organized by month. So where each page displays post from 1 month. Then the previous and next links would be labeled February 2011 ...
1
vote
1answer
639 views

How to make multiple page out of one post

Suppose I write a long article and display products in one post but it is too long so I want to cut it and continue the next page in the same post? Can I do that in wordpress? I want to display many ...
1
vote
2answers
125 views

can't use the page_test method to check pagination

I've tried to follow the example for Testing for paginated Pages but i don't know why it isn't working. i put it in the single.php file for post detection. i don't know why the page_test is broken. ...
0
votes
1answer
5k views

Adding pagination to a custom template that uses custom post types?

I'm not very familiar with Wordpress' pagination so I'm not sure if this a stupid question. Layout: Code: <?php /** * Template Name: Pictures Page * @package WordPress * @subpackage ...
1
vote
3answers
2k views

Authors list Pagination?

WordPress has a built in function to display a list of all of your site’s authors. But there is no option to display their avatars, so all you really get is a text list that links to the author’s ...
1
vote
2answers
508 views

Blocking author paging for blog entries?

I've noticed on our WordPress blog that I get Google hits on two forms of blog entries: http://blog.stackoverflow.com/2011/01/twitter-question-feeds-for-stack-exchange/ and ...
2
votes
1answer
3k views

How do i paginate query_posts with numeric pagination?

I have post type called blog and i'm showing posts for the type using query_posts, eg. query_posts('post_type=blog'); I would like to add pagination for this post type in the following format. ...
0
votes
1answer
334 views

If paginated comments don't span to a second page, how do I hide the div wrapper?

I have a div wrapper around my comments pagination. I have the comments set to paginate in the Wordpress admin at 10 comments per page. I want to hide the div wrapper if there are less than 10 ...
1
vote
3answers
5k views

Custom page-links for paginated posts | wp_link_pages <!--nextpage--> quicktag

Does anyone know if it's possible to change wp_link_pages, so that the title of each nextpage quicktag is used rather than numbers? I can't seem to find anything on this. This is an example of how ...
0
votes
2answers
525 views

How can I paginate results from get_children

I followed this method of getting images from the media library. // get the first image attached to the current post function aldenta_get_post_image($size = 'thumbnail') { global $post; ...
0
votes
1answer
831 views

Wordpress: paginating array using a foreach

I currently grab an array of user data from a query. I then use a foreach to loop through them and apply styles and divs to output them to the page. This all works great but i would like to paginate ...
5
votes
3answers
4k views

Infinite scroll / lazy loading with NextGen Gallery

I'm working on a project for a friend that involves a massive page with 3,000+ photos. See: http://www.thepurplepixie.com/projects/purple-pixies-people-project/ Currently, I have pagination set to 50 ...
0
votes
1answer
1k views

Custom Permalinks Break Search Pagination

So I'm having a weird issue that I've never seen. I have a search.php set up like this: $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts($query_string . '&paged=' . ...
0
votes
1answer
480 views

Search results with custom loop don't update when paged

I have the following code in my search results page to split up posts per category. When I go to the 2nd page of pagination, the results are exactly the same as the first. I'm assuming $paged has to ...
0
votes
1answer
734 views

Pagination & get_pages?

I have a page that list the child pages of this specifiec page but i would like to add pagination for it , how can i do this ? here is the code that get's the pages <ul id="products" ...
1
vote
2answers
926 views

Pagination on taxonomy archive pages breaks

I've created archive pages for all my taxonomies (taxonomie-{taxonomy-name}.php) and this works fine. The slug of my taxonomies are the same as the slug of it's post-type. This makes it possible to ...
1
vote
2answers
5k views

Custom post type archive with pagination?

I have a custom post type called 'projects' (pastebin) and I have a page called Projects set up in my dashboard which is set to display the Projects template. (pastebin) The problem is when I use ...
4
votes
1answer
17k views

wp_pagenavi() with custom wp_query()?

<?php /* Template Name: Projects */ ?> <?php get_header();?> <section id="content"> <section id="main"> <?php $loop = new ...
0
votes
1answer
1k views

Pretty paged permalinks in custom post type loop

I must be annoying your with all these permalink questions :) The code I'm using for the loop is: // hijack stupid WP globals to get pagination working... global $wp_query; $temp = $wp_query; ...
0
votes
3answers
550 views

How to implement pagination eg. newer - 3 - 4 - 5 - 6 - 7 - older

How can I implement pagination like shown in the title perhaps something similar to most sites
0
votes
1answer
95 views

How to know if I am on 1st page

How can I find out if I am on the 1st page of my home page. I have my page setup like below where I want to display the 1st 2 posts taking up full width. then the rest 1/2. But I want this behaviour ...
4
votes
2answers
9k views

How to determine if theres a next page

I am new to wordpress development, just trying to convert my HTML into a WordPress theme, I started with Chris Coyer's blank theme. <div class="navigation"> <div ...
2
votes
1answer
814 views

Add “last” and “first” to Wordpress Comment Pagination Links

<?php paginate_comments_links(array('prev_text' => '«', 'next_text' => '»')); ?> Using above in Wordpress theme to add comment pagination links - this displays as « 1 ... 4 5 6 "1" ...
0
votes
2answers
17k views

Setting posts per page in query_posts

Bear with me here.. The default posts per page in the admin area is 10. During some testing I wanted to change the posts per page for my custom post archive to 2 (in WP 3.1). The problem is that I ...
1
vote
2answers
916 views

Broken category pagination

For some reason the below code works until I hit the third page and gives 404. Is it possible to fix it without using any plugins? <?php $temp = $wp_query; $wp_query = null; $wp_query ...
0
votes
1answer
1k views

Showing one post from each category, paged?

I want to display one post from each category per page. So the first page would contain the first post of cat A, the first post of cat B and the first post of cat C. The second page would contain the ...