Breaking up content into smaller-sized pages to be viewed individually

learn more… | top users | synonyms (1)

0
votes
0answers
9 views

404 error Custom search results page for custom post types with friendly URL

Seen a lot of people with same issue, but no solutions have worked for me, so maybe I'm mislooking something. Page 2 of a custom results page gives me a 404 ( /search works, /search/page/2 doesn't). I ...
0
votes
3answers
49 views

Paginate get related post by author function

Is it possible to get this function paged? I've tried to add previous and next links but i'ts not working... function get_related_author_posts() { global $authordata, $post; ...
13
votes
4answers
14k views

Pagination not working with custom loop

I've got a custom loop that I'm using to display some Real Estate listings that will be available within 60 days. I'm calling it with the following function: <?php $sixtydays = date('Y/m/d', ...
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 ...
-1
votes
2answers
72 views

Repeating posts when paginating random posts

I have 1 Custom Post Type of products as well as two taxonomies of types and countries. I'm displaying my custom post type of products on my taxonomy.php page with paged pagination. I am also using ...
20
votes
1answer
14k views

How to fix pagination for custom loops?

I have added a custom/secondary query to a template file/custom page template; how can I make WordPress use my custom query for pagination, instead of using the main query loop's pagination? Addendum ...
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
0answers
17 views

Infinite Scroll on homepage not working

I'm having a bit of an issue. I have installed the Infinite Scroll plugin and am having issues with it. Firstly, all it says is "No Additional Posts" when, in fact, there are additional posts. I ...
-2
votes
1answer
29 views

Duplicating pagination on second page

Been trying to get this to work and I can get it to show the pagination links but it just duplicates the content from the first page again on page two, can't figure out why? <div class="row"> ...
0
votes
0answers
22 views

Display Pagination on Table

I have written the code below: <?php $ListTransfer = $pwtw_db_connect->get_results ( $pwtw_db_connect->prepare ( 'SELECT * FROM donation_bank WHERE trans_wp_id = %d AND trans_svr_region = ...
0
votes
2answers
47 views

query_posts different amount of posts per page

I have a posts_per_page query to paginate multiple post types, which works great! Now though, as it paginates it to show (in this case) 100 posts per page, I'm wondering if you can show 100 on page ...
1
vote
1answer
48 views

Move pagination numbers above plug-ins

I'm having the following problem: I want to move the generated page numbers from <!--nextpage--> to appear below the post body, above the plugins (WordPress Related Posts, WP Author Box Lite ...
-1
votes
0answers
29 views

Move plugin content into the_content

I have a plugin to display author content in a post. The plugin is working as intended, but I'd like to move the display of the plugin above the pagination. Since the pagination tool is contained ...
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 ...
0
votes
1answer
271 views

/tag/tag_name/page/2 gives a 404 error

I created my own template for list of entries for certain tag (tag.php), It will shows up 10 entries, and with Previous & Next link. <?php $paged = get_query_var('paged') ? ...
1
vote
1answer
299 views

Merged two WP_Queries, posts per page and pagination not working

I merged two WP_Queries with the code below, it has pagination setup as well as posts per page in the final combined object but those settings aren't working. My page shows 24 posts, where is it ...
1
vote
0answers
12 views

same slug for custom postype and page pagintion not working

I have created post type "news" and a page "news" so my url is like http://demoserver.com/testsite/news Here i use page template for news landing and i do not use archive.php page for post listing ...
1
vote
5answers
414 views

Pagination for blog posts reloading same page

Symptoms Visiting /blog/ loads the first 10 posts, as expected. Visiting /blog/page/2/ (and onward) loads the new URL but with the same 10 posts. Nothing changes but the URL. Setup Details Custom ...
0
votes
3answers
2k views

Pagination not working on home page

I've a page named "share" with a complex loop that's working perfectly. This page is located at domain.com/share. Now I need to use this page as the home page, so I went to "Settings -> Reading" and ...
0
votes
0answers
2k views

Adding pagination to the WooCommerce [sale_products] short_code [closed]

I'm using the builtin WooCommerce [sale_items] shortcode to display sale items on my site. Whilst you can control how many items appear on a page it doesn't include pagination so if you've got a lot ...
2
votes
2answers
446 views

Pagination problem after WP_Query with tag filtering

I have a problem with a custom WP_Query. I want a page with all posts with a specific tag. This is the code I'm using: <?php //save old query $temp = $wp_query; //clear $wp_query; $wp_query= ...
1
vote
1answer
359 views

AJAX pagination offset returns same post on adjacent pages

I have a simple AJAX pagination that seemed to work just fine, calling one Wordpress page (not ideal, I know) with a pagenum and a sort order arguments and it returned 4 custom posts per call. The ...
0
votes
0answers
20 views

How should I setup a special series on my blog?

I am not a full-fledged WP developer. But I know how to do basic PHP functions and get stuff working the way I want. However, I want to do a special series on my blog, that will last the next 3-4 ...
1
vote
1answer
411 views

WP_Query Pagination on multiple-loop page breaks WP or doesn't show up

The loop below is one of several on a Custom Page template, but it's the only loop that I'm trying to implement Pagination with. Once I have Pagination working for this one loop, I'll be implementing ...
3
votes
1answer
4k views

How to display pagination links for WP_User_Query?

I think I'm nearly there with this, but I can't get the pagination links to show for a directory of authors I'm creating. My code is below, but I don't know how to get the links to navigate between ...
1
vote
1answer
1k views

Pagination doesn't work

I created myfile.php with the following content: global $paged; if ( get_query_var( 'paged' ) ) { $paged = get_query_var( 'paged' ); } else if ( get_query_var( 'page' ) ) { $paged = ...
1
vote
3answers
612 views

Pagination: /tags/tag_name/?paged=2 gives a 404 error

I need to paginate an archive page. Pagination works perfectly fine for everything except tag/category archives. Basically if I use /tags/tag_name/?paged=2 it gives me a 404 error. But if I use ...
1
vote
1answer
581 views

404 - Category pagination for custom post type

--Edit I've managed to narrow it down that the paged variable is not working properly here, (get_query_var('paged')) ? get_query_var('paged') : 1; is always returning 0 although maybe it is due to ...
0
votes
1answer
327 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
2answers
2k views

Pagination with get_posts seems to work but links not showing

I've a custom page template where I want to query 2 posts from a post type and 1 post from another post type. I have it set up like this: $paged = get_query_var('paged') ? get_query_var('paged') : 1; ...
0
votes
0answers
29 views

Search page Paginations not working

This is what I use in all my other pages that require a pagination. <?php endwhile; ?> <?php global $wp_query; $total_pages = $wp_query->max_num_pages; if ($total_pages > 1){ ...
0
votes
2answers
3k views

Why Pagination is not working on Category.php

There are two different category "Life Sciences" and "General Lab" and there are sub-categorical product on "Life Sciences". Now "General Lab" category want to fetch all the sub-category and products ...
0
votes
2answers
1k views

Pagination on category.php and tag.php not working

i'm using a query-loop on my template pages like this: <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $wp_query = new WP_Query(); ...
1
vote
1answer
399 views

Pagination on Custom Post Type: 404 Error

I've been getting a 404 error on a CPT archive page, and am not sure why. I can go to the page set for the custom post type archive, but the next page /mycustomposttype/page/2 gets a 404 error. I ...
0
votes
1answer
750 views

Pagination for multiple queries merging into one Loop

I have an events site where I want to display upcoming events that can be booked in ascending date order, and events that are closed for registration in descending order. I'm using get_posts for each ...
0
votes
1answer
567 views

List posts based on First letter of Posts

I want add a Pagination [A] [B] [C] [D] [E] [F] [G] [H] [I] [J] [K] [L] [M] [N] [O] [P] .......[Z] Easy Post Title - By Admin on 2013 post content....bla bla bla... Example Post - Another Test ...
0
votes
1answer
397 views

Taxonomy rewrite pagination 404

I have rewritten my taxonomy url to the name of my posts type 'filter'. Because I have done this, my pagination does not work anymore on the url: http://www.website.com/filter/term-name/ So if I ...
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, ...
1
vote
1answer
734 views

Placing Ads after every 10th Post with Infinite Scroll

I have to load a couple of ads, some normal html and two are java script. I've tried the PHP method of this: <?php $postnum++; if($postnum%10 == 0) { ?> <div id="topset"> <ul ...
0
votes
0answers
52 views

Multiple Loops on category.php with pagination on last loop

I'm trying to achieve what should be fairly simple but I've hit a brick wall when trying to paginate the last of three loops on the category.php template. I've read just about everything I can find on ...
0
votes
1answer
34 views

Frontpage pagination by week

I'm trying to set up a frontpage with all the post from the current week. Well this was quiet "easy" (the query snippet): $query_string = array( 'post_type' => 'post', 'date_query' => ...
1
vote
1answer
588 views

Pagination in a Shortcode. Get_next_posts_link not working but get_previous_posts_link works fine right next to it

I'm trying to output a custom post type archive using a shortcode. Everything works fine except for the get_next_posts_link part. The weird part is that it's right next to a get_previous_posts_link ...
0
votes
1answer
49 views

Thumbnail With Next/Prev Links Not Showing Next Post?

I am using the below code to display thumbnail with next/prev posts links on single.php page. It is working fine when next and prev post are from same category but not showing the next or prev post ...
0
votes
1answer
510 views

Archive Page for Custom Post Type is not Working

I have registered a custom post type "tutorials" with the following snippet. <?php /* Template Name: Tutorial Archive */ get_header(); ?> <div id="content"> <div ...
0
votes
2answers
296 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
1answer
254 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
515 views

Pagination for Pages and Posts

I want to use Pagination throughout a new theme but am having trouble getting it to work correctly. I am using some code within my functions.php file and then calling that function. It works on the ...
1
vote
1answer
278 views

Too many posts cause slow load when paginating

I have about 10k posts and I made a page that lists all posts but it is paginated every 54posts. It gives 131 queries in 6.730 seconds which is pretty slow to load. Is there a way to make it load ...
2
votes
2answers
2k views

get_query_var('paged') always returns empty

Putting this up after having hit a brick wall for possible solutions. Have a site with quite a few custom post types and associated custom taxonomies. To help make things easy, I'm using a unified ...