Breaking up content into smaller-sized pages to be viewed individually
0
votes
1answer
123 views
Get next post when using pagination with WP_Query?
How do i specify which "page" to get when using WP_Query? I'm using pagination and i only display three posts per page, but i need to manually set which page to get, because Wordpress doesn't do that ...
0
votes
0answers
15 views
How to customize the pages navigation in single post with Genesis? [duplicate]
Possible Duplicate:
Making a Killer wp_link_pages
I'm running a Wordpress site with the Genesis Framework and the Sleek Child theme.
I'm writing a multiple pages post and the pages ...
0
votes
0answers
20 views
Why isnt my pagination working? [duplicate]
Possible Duplicate:
Pagination not working with custom loop
$paged = (get_query_var('page')) ? get_query_var('page') : 1;
$args = array(
'tax_query' => array(
array(
...
0
votes
1answer
110 views
Displaying posts limit: can't get pagination to display [duplicate]
Possible Duplicate:
Pagination not working with custom loop
I'm creating a custom page for logged in current users to view their posts. I would like to limit the number of displayed post to ...
0
votes
1answer
83 views
Pagination for a category
Hi I have page displaying 20 featured images and info of a specific category, I wish to able to have pagination so I can have multiple pages for the category.
How do I do this? I cant seem to get it ...
2
votes
2answers
64 views
Different amount of posts on homepage than paged pages
I've done some searches here and on Google but everything I'm finding isn't working correctly. I was hoping to post my code here and get help with where I'm going wrong.
On the index page of my ...
0
votes
2answers
125 views
Pagination for two loops
I know this has been discussed before but I can't seem to make it work with any of the solution posted in other topics.
How can I make pagination to work on a loop like this:
<div ...
1
vote
0answers
112 views
Category archives with monthly pagination
How would I go about doing the following:
I need to setup a prev/next type pagination where posts within a category archive are split into months.
For example, if I navigate to the News category, I ...
0
votes
2answers
37 views
send user to first page of results when reposting to page?
I have a custom template with a drop-down that filters posts by category. I do it by making the form post to the page itself and then catching the argument and using it in a query (see code below).
...
0
votes
1answer
99 views
How do I sort multiples pages?
I want to use a dropdown to sort a list of posts in WordPress. The results will display on multiple pages. So how do I pass the query on to the second, third, fourth, etc. pages?
Here's an example of ...
5
votes
1answer
67 views
Allow variable amount of comments before pagination
There is an option in the admin settings allowing you to define how many comments should be listed before creating a new page for the next ones. I would like to have the same number of comments for ...
0
votes
1answer
132 views
WP_Query breaks pagination
I've been on this problem for a week now. I've searched through countless posts that just aren't answering the question. It seems that my wp_query breaks pagination. I've looked through a lot of the ...
1
vote
1answer
94 views
Find out total number of pages in global query on archive page?
I'm trying to find out whether there is more than one page of posts (I've set my posts per blog page to 5 in the reading settings) in a custom category template.
I would think the global query would ...
0
votes
1answer
70 views
How do I paginate a custom post type listing on a custom template page?
I've got a page template called tpl-memos.php which is attached to a page called 'Memos' with a parent page called 'About', the permalink for the page therefor is example.com/about/memos. On this page ...
0
votes
1answer
222 views
Wordpress Pagination is not shown
i am using onioneye, Ying yang theme and for pagination, i am using wordpress visual pagination plugin but where i am pasting the pagination code, it shows nothing :(
template is:
<?php
...
1
vote
3answers
141 views
How do I insert CSS into a function?
I have a custom function which allows users to choose between next/previous links and pagination and I'm attempting to add CSS classes to the next/previous links. I've tried this multiple ways and ...
2
votes
1answer
172 views
redirect pages with no content, instead of 404 error, using max_num_posts?
I have a site that has changed its pagination structure, resulting in a huge amount of 404 errors (more posts are being shown per page than previously, so there are lots of pages that were once ...
0
votes
1answer
100 views
Using pagination with multiple loops causes it to break
I'm have two loops on my index page. One fetches the latest posts from the 'work' category and the other fetches the latest from the 'blog' category. (see below)
I am also using a plugin called ...
0
votes
3answers
119 views
Show multiple next and previous posts
I've created a portfolio with single posts. When viewing the posts i'd like to show the next / previous 2 posts (portfolio items).
Currently i'm using the following code but only shows one post:
...
1
vote
1answer
204 views
Rewriting search and pagination base
After trying for weeks now how to find a working solution I got rid of most of my functions and trials and just left the pagination function underneath in my functions.phh file:
/**
* Pagination ...
2
votes
1answer
147 views
Check if on last page of paginated post using wp_link_pages
A client of mine reviews products on his site, and wants to display the review criteria and score on the last page of each posts. Typically, there are 3-5 pages per post, and I'm looking for a way to ...
0
votes
1answer
35 views
advanced paging in wordpress
I can create pages in wordpress very simple like
www.mysite.com/profile
Now I have a question how can I make more pages in this page like www.mysite.com/profile/edit or maybe more pages like
...
1
vote
1answer
94 views
Pagination working everywhere but the index page
No idea why but pagination on my homepage isn't working although it works in every other place..custom templates, archive, searches. I've tried every version of pagination possible it seems. I've used ...
0
votes
1answer
130 views
Converting multiple loops into one single loop with pagination
I am using Isotope jquery plugin to filter/sort posts in Wordpress but to correctly filter the posts into the right order I have needed to output each category one after the other. To do this I've ...
0
votes
1answer
115 views
Clean install - Changing permalinks in twentyeleven give 404
interesting problem that I encountered, not sure if it's bug or not..
On a clean install using the twentyeleven theme I try changing the Permalink Settings to something different from the Deffault ...
2
votes
1answer
190 views
pagination hook doesn't work with search results
I use my custom Pagination function on my web site;
#Pagination
function pagination($prev = '«', $next = '»') {
global $wp_query, $wp_rewrite;
...
-1
votes
1answer
85 views
Page navigation not working correctly on index but only on categories
i have a problem with the page navigation, on the homepage of my website page navigation not working, when i click on page number 2 or 3 it says "Not found".
But in the categories page is working ...
0
votes
1answer
106 views
Can index.php take over for front-page.php in template hierarchy on second page?
I'm confused by the template hierarchy in WordPress. I have front-page.php in a theme I'm developing. It looks great and it works, but then when a user clicks 'Older Posts', it just shows the same ...
1
vote
2answers
734 views
Pagination doesn't work in custom page template [duplicate]
Possible Duplicate:
Pagination not working with custom loop
Apparently this is very popular issue. There are already bunch of people offering answers for this. But somehow after hours of ...
1
vote
1answer
189 views
Custom Post Type Pagination & duplicate posts
I'm working on a template which will use some custom-post-types & custom-taxonomies.. I'm having problems with pagination and duplicate posts.
HOME.PHP
LOOP #1
On the homepage (home.php) I have ...
0
votes
2answers
35 views
How to display numbered pages in a category
How in category.php to output a numbered list of links to pages like:
1 2 3 4 5
when the number of posts in the category exceeds the number of posts to display?
0
votes
1answer
124 views
How to do paging in the loop?
I used single.php for this code:
<?php $categories = get_the_category($post->ID);
if ($categories) {
$category_ids = array();
foreach($categories as $individual_category) ...
0
votes
0answers
230 views
how to paginate get_categories?
I have been working on this code for about a week now. I have tried many things. My recent attempts today resulted in infinite loops that just made the browser keep posting the posts.
This is what I ...
0
votes
1answer
51 views
Can I define multiple paginations on a single page?
I have a category page, which shows this category's subcategories.
I want in each subcategory to show its first five articles. And then provide pagination for each subcategory in order to allow user ...
0
votes
0answers
138 views
Access to max_num_pages from a plugin? [closed]
I would like to access max_num_pages of my current $wp_query, inside of one of my plugin.
function myAjax_init() {
global $wp_query;
wp_enqueue_script('myAjaxLoadJS',plugin_dir_url( __FILE__ ) . ...
1
vote
2answers
161 views
404 on pagination but with a strange twist (error 404 only when there is single post on the second page)
I have a weird problem I'm having hard time understanding.
Pagination gives me error 404 when I click page #3 when there is only 1 post on that page. If I add 1 more so that on page #3 there are ...
0
votes
1answer
57 views
Pagination on a page
I've got a page of which I'm displaying a load of custom post type posts, much like blog displays a load of posts.
I'm using WP_Query and have my pagination links outputting correctly, however when I ...
0
votes
1answer
106 views
Wordpress pagination URL posts not load
I set up wordpress newly and add next previous pagination in home page using following code
next_posts_link('Older Entries »', 0);
previous_posts_link('« Newer Entries', 0);
Pagination URL work ...
0
votes
1answer
120 views
Pagination in custom query not working
hi im trying to output pagination without any success. below is my code in a page-products.php template
<?php $products_query = new WP_Query(array(
'post_type' => 'product',
...
0
votes
2answers
238 views
paginate function in archive for custom-post-type
I have a custom-post-type for events and use the normal archive.php template to list all previous events.
The thing is that I use a custom query for my event-post-type inside archive.php like this …
...
0
votes
1answer
415 views
Duplicate posts showing up in loop using infinite scroll
I'm experiencing an odd issue using Infinite Scroll for the WP_Query loop on my homepage. Half the time when the second page fires, I'm getting a few duplicate posts showing up in the second set. I ...
1
vote
1answer
186 views
Setting pagination for images attached to a post
I am trying to figure out how to paginate a post for it's images. I have a custom post type set up to act like a gallery - images only. And would like to paginate the images. I am having a hard time ...
0
votes
1answer
318 views
What is the best way to implement ajax based pagination on custom query based templates?
We can use multiple plugins like wp-pagenavi or wp-paginate for implementing pagination for wordpress sites and making it ajax based using the following code:
jQuery(document).ready(function(){
...
1
vote
0answers
84 views
Adding range to wp_link_pages();
I have some very long posts, some have more than 50 pages() and when using wp_link_pages it give me 50 internal post links, clearly this isn't usable.
How can I add a range to the wp_link_pages ...
1
vote
1answer
225 views
Disable wordpress pagination URL rewrite for specific page
I'm hoping somebody could help me out with the following issue. I have a wordpress page: http://www.howdesign.com/design-jobs and there is a list of jobs coming from behance.net via JavaScript. When ...
1
vote
1answer
104 views
Limiting number of visible links displayed with wp_link_pages
I need to extend the wp_link_page function to only show a max of 5 links at a time. What is the best approach to limit the number of links?
In the end i'd like it to look like this: Previous 1 2 3 4 ...
0
votes
3answers
95 views
wordpress pagination fix after the_posts
I am using the_posts action to filter out some unwanted posts - this works fine, but the pagination after this is applied gets broken. If for example there is a page with 10 results before the_posts ...
3
votes
2answers
789 views
How do I paginate search results for custom post types?
I have a Custom Post Type called "cars" that stores several custom fields along with the standard Title/Description fields. I need users to be able to search through the CPT based on the custom fields ...
0
votes
1answer
132 views
How can I cycle posts with a #next and #previous script?
So, I'm having trouble trying to figure out how I would go about coding this kind of implementation for a Wordpress site. I have the first part done but am a little confused on how I would go about ...
0
votes
1answer
188 views
How to add pagination to category templates
I have a function which named kriesi_pagination, which is a function for showing page numbers in php. I copied the code into the functions.php for my site.
The I call this function in the index.php ...