Tagged Questions

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

learn more… | top users | synonyms (1)

1
vote
2answers
620 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
453 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
401 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
997 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
652 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
547 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
433 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
367 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
428 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
342 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
842 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
894 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
939 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
242 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
464 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
295 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
106 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
198 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
809 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
111 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
619 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
209 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
963 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
221 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 ...
0
votes
2answers
867 views

pagination links not displaying

I'm unable to get my 'next_posts_link()' and 'previous_posts_link()' to display. So far I've tried the standard first debug by deactivating all plugins and clearing the cache, I've also tried removing ...
1
vote
1answer
768 views

How to use “offset” to paginate get_users?

Is is possible to paginate the get_users function with the "offset" parameter? I have complete my custom query of users for my list and now I need to paginate the results into multiple pages. Here ...
3
votes
1answer
1k views

Single Page View for Paginated Posts

Okay, so you know how you can break up a wordpress post by inserting the next-page/page break quicktag. Then, using the wp link pages function in your template, wordpress will generate page 1, 2, 3, ...
1
vote
1answer
3k views

Pagination on a custom page template

I have set up a custom post type called 'Events'. For reasons that I'm not going to get into, I chose not use archive-events.php as the archive template for my Events. Instead, I decided to create a ...
0
votes
2answers
93 views

another post a page problem

I have a difficult post a page problem. I have this code : function wpse31701_4filter_query() { global $wp_query; // Check year and month $wp_query->set('orderby', 'date'); ...
9
votes
1answer
2k 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 ...
1
vote
1answer
415 views

I cannot get pagination to work on my home page code. it keeps displaying the same posts

Please can someone tell me what is wrong with my code and why it keeps showing the same content on the paginated pages? It has two loops.. the first is for the featured post and then the rest of the ...
0
votes
2answers
479 views

Custom post type pagination error

Another one of these paging errors you see here so often. I searched high and low for a fix but have come up with nada so far. I am paging CPT results using my archive-{$post_type}.php template and ...
3
votes
1answer
2k views

How to paginate the get_users function?

Im using the get_users function to show a custom list of users on the site. The only issue Im having a problem figuring out now is how to paginate the result. This is a sample of the function that Im ...
1
vote
0answers
182 views

How to make pagination work not for a whole category but for a part of it? (WP_Query) [closed]

In my example you can see that i have to paginate posts from category 6 with meta_value='izhs' for meta_key='dachaizhs' Now it works like it paginates the whole category, and then exclude from each ...
0
votes
2answers
7k views

WP_query and pagination?

I have to get some custom post types and need to do that with WP_Query (query_posts doesn't work). How can I do the pagination? Whatever I tried didn't work... any help would be awesome I can't crack ...
0
votes
1answer
175 views

Can't get pagination to work for sticky posts only

I don't get my pagination to work. I need to filter my posts on sticky posts and display only two per page. Tried almost everything but can't get it to work. It is totally ignoring my posts_per_page ...
7
votes
3answers
4k views

How to determine if I'm on the first page of pagination?

How do I determine if I'm on the very first page of pagination? I'm using WP_Pagenavi. I want to run a function only on the first page of the pagination. I checked the query_var 'paged', it's set to 0 ...