0
votes
1answer
68 views

Wordpress pagination not working in search result page

I have a problem with pagination on search results page. The page links appear, but when i click onto page 2, it gives me a 404 error. Page 1 : ...
0
votes
2answers
57 views

Adding nofollow to a PHP generated Nav

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly global $wp_query; if ( $wp_query->max_num_pages <= 1 ) return; ?> <nav class="woocommerce-pagination"> ...
0
votes
1answer
58 views

Remove Post if Advanced Custom Field is checked to fix paging

I'm trying to setup a query that filters through posts and removes ones that have an ACF field "archived" checked. Post queries are pretty foreign to me. ...
-4
votes
1answer
184 views

paginate_links() returns NULL instead of the pagination links, but pagination is actually happening

What I'm trying to do: Print the pagination links on the home, which uses template index.php, with pagination functions such as paginate_links(), outside The loop. What happens instead? Instead of ...
0
votes
0answers
51 views

How to paginate categories and sub categories?

Here is my code so far: <?php if (isset($wp_query) && $wp_query->max_num_pages > 1) : ?> <div class="row"> <div class="col-md-12"> ...
1
vote
1answer
214 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
1answer
204 views

foreach pagination

I am looking for help in how to paginate my foreach output. I've looked at other questions and answers and cannot find a solution that works for me or that I can figure out on my own. Right now my ...
0
votes
1answer
97 views

How to add PHP pagination to wordpress

I'm trying to make a custom PHP pagination work with wordpress, the page in wordpress is a very custom one, not a post or a page, it's a select from DB that shows flowers, the styling is ok now, but ...
0
votes
1answer
49 views

Pagination on Custom Loop

I want to style the latest post differently than all the other posts in a category on a custom page. So far I have this code below which does exactly that: <?php if (have_posts()) : ?> ...
1
vote
1answer
180 views

Customized title tag for each page in pagination?

With the reference of below questions. How to change title tags on paginated posts? Paginate tags page How to change title tags on paginated posts? Add Page number to Meta Description in Wordpress SEO ...
3
votes
1answer
2k views

WordPress AJAX Pagination with query_posts

I have a list checkbox categories, which when checked, use WordPress's admin-ajax.php to filter posts to the selected category. All is working great, however, I am struggling to get the updated ...
0
votes
3answers
229 views

Custom Loop Pagination on WordPress

I'm trying to create a magazine style website. For this particular page (not homepage) I'd like to fetch the latest post and style it one way (style1). For all the other posts I'd like to just display ...
0
votes
0answers
61 views

Numeric Pagination Not working

I wrote a function that does (it's unrefactored, bare with me): protected function _index_numeric_posts_pagination($options){ global $wp_query; $total = ...
0
votes
1answer
171 views

2nd page displaying the exact same posts as my first page (minus the very first post)

Site Links: http://manofmany.com & http://manofmany.com/page/2/ I'm seeing my 2nd page displaying the exact same posts as my first page (minus the very first/latest post). All other pages 3,4,5 ...
0
votes
0answers
1k views

pagination broken - clicking next displays “page not found”

I'm a newb at Wordpress, but my HTML/CSS is ok. My site is: http://www.modernfuture.net/wordpress been working on it this for quite some time & I'm done with the headaches, need to get some ...
0
votes
1answer
52 views

How can i list all user registered on my website and have pagination [duplicate]

How can i list all user registered on my website. If i have 300 users, i want to list only 10 on a page and list next 10 on other page.. I want the user to have an image I want to list post added ...
0
votes
1answer
399 views

Prev/Next Links Broken on Static Front Page Pagination

I've taken the example straight from the codex on this one, and my pagination is broken. Here's the codex page I copied/pasted the code from: ...
0
votes
2answers
340 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
1answer
187 views

Infinite Scroll Plugin: How to first show 6 posts and then 2 posts thereafter with Infinite Scroll Plugin?

I am using the Infinite Scroll Plugin and initially load 6 posts onto the page. After the user hits "Show More" which is the pagination buttons on the page, I would like for 2 posts to be displayed ...
0
votes
1answer
130 views

How to change pagination base from slash to query form?

Can this function... function custom_pagination_base() { global $wp_rewrite; $wp_rewrite->pagination_base = 'p'; $wp_rewrite->flush_rules(); } add_action( 'init', 'custom_pagination_base' ); ...
1
vote
1answer
646 views

Using loop pagination on single.php

I want the main front-page loop to show in a section on both index.php AND single.php templates, with pagination. Pagination works fine on the homepage, but not on single posts. This is the code ...
-2
votes
1answer
94 views

Pagination not working properly

I have a list of posts from a category as seen here in this example. The problem is, if you scroll down to the bottom and click older, you'll see that the posts on the page have not changed at all, ...
0
votes
1answer
212 views

Changing Link Attributes for Wp_Link_Pages

I'm wondering if there is any way to change the actual link itself for wp_link_pages. So right now, I have a simple code to display the pagination for a post, it looks like this: <?php ...
0
votes
2answers
99 views

page 1 is not paged

I have rules that only work on paginated pages (is_paged). However, they don't work on page number one (/page/1). This one is behaving exactly like the homepage (!is_paged), but unlike pages 2,3,4 ...
0
votes
1answer
175 views

Pagination not working on homepage

I tried multiple solutions but its not working. When I go to /page/2, it doesn't work. I'm executing custom query in index.php of my theme. if ( get_query_var('paged') ) { $paged = ...
2
votes
1answer
433 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 ...
0
votes
2answers
571 views

Pagination stays on same page for post category

I have a custom taxonomy for a group of posts, and I also have a need to show these posts on a custom page template. I want to show one post at a time, with pagination, so that the user can click ...
0
votes
1answer
192 views

Pagination not working

$paged for pagination is awlays returning 1, so no matter what page i click "1" is always highlighted and it always shows the same posts. i have tried a million different combinations of things to fix ...
0
votes
2answers
2k views

Pagination Not Working (pages duplicating content)

My pagination pages echo out the same content on every page. Page one is queried to show two posts, which it shows up correctly. Page two shows the exact same two posts as page one does. Here is my ...
1
vote
1answer
524 views

PHP code to use on next & previouspage links

I'm having an issue with wp_link_pages tag. I want to list the number of pages of each post with 'next' and 'previous' links that are two image arrows. To better understand the problem I'm having, ...
1
vote
1answer
2k views

Wordpress 3.2 query_posts and pagination, permalinks issue

My question is not new but it just does not work with all found solutions in my case. I am trying to display recent posts on single post using custom query_posts loop. The permalinks structure must ...
1
vote
1answer
555 views

Add “last” and “first” to Wordpress Comment Pagination Links

<?php paginate_comments_links(array('prev_text' => '«', 'next_text' => '»')); ?> Using above in Wordpress theme to add comment pagination links - this displays as « 1 ... 4 5 6 "1" ...