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

learn more… | top users | synonyms (1)

1
vote
1answer
954 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 = ...
0
votes
0answers
18 views

Wrong selector infinite scroll with custom post-type

I'm developing my own theme and added Infinite Scroll plugin for loading my custom post type "reference". Pagination is ok, if I click on "Older" can see loading. But result is "no additional posts" ...
0
votes
0answers
5 views

Pagination Being Removed From URL with a Custom Loop

I'm having a little trouble with enabling pagination for one of my custom post types. Basically, I have a CPT of 'surgeons' which lists (surprisingly!) a surgeon - on their single page, I'm wanting ...
0
votes
2answers
93 views

Why is a rewrite rule in wordpress prevent pagination?

I have a custom page that uses a rewrite rule. The "non-pagination" rewrite works fine: add_rewrite_rule( '^brand-list/([^/]*)/([^/]*)/?', ...
2
votes
1answer
109 views

Display all posts from all categories with pagination

Alright, this might be a tricky one to explain but I'll do my best. At the front page I want to display all the posts from all the categories. However I want them to be divided. Take this for an ...
1
vote
1answer
332 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 ...
0
votes
1answer
208 views

How do I sort multiples pages?

I want to use a dropdown to sort a list of posts in WordPress. The results will display on multiple pages. So how do I pass the query on to the second, third, fourth, etc. pages? Here's an example of ...
1
vote
0answers
13 views

changing comment-page-# to something like review-page-#

When you enable pagination for comments in wordpress the typical pagination page for a comment is "comment-page-1" "comment-page-2" etc. what I want is this to appear like "review-page-1" ...
1
vote
1answer
667 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
1answer
259 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
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; ...
2
votes
2answers
386 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= ...
0
votes
0answers
10 views

Search results pagination not working with custom query

The first page of search results for a custom query work fine but from page 2 it only shows the index template and says page not found. I've looked around for solutions but none have worked so far. ...
1
vote
3answers
555 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 ...
0
votes
1answer
694 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 then events that are closed for registration in descending order. I'm using get_posts for ...
0
votes
2answers
391 views

wp_paginate not working in combination with WPML plugin? [on hold]

I have installed the wp_paginate plugin and the WPML plugin. Now I have set 'Dutch' to the basic language and added 'English' as the second language. I set the Blog posts to display to: All posts ...
0
votes
1answer
47 views

List all posts by year with pagination

Right now I'm using the following code to display all posts by year: index.php <?php foreach(posts_by_year() as $year => $posts) : ?> <h2><?php echo $year; ?></h2> ...
2
votes
2answers
241 views

Find first image on paginated post for Pinterest

I've been looking for days, yet can't find a good answer. Perhaps the SE crowd can be of assistance. Any help is much appreciated. I am using a custom-coded pinterest button included on posts that ...
0
votes
1answer
243 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 ...
2
votes
2answers
1k 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 ...
1
vote
1answer
245 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 ...
0
votes
1answer
18 views

Pagination showing same posts despite changing page

I know this is a common problem and there are answers available but I am using pre-existing code from a premium theme, which doesn't seem to work for me. In the blog.php page template, I have: ...
1
vote
2answers
8k views

Woocommerce custom loop to show all the products

I'm currently working on an e-commerce website and I met an problem. My client want a page e-boutique with all the product categories displayed, followed by 3 promoted products and a button "show ...
1
vote
1answer
26 views

Why does pagination go to a blank page when navigating through home.php?

Learning how to build WordPress themes from scratch I have run into an issue when I try to code my home.php. The issue I run into is with the pagination. After the last page of posts instead of ...
0
votes
1answer
501 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
30 views

Split a long form into multiple pages

I have a long form that gets submitted. I need to change this to a multipage/multistep form over several pages. I'll add a somewhat clean version of it, its custom made so there is no source. ...
0
votes
3answers
255 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
406 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
votes
0answers
20 views

Pagination not working

I am using the following code for pagination but its not working .Please help me out and tell that what is it that i am doing wrong <div class="isotope"> <?php $paged= ...
0
votes
2answers
284 views

Why won't pagination work?

I am using a page template with code to display all blog posts: <?php /* Template Name: Blog */ ?> <?php get_header(); ?> <div id="main"> <?php // ACF Page number variable ...
0
votes
0answers
23 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 ...
0
votes
0answers
10 views

Pagination issue for pages with multiple categories

I want to display in a page posts from multiple categories, but it doesn't paginate. $extra_posts = new WP_Query( 'cat=5,7,24&posts_per_page=3&orderby=date' ); if ( ...
0
votes
1answer
44 views

How do I get my custom query to work with search results after the first page?

I am using a custom query in order to ajax load/append additional posts instead of paginating them out like WP defaults. However, when I click the button I've made to load more posts, it loads all ...
0
votes
0answers
9 views

Pagination on author page

I created a custom query inside author.php, and I would like to add pagination. The problem is that the result is 404 error everytime. $args = array( 'post_type' => 'wpost', 'author' => ...
0
votes
1answer
42 views

Unable to display paging navigation with a custom post type loop

I have used a starter pack for my WordPress theme development, but I can't display the navigation on a custom post type loop. The framework starter is : http://underscores.me/ There is my PHP Code ...
1
vote
5answers
333 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 ...
3
votes
1answer
100 views

Combining two wordpress queries with pagination is not working

I am trying to combine two WordPress queries but it's not working as well as pagination. I want to display today's all posts sorted by comment count and after that I want to display all posts ...
-1
votes
0answers
16 views

Pagination isn't working with search results [duplicate]

I'm having the following problem. Here is a search result page http://178.62.147.125/?s=142 with pagination (specific with the wp-pagenavi). When I click in the 2nd page it shows 404 page. On ...
0
votes
1answer
414 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 ...
-2
votes
1answer
57 views

Custom Post Type Pagination For Genesis Child Theme [closed]

Is there any possible to implement the pagination for custom post type in Genesis child theme, I'm using Genesis : 2.0.2 and Wordpress version is : 4.0. I've tried the following code in my template, ...
0
votes
1answer
42 views

Using pre_get_posts to filter out posts, pagination problem

I'm trying to figure out how to fix my pagination problem while filtering out posts on the fly. I have a dropdown box just above the category archive that allows a user to sort or filter out posts ...
0
votes
1answer
853 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
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
3answers
27 views

How to get all author posts outside of author templates

Currently, I'm trying to display all posts from an author(e.x admin) in a custom page with name that is completely different than these template file listed here. So inside this page, I'm using WP ...
0
votes
1answer
274 views

get_next_posts_link() stops displaying at page 4

Please start by taking a look at this quick video: http://www.screenr.com/8vSH The problem: get_next_posts_link() disappears on page 4. That is, the "go to older posts" link disappears once I am in ...
1
vote
1answer
68 views

Pagination on a WP_query not showing navigation links

I'm having trouble adding pagination to a page. I'm using WP_query and would like to pull back 4 posts per page. The basic query seems to work OK but I must be missing something regarding pagination. ...
0
votes
0answers
17 views

Posts Admin Pagination Items Count

Does anyone know what the wordpress post admin item count is based off of? I'm seeing a mismatch between this number and what my Draft + Published posts total is. Please see screenshot attached. ...
0
votes
0answers
56 views

My pagination.class.php file doesn't work in PHP 5.3.10

I have some php code + a file called pagination.class.php, which my kath.php file incorporates. This pagination code works great on my current server running PHP 5.2.x, but when I moved it over to ...
0
votes
0answers
76 views

How to implement AJAX pagination for get_posts (CPT)?

I need to implement AJAX pagination: « Previous 1 2 3 ... 70 Last » for a CPT get_posts() loop: // main images query // all filters should be applied here $args = array( ...
0
votes
0answers
26 views

Infinite Pagination at Category Pages

I'm use popular wp_infinitepaginate functionfor my WP theme. function wp_infinitepaginate(){ $loopFile = $_POST['loop_file']; $paged = $_POST['page_no']; $posts_per_page ...