The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
22 views

Paginating custom query on category template

I'm trying to paginate my custom post types on my category page template but for some reason when I trying to navigate to 2nd,3rd,4th etc pages it will get re-routed to the index page. This is the ...
0
votes
0answers
19 views

Pagination is not working on custom query inside a custom home page template

I know this is a duplicate question. But to comment on existing question, I dont have enough points. So here we go.... Pagination is not working on custom query inside a custom home page template. ...
0
votes
0answers
22 views

Wordpress Pagination Not Working After Transfer from Localhost

I have the following code for wordpress pagination: function sds_pagination(){ global $wp_query; $big = 99999999999999; echo paginate_links(array( 'base'=> str_replace($big,'%#%', ...
0
votes
1answer
19 views

Add Custom Pagination Permalink

I'm trying to create a page with multiple loops on it and as such also need multiple pagination. This is proving to be a touch difficult, I've managed to get the links to show correctly by using the ...
1
vote
1answer
41 views

Paginated pages are showing correct content but pagination links are not

I am using a custom WP_Query to display posts on static front page. and generating numbered pagination links with paginate_links functions. This is the code I have... $latest_args = array( ...
0
votes
1answer
20 views

How can I get my pagination to recognize that it is on the first page?

So my blog index page which displays all blog posts with pagination is at /my-blog/ Page two is at /my-blog/2 When I'm on any page but the first (or if i use /1 for the first page) paginate_links() ...
0
votes
0answers
52 views

WP_QUERY loop, offset in the arguments and the paginate_links - can these work together?

I have a page where the first 4 posts from category 7 are displayed with their own query and style. Then I have a small box were I want to display the rest of the posts from category 7 and to use a ...
1
vote
2answers
100 views

Pagination Not Displaying on Custom Term Archive

I am trying to achieve pagination on a custom template I have that displays on an archive of terms. It appears to be working because when I navigate to mysite/taxonomy/page/2/ or 3,4,5 etc. the ...
0
votes
0answers
42 views

Newer/older posts links don't show up

I am working in a twentyten childtheme and the the newer/older links don't show up on my index page, under the listing of ten blog posts. What bothers me is that even when I add a <!--comment--> ...
0
votes
0answers
150 views

Looping Next/Prev Link for custom post type

Strange error with custom post type next/prev. Trying to ge tthe first post if youre on the last one and the last post if youre on the first one. The posts per page is set to 100 but it seems to only ...
0
votes
1answer
105 views

Pagination doesn't function properly for archive of a custom post type set as the front page

I created a similar question about an hour ago but since then I feel that I've changed things enough so that if someone viewed it for the first time, it'd just be a confusing mess. So I am opening up ...
0
votes
2answers
275 views

Paginate_links links not working accordingly to how I do query the page

Ok, I've a custom post type page to which I have attached the paginate_links function to navigate through the elements. If I don't do anything and let WP using whatever mechanism is attached to the ...
-1
votes
1answer
560 views

Link Back to Parent Category - Woocommerce

I´m using woocommerce and a custom post type=product and taxonomy=product_cat. I need a link back to parent category on every single product and category pages. Already read several posts in the web ...
0
votes
0answers
55 views

trying to get paginate_links to work but the query before is not working with multiple categories

I am trying to make this paginate_links work. The thing is I cant use category__and in my query. If I write 'cat' => array(3, 4, 24), It works but I get a message saying it needs a string, not an ...
0
votes
1answer
32 views

How to change page location in Wordpress

I want to change my page location (link address). My blog page location is: http://localhost/wordpress/?page_id=1336. I want to change blog page location http://localhost/wordpress/?page_id=1336 ...
1
vote
1answer
904 views

Unable to get paginate_links working with a custom query [duplicate]

I have built a news section in my Wordpress site with the advanced custom fields and custom post type ui plugins. On the custom news overview page (not the standard wordpress posts) I wanted to limit ...
1
vote
1answer
577 views

Search - Ajax - Alter Query Parameters with Pagination

Too Long ; Didn't Read How do I get pagination to work when I'm creating my query with ajax? I'm working on creating a functional search page that allows the user to filter how many posts per ...
0
votes
1answer
68 views

Custom pagination [duplicate]

I'm using template part for showing portfolio items. It's not page template just portfolio.php file and I'm included it with get_template_part('portfolio'); to homepage. Now everything is working ...
-1
votes
1answer
173 views

Pagination Broken on Loop using ACF

http://dthudson.com/ccr/archive-issues/ The paginated pages are being populated by the content as you can see at the bottom (beneath the posts) but when you click on '2' for instance it loads page 2 ...
0
votes
0answers
49 views

paginate_links adds strong element

I just faced a strange issue with paginate_links in WordPress 3.8.1. The navigation itself works great and as expected. But when going to the last page, it adds <strong> tags to the whole ...
0
votes
0answers
29 views

How to change URL of Pagination?

I have used PageNavi Plugin for pagination ,Generally when we click on page-two we get url like this : http://www.example.com/acb/page/2 but how Can I change Url like this ...
0
votes
2answers
29 views

Give wp link pages it's own template

Here's the scenario, I'm working on a site with 100s of of paged posts using the wp_link_pages tag. The issue I'm having is that they're things I want displayed on the main post that I don't want ...
1
vote
1answer
371 views

Edit format of Paginate_Links()

I'm using paginate_links to paginate the results of a loop. I want to style the pagination using dots instead of numbers, but I'm not sure how to go about doing this. I could try to play around with ...
0
votes
0answers
54 views

wordpress paginate_links url

my code looks like this: paginate_links( array( 'next_text' => __('>'), 'prev_text' => __('<'), 'base' => @add_query_arg('page', '%#%'), 'format' => ...
0
votes
1answer
1k views

Custom post type archive page pagination

I have set up an archive page for my custom post type reference, where I use a query to get all posts of type reference. This works, but when I try to paginate the result, it doesn't work. Right now, ...
0
votes
2answers
3k views

Changing pagination list class

paginate_links() function returns unordered list with class named "page-numbers". How can I change this class? EDIT Currently, I am using the band-aid method below. $return = paginate_links( $arg ...
1
vote
1answer
806 views

How to paginate attachments in a secondary query as gallery?

I have this code that shows all images attached to my post-type. Is there a way to paginate those? I have like 25 pics and I wan't to avoid scroll as much as I can. Code: <div class="galleries ...
-2
votes
1answer
44 views

Custom template pagination

I have a custom post type "news". I created the page "News" with the id 55 and a custom template file. I want to implement pagination. The problem is when I access the news with a page number set I ...
0
votes
2answers
115 views

How to break the wp_link_pages in two lines

I have 4 videos in my single post which are being displayed using nextpage quicktag. To style pagination i am using the follwing code in single.php <div class="pagelink"><?php ...
-1
votes
1answer
93 views

wp_link_pages return value even when is condition inside if statement

I am trying to check if wp_link_pages is true in this way: <?php the_content(); if( wp_link_pages() ): ...
0
votes
1answer
728 views

paginate_links and query vars

I have using the Wordpress paginate_links() to build a paginator on a custom archive template for a custom post type. My site uses permalinks: <?php echo paginate_links(array( 'base' => ...
0
votes
1answer
244 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" ...
1
vote
0answers
127 views

Using Ajax in the prev_posts_link and next_posts_link

I am using the add_filter() function in my functions.php file, to give my prev_posts_link and next_posts_link individual classes. The following code successfully loads the individual classes, ...
0
votes
1answer
408 views

Pagination: Keep prev and next link even on the first/ last page

On my index.php I'm using 'paginate links'. I want to make a pagination where you have a button for previous, than the page numbers and then a button for next, like: < PREVIOUS 1 2 3 4 [5] 6 ...
0
votes
2answers
45 views

Pagination on WP_User_Query not updating current page

I have the following code which queries for all users (excluding admin) and sort them by the meta value user_business. When there are more than 10 users I have pagination which is currently working ...
0
votes
0answers
127 views

Paginate Links not working

For the life of me I cannot get Paginate links to display pagination, but using 'userp' in the url works for paging. I just need the links to show up. <?php /** * @package WordPress * ...
0
votes
2answers
657 views

paginate_links() outputs extra empty pages on custom loop

I have a custom loop: $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $works = new WP_Query('category_name=work&posts_per_page=9&paged=' . $paged); Pagination outputs 3 ...
0
votes
1answer
126 views

Automatically adding a link to the next page link before '<!--nextpage-->' tag in posts?

I'm using the following snippet to automatically break a too long post into multiple pages function filter_more_with_nextpage( $content ){ $content = str_replace( '<!--more-->', ...
0
votes
1answer
28 views

Why is my pagination showing up?

I have the following code, Assume this code spits back one post. the page displaying that post will also display pagination. Why? It shouldn't. This code only queries for posts that belong to the post ...
0
votes
0answers
13 views

paginate_links with meta_query showing incorrect number of pages [duplicate]

I seem to be having a strange problem with paginate_links, and I'm hoping someone can help. I have a custom post type for events, events have categories and a custom field for start date and end date. ...
0
votes
1answer
900 views

Paging with category page

I have created my category.php to display all the posts (i am using custom post) in the category. By default, it's displaying 10 entries, and when i scroll down, i wanna fetch the next 10 entries ...
0
votes
0answers
32 views

Pagination paginate_links() Not Working [duplicate]

Here's my code <?php query_posts(array('category_name'=>'nutrition','posts_per_page'=>'3','paged' => get_query_var('paged'))); while ...
2
votes
1answer
2k views

Strange paginate_links behavior. First page link is always whatever page I'm on, all other links are correct

I'm using the following code to generate some pagination: $wp_query = new WP_Query(); $wp_query->query('posts_per_page=5'.'&paged='.$paged); $big = 999999999; echo '<div ...
5
votes
1answer
475 views

Wordpress Pagination Problem

I want to put Pagination in my wordpress index.php but it does not work. In my index.php there are 3 section of loop that show custom posts and i want put pagination in Blog / recent post section loop ...
1
vote
0answers
45 views

paginate_links refers to “Not Found” page [duplicate]

Possible Duplicate: paginate_links() don’t properly work in search.php? I'm trying to make a simple pagination nav menu, using the following code: global $wp_query; ...
1
vote
1answer
232 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
1answer
413 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 ...
2
votes
2answers
4k views

paginate_links() don't properly work in search.php?

I'm using this in my search.php template … <div class="pagination"> <?php echo get_pagination_links(); ?> </div> And this is the function … function get_pagination_links() { ...
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 ...