The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
46 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
46 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
32 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
33 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
21 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
20 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
21 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 ...
0
votes
1answer
65 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
28 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
235 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
1answer
444 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
327 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 ...
0
votes
0answers
12 views

navigation issue [duplicate]

I have an issue with navigation in category.php. Navigation is generated, the problem comes up when I click on the link (2 or Next) to navigate to the Next page of result. I get the 404 page instead ...
0
votes
0answers
7 views

paginate_links issue with keyword search results [duplicate]

I am using paginate_links but it is building the URL in the wrong order when on a search results page with a keyword. Because of the structure of my site I am using GET for the search with a custom ...
-2
votes
1answer
37 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
59 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
53 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
255 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
95 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
82 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
244 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
0answers
170 views

Custom archive pagination with dropdown select

I am trying to create custom pagination for the posts in my custom post type archive page using the paginate_links function. So, instead of the default Previous and Next, I'd like to use an HTML ...
0
votes
2answers
27 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
84 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
285 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
88 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
25 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
11 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
589 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
25 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 ...
1
vote
1answer
1k 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
412 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
41 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
184 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
349 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 ...
1
vote
2answers
3k 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() { ...
6
votes
6answers
3k 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 ...