Note: Support related questions is off topic here and should be asked on the author's support forum. Adds a more advanced paging navigation interface.

learn more… | top users | synonyms

12
votes
3answers
10k 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 ...
5
votes
6answers
7k views

How can I make wp-pagenavi work on a custom query built upon a form submission? [closed]

I've also posted this on the wordpress support forums, for scribu's wp-pagenavi plugin: http://wordpress.org/support/topic/plugin-wp-pagenavi-custom-query-form-submit-part-2?replies=1 My situation: ...
4
votes
1answer
19k views

wp_pagenavi() with custom wp_query()?

<?php /* Template Name: Projects */ ?> <?php get_header();?> <section id="content"> <section id="main"> <?php $loop = new WP_Query(...
4
votes
1answer
5k 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 ...
2
votes
1answer
1k views

Exclude Sticky posts from Main Query break Pagination

I have a small problem with this function ! I would like to exclude all sticky post from my query but when I do it, it breaks my pagination. In the following code, when I remove the "'post__not_in' => ...
2
votes
1answer
2k views

Page navigation doesn't show when query category

Problem: when I do www.example.com?cat=4 or choose category through custom menu or from category widget it shows only first page without navigation at the bottom, where it supposed to be. It's the ...
1
vote
2answers
203 views

How do I sort posts with multiple pages

I am using a drop-down to sort posts by title, meta_value, etc. However, the sorting feature only works on the first page. The second page displays the default order rather than continuing the order ...
1
vote
1answer
6k views

WP-PageNavi not working on Custom page Template

this is my code in Custom page Template <?php query_posts('showposts=8'); ?> <?php $count = 1; if (have_posts()) : while (have_posts()) : the_post(); if($count == 1) : ?> & ...
1
vote
1answer
500 views

Pagination with $_POST and $_SESSION

I have a page on my site where in the left column is a set of checkboxes representing taxonomies and in the right column is a list of posts that fall into the selected taxonomies. The user is able to ...
1
vote
1answer
583 views

Same posts from my homepage are on all of my different page

I see that you solved the problem of a WordPress user memo-maritime two years ago "Same posts from my homepage is on all of my different pages".The same problem i have.What should I do?I installed ...
1
vote
4answers
1k views

404 error PageNavi custom type taxonomy | wordpress

I have a custom post type called rock with a custom taxonomy called genero. taxonomy-genero-curiosity.php mypage/Rock/curiosity/ When i click subsequent paginated page links (e.g. [2], [3], [...
0
votes
3answers
6k views

WP-PageNavi gives me a 404 when using WP Query

I see that there are a lot of similar questions here at WPSE, and I've tried many of the suggestions mentioned trying to solve my problem but with no success. I have a category called News. In this ...
0
votes
2answers
816 views

Sort custom posts in archive by multiple values: date AND meta key

I have a post type and I want to sort posts in its archive according to two values: by a meta value called "artwork_year" which contains a 4 digit number (year) by post publish date what the query ...
0
votes
1answer
2k views

wp-pagenavi only showing first page

I'm trying to get pagination to work, I get the nav tools to show, but when i click to move to the next page it loads the first page every time. Here's the code: <?php $args = array( ...
0
votes
1answer
23 views

Article content navigator in wordpress like mbaskool website

Is there any way to allow navigation in an article within same post in Wordpress. or any such plugins ? Because i searched a lot, but could not find a way. For example : Check this link http://www....
0
votes
1answer
321 views

How can i show pagenavi in my author.php?

With this query in author.php i show all posts from a specific author_id/name/slug. But the problem is when i set the minimum of posts to show in the page. I have tried with posts_per_page= but if i ...
0
votes
2answers
678 views

pagenavi shows alot of pages calculated from all posts in the site with query_posts

I need to excute posts from 2 seprated keywords using s=keyword with get_posts, but only searching in titles. I found this answer. I created a custom template to use it in single page. Then I used a ...
0
votes
1answer
1k views

Pagination breaks on child-categories, works fine on parent-category

I have two parent categories, and pagination is working fine on them - the paged url's show as: /parent-category-1/page/2/ ... etc /parent-page/parent-category-2/page/2/ ... etc However, when I go ...
0
votes
1answer
791 views

wp pagenavi not working with category id

Can someone let me know i am using wp pagenavi wordpress plugin http://renegadehealth.com/blog/?cat=6708 When i click on the next button at the bottom the following link comes:- http://...
0
votes
1answer
1k views

pagenavigation not showing the next page just linking back to the main page [closed]

Using this on my index.php <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?> Using plugin: WP-PageNavi Wp Pagenavi Style Not sure what information you need to help me fix this....
0
votes
1answer
5k views

Wp-pagenavi giving page not found on clicking page 2

I'm getting a page not found when I click on page 2 using wp-pagenavi. This is my code, is there anything obvious there that's wrong? <div class="news-content-inner"> ...
0
votes
1answer
1k views

wp_pagenavi function parameters [closed]

I've been searching all around the web for the API of the wp_pagenavi plugin, but seems that I can't find one. I just want to know: In examples that I found, the wp_pagenavi function has from 0 to 3 ...
0
votes
2answers
1k 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 ...
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 $...
0
votes
0answers
22 views

Why is error shown twice? (how to apply menuitem to menu correctly?)

Starting to create a plugin that adds content and hooks that content into a menu (in this case below I started to add a search-functionality to hook into menu just for testing) if( !class_exists('...
0
votes
0answers
35 views

WP Pagenavi showing only the first two pages without error

I'm trying to show a complete list of the posts, so I included pagination. The problem is that only it's possible to access the first two pages. If I try accessing the 3rd page(/page/3) for example, I ...
0
votes
1answer
29 views

Ussing page_navi with WP_Query

I'm ussing in my site that code: category-anuncios.php <div class="listado-anuncios"> <?php $paged = (get_query_var('paged')) ? get_query_var('paged')...
0
votes
1answer
39 views

Menu Details Output in Javascript [closed]

I have to output page, parameters( Page Url, Page Name, and Page's featured image) in javascript loop, one by one I think we can display it through NavMenuItems or NavMenu functions Pages displayed ...
0
votes
0answers
29 views

Creating paging within a page.php

I am trying to create a paging within the page.php my thema and is not showing up ! How do? I'm doing as follows: Loop: <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $...
0
votes
2answers
388 views

WP Page Navi. 404 error when using posts per page parameter [duplicate]

I'm trying to fix an error with pagination of WP page Navi plugin. After I've added posts_per_page parameter to the query I'm getting 404 error when clicking on link page3,4 etc (there are 10 records ...
0
votes
1answer
233 views

WP-PageNavi not working on custom loop

I used WP-PageNavi on custom loop. It shown /page/2/ or /page/3/ on url, but I the result still on page 1. I took me a week and I still can't solve this problem. Here is my code <?php $...
0
votes
1answer
159 views

Pagination in custom query in a category page

In a category (I create category-123.php), I'd like to create a new custom query in order to show all the posts that have right parameters (custom fields). <?php $today = date("Ymd"); $paged = ...
0
votes
2answers
313 views

PageNav Not working on Custom Post - function built into theme

The Pagenav will not appear on this page, I've got the wp-pagenav function built into the theme so calling it works on all the other pages. It appears on the blog template I'm using but just not the "...
0
votes
1answer
450 views

Wp Pagenavi how to display all results

I'm using Wp Pagenavi Plugin. I'm trying to display all results from a button. I'm using this: $out .= '<form action="" id="showall" method="POST" name="results"> <input type="hidden" name="...
0
votes
2answers
797 views

Pagenavi pagination via wp-query in functions.php showing same content for each page

I've recently had a lot of help creating an upcoming events list (see here Showing upcoming events including todays event - StackOverflow), as a result my pagination using wp_pagenavi() is broken. At ...
0
votes
3answers
3k views

Wp PageNavi only works with default permalinks on a custom post type?

I have tried many solutions to no avail and really need some help. I have a Custom Post Type named "Portfolio" that is setup to display it's contents on a page called Portfolio.php. Wp PageNavi is ...
0
votes
1answer
175 views

Need help getting this page nav working correctly [closed]

For some reason the page nav doesn't work correctly. It's styled odd on the home page, then if you go to a page you'll see it really looks odd. I can't figure out what's happening. If anyone has any ...
-1
votes
1answer
1k views

Pagination with wp_pagenavi not working on custom page

I am having trouble with wp_pagenavi working on the start page using a custom query. It's working well on every standard template like category.php. But not on the homepage. Here is the code: <?...
-1
votes
2answers
225 views

Limit the number of posts via wpquery

We suppose that a category has 1000 posts, we can use the following code to show 10 posts per page and the wp pagenavi would present 100 pages with links of above 1000 posts. <?php query_posts($...
-1
votes
2answers
1k views

Post pagination wp-pagenavi

i'm having some problem with page pagination using wp-pagenavi, i'm using this query: $myposts = query_posts( array( 'showposts' => 10, 'paged' => get_query_var('paged') ) );; i would that ...
-4
votes
0answers
16 views

Pagenavi on custom template with shortcode category

I have a custom page template which display products from one woocommerce category, at the bottom I added the pagenavi function but I can't switch to another page it say that there are only 1/1 page ...