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

learn more… | top users | synonyms (1)

0
votes
1answer
6 views

Pagination custom query

I am trying to make a custom page template that shows the most viewed posts. I can return posts but I am having trouble figuring out how to paginate it. Here is what I have: $args = array('orderby' ...
0
votes
1answer
16 views

Add pagination to blog

I want to limit 3 blog entry snippets per page and include pagination for additional pages. Here's what I have so far, but pagination isn't working. <div id="page-content"> ...
0
votes
1answer
17 views

Pagination link problem when reaching the second page

I've an issue with the pagination function in WordPress. Although the anchor text is correct, when I hit the URL for some reasons WP changes it from www.site.com/page?page=2 to www.site.com/page/2 ...
0
votes
0answers
20 views

Multiple post types on a grid (every nth post must be a specific post type)

I have a grid where I display multiple posts types. I need to lay out the grid making sure that I have 2 posts from one post type, followed by 4 posts from another, flowing continously thereafter. ...
0
votes
0answers
12 views

How to add a button to First and Last Page using posts_nav_link? [duplicate]

I'm using "posts_nav_link" to make the pagination of my wordpress site because this was the only way I found to include the current page / number of pages between the prev and next buttons. However ...
0
votes
1answer
36 views

Pagination on child category returns 404

Can anyone figure out why viewing pages in my child categories results in a 404, when the same $paged code works fine for my index file? This is inside of my category-15.php (it's to affect all child ...
0
votes
0answers
6 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 php file incorporates. This pagination code works great on my current server running 5.2.X but when I moved it over to another server ...
0
votes
0answers
20 views

Disable posts pagination (wp_link_pages) on mobile devices

How to disable Wordpress posts pagination on mobile devices? Right now I am using the code in functions.php: function pagination_after_post($content) { if( is_single()) { $content .= ...
0
votes
1answer
41 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
0answers
7 views

Connections plugin pagination

I am currently using the Connections plugin for WP. It supports no pagination for the directory results though. I've tried putting efforts on the code to make pagination work but I found no success ...
0
votes
0answers
21 views

Using next and previous links with a custom query

I'd like to display the next and previous page link when using a custom query. The query list pages with the same parent page (projects). The next and previous page link must link to the next and ...
0
votes
0answers
5 views

Sorting Custom Posts on Archive page with pagination

I've got custom taxonomy archive pages with a drop down list that allows users to re-order/sort the posts. It basically waits for the user to select from the drop down then uses array_merge( ...
0
votes
0answers
11 views

Posts Duplicating due to Pagination and Custom Query

I have a custom meta field named “price” and I would like my main query to order the posts from highest to lowest price. Currently I have it setup like this: <?php $paged = ...
0
votes
0answers
16 views

pagination broken because wordpress is adding index.html

in my blog, for some reason the pagination links look like this: http://www.example.com/blog/page/2/index.html and that link does not work. However this link works: ...
0
votes
0answers
16 views

URL rewriting with custom pagination

I'm using a custom query to display the results with the pagination and rewrite the URLs. The following function works fine and displays the URLs in following pattern: ...
0
votes
1answer
47 views

Pagination with wp_pagenavi not working on custom page

I am having trouble with wp_pagenavi working on the start page using a custom query. It's working well on every standard template like category.php. But not on the homepage. Here is the code: ...
0
votes
1answer
35 views

Pagination doesn't work on multiple categories

I have the following problem. In my custom menu (wp_nav_menu) I added a category. This category uses the template category.php. Now I have multiple categories that are shown on the page. My problem is ...
0
votes
0answers
9 views

Pull next article on last page of gallery pagination

I am using ByREV Gallery Pagination Plugin found here: https://wordpress.org/plugins/byrev-gallery-pagination-for-wordpress/ I am attempting to redirect the user once they reach the last page of ...
0
votes
3answers
104 views

Display posts from the same category using next/previous post link

I am using this code, but once I click on the next post/previous post link, I am redirected to the next post/ previous post of the different category previous_post_link('%link', 'Prev post in ...
0
votes
1answer
23 views

the paged param is allways 0

I am listing a custom post_type called ad using get_posts wich works fine, Problem that I have is that I am not able to read the paged param, wich I need in order to enable pagination, The thing is ...
0
votes
0answers
24 views

Excluding certain post status's from pagination

If a user is logged in and browsing through archives, the current pagination function factors in posts that aren't yet published which can result in page numbers leading to 404 pages. How can I get ...
0
votes
1answer
38 views

Different page template for paginated content?

Sorry for the basic question, but I can't track down a solution (or maybe it's just hard to search for). I'm creating my own infinite scroll system for a wordpress site I'm working on. For ease of ...
0
votes
1answer
66 views

Pagination 404s on custom query

The basic issue is that every paginated page for my blog is going to a 404 page. /page/2/, /page/3/, etc. It used to be working fine, but is not now. I think maybe the change to 3.9 did it. Here are ...
0
votes
0answers
22 views

Pagination for two different post types on a same (category) page

First of all, I have searched the web as well as this site to get an answer, but couldn't find any. In theory, this would do what I want to do: How to fix pagination for custom loops? but I couldn't ...
0
votes
1answer
20 views

Post of a specific category - not to be seen in paging previous/next post

i have a specific post category, eg. id=x which is not shown in category list. These posts are password protected and should be visible only to those provided with the link. However current version ...
0
votes
2answers
117 views

Pagination not working on Custom Page Template

I searched a lot on this but I can't figure out why my code is not working. I published a page with slug "blog" that uses a custom built template "page-blog.php" that I build from editing the ...
0
votes
1answer
25 views

next page with custom post

I want to be able to show the older entries for my custom post but I cant get it to work. The problem is that it won't display the next and previous links. I have also tried with ...
0
votes
0answers
14 views

A pagination-sort-of-thing on single.php view for the custom post type

First, a quick demonstration of what I need to achieve: It would work similarly to <?php previous_post(); ?> and <?php next_post(); ?>, but also include an actual "reel" indexing all ...
0
votes
1answer
19 views

Previous/Next Link by Meta Value in CPT

I'm using the following code to paginate between custom post types and it doesn't seem to be using the meta_key or meta_value_num and I can't figure out why. The CPT is set-up to have hierarchal => ...
0
votes
0answers
25 views

WP_Query to get all posts with specified category in priority

Now I have a query to get all posts in the specific category featured. $today = date('Y-m-d'); $args = array( 'post_type' => 'event', 'event-categories' => 'featured', ...
0
votes
1answer
40 views

Add wp-link-pages to post

I am trying to add wp-link-pages function to my post where I have images split into many pages in that single post. I already have next and prev button whose functionality is written javascript. I ...
0
votes
0answers
20 views

Transfering static site to wordpress and retaining category by month paginations

Firstly apologies for the long post. I have a project in the works to transfer a static html new site into a cms. I've chosen wordpress, because it seems to be the easiest to maintain and manage from ...
0
votes
1answer
41 views

Pagination error Wordpress multiple loop

I have multiple loops using wp_query() in WordPress. I want to show the posts from first loop first (post per page=10), and if there are no posts from first loop show, then show the second loop. For ...
0
votes
2answers
55 views

Display single most recent post in category on every page of category archive

I am trying to display a single "featured post" in the archive.php template using a custom query. This featured post should be the most recent post in that category or tag. I'm using pagination for ...
0
votes
2answers
50 views

Add next and previous post links on pages like category, tags or archive pages

I am trying to find a solution for getting next pages for category or tag page in WordPress, tried with next_posts_link and previous_posts_link in these pages, but it's not working. Same functions ...
0
votes
0answers
13 views

Pagination not working for cpt [duplicate]

I'm using this script to catch posts from a custom post type $paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1; $args = array( 'post_status' => array('publish', 'future'), ...
0
votes
2answers
41 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
0answers
40 views

Pagination on static Posts page

I'm having an issue with pagination on the static blog page. Under Settings > Reading, "Posts page" is set to a static page. "Blog pages show at most" is set to 10 posts. The first ten posts show up ...
1
vote
2answers
40 views

How can I paginate this?

Been trying to use the pagination functions in wordpress with this code <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array( 'post_status' => 'pending', ...
0
votes
0answers
59 views

WordPress multisite custom query pagination issue

I have a site with a query to grab by a particular category. The current site is also running a multisite system. Before upgrading to 3.9 this query worked fine, but after updating to wp 3.9 & ...
-1
votes
1answer
30 views

How to cache wp_query with pagination using transients?

I have seen examples where there is a fix number of posts to be queried; however, I cant find an example when using pagination. I am trying to figure out how to use transients to cache a WP_Query ...
0
votes
0answers
38 views

Wordpress posts pagination with rand and meta_value

I have posts that have a meta_key (is_premium) that owns "Yes" or "No" values. I want to show pagination with random post but premium first. It's from several days i'm looking around and read really ...
0
votes
0answers
15 views

Post Pagination Titles

what I'm trying to do is set a different title for each page of the post pagination. So for example example.com/post-title/ title in the header is "Post Title" example.com/post-title/2/ title in ...
0
votes
0answers
49 views

Pagination with WP_Query not working

I have a custom page template on my site, with a WP_Query pulling in a list of posts. I'd like to implement pagination but just can't seem to get it right. Here's the code I'm using blelow, which ...
0
votes
0answers
24 views

wordpress paginate, link to the right page

I have posts that I paginate, instead of showing them on their single post page I would like to show them on the archive page. I've built my own archive-page with custom functions. I just added ...
1
vote
0answers
50 views

Custom Theme With Custom Loops

There are so many different questions on how to make pages show page numbers at the bottom but I can't seem to use the concepts explained in those to solve my own problem. I know some PHP and I've ...
0
votes
0answers
9 views

Pagination problem: query not remembered on page 2, 3, [duplicate]

I read numerous question about pagination here but still couldn't find a way to make mine work. At first, the total number of pages in the pagination element is displayed correctly, and there's one ...
0
votes
1answer
49 views

Get URL of current post but not the page number

Instead of using a plugin, I am manually adding buttons into my template file, like so: <div class="fb-like" data-href="<?php get_permalink() ?>" data-width="100" data-layout="button_count" ...
0
votes
1answer
82 views

Post Pagination Modifications (wp_link_pages)

I'm looking to modify how Wordpress is showing the pages of my posts. What I currently have is a previous and next page link at the bottom of the post with the following code: <?php wp_link_pages( ...
0
votes
0answers
55 views

Pagination working locally but not on live site

I have a loop on my single.php page like this:- <?php if (have_posts()) : ?> <?php $paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1; ?> <?php $this_post = ...