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

learn more… | top users | synonyms (1)

0
votes
1answer
125 views

How to append a query string to pagination?

I would like to append 2 variables from page 2 onwards in my loop. This is my normal category page www.example.com/category/news/ This is what I would like on pages: 2, 3, 4, 5 etc ...
0
votes
1answer
481 views

Pagination on custom post type not working if permalinks set to rewrite url

When rewriting the url like this: .../%postname%/ This is the relevant part of my post type registration arguments: 'rewrite' => array( 'slug' => 'haendler', 'with_front' => false ) My ...
-1
votes
1answer
24 views

repeating posts on 2nd page to posts

I am having an issue where I wanted to strip out all categories but one from the homepage so I added the following to the loop: query_posts('cat=2'); However now the issue is that page one of the ...
0
votes
1answer
162 views

Wordpress Numeric Pagination with Query String [duplicate]

So I have a dynamic loop which is affected by a query sting in the URL.. For example I have 3 categories and when they click the category it just adds a query to the URL: <a ...
1
vote
0answers
177 views

multiple loops with pagination on the same page

I'm searching the web for this answer for three weeks now. Tried many things but nothing seems to work as how it should work. There must be a kind of trick what probably won't make sense to anybody ...
1
vote
1answer
63 views

No content found on page 2 of pagination with 1 post per page

This loop (used on a taxonomy-term archive page) is not paginating correctly. The older/newer links for page 2 are there, but when I click on older, it returns "no content found" (when what I expected ...
0
votes
0answers
51 views

Can't get correct pagination links on blog single page

I am new to wordpress but I am going through something unusual here. The blog I am designing is something a little different. Let's say there is just a blog index and single posts. I have designed ...
0
votes
2answers
83 views

Pagination shows same contents all pages

Here is my loop $my_query = new WP_Query(array( 'cat' => -399, 'posts_per_page' => 6, 'offset' => 5, 'paged' => ...
0
votes
0answers
72 views

Learning rewrite rules and custom permalinks. Paging not working

I am just starting to learn rewrite rules and custom wordpress permalinks. I have made a custom endpoint called autor with the following code: function my_query_vars($vars) { $vars[] = "autor"; ...
0
votes
2answers
115 views

How can this multiple loop have pagination as described?

In the paste below is the code for the template running the CPT archive page at http://www.m.angiemeekerdesigns.com/totd Everything about the page is working as expected except the pagination. What ...
0
votes
0answers
24 views

wordpress pagination problem with page templates

just now i found that pagination depends on permalink structure.I am using wp 3.8 version. For pagination in page template I used <?php $paged = (get_query_var('paged')) ? get_query_var('paged') ...
0
votes
0answers
122 views

AJAX Pagination not working

I have integrated an AJAX Pagination in my site sidebar, where I'm showing custom post type. Here is my code: <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $new_query = ...
0
votes
0answers
144 views

Custom post type pagination, single page issue

After having problems getting pagination working at all for custom post types, I've read that the custom post type name and the page name cannot be the same. So I set out from scratch: I've created ...
1
vote
1answer
215 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
51 views

How to group posts by months and add pagination?

I want to group by posts by months. Like this: January 2014 Post name Post name December 2013 Post name November 2013 Post name Post name Post name Post name I need to have 10 months per page, ...
0
votes
1answer
36 views

Pagination and Related Posts

Is it possible to use pagination with the following related posts code, which is embed in single.php of my theme. <?php // for use in the loop, list 5 post titles related to first tag on ...
0
votes
1answer
22 views

Pagination for custom query won't let me back on page 1

I have a custom query … <?php /** * The loop that displays the posts. */ ?> <ul class="post-items"> <?php $args = array( 'post_type' => array('post', 'wr_raffle'), ...
1
vote
1answer
44 views

wordpress is converting ?page=2 into /2

with this code paginate_links( array( 'base' => @add_query_arg('page', '%#%'), 'format' => '?page=%#%&a='.$a, ) ) looks output like this <a class="page-numbers" ...
0
votes
0answers
34 views

Pagination for a Custom Taxonomy

Here's my problem: I have a Custom Post Type called Projects. In it's archive (archive-projects.php) I display a list of Clients (it's a custom taxonomy for this Projects). This works great, you can ...
0
votes
0answers
14 views

WordPress creating 404s under blog tags

Webmaster Tools is pulling up 404s under by blog tags. I go to a blog tag, scroll all the way down and find an "older posts" button. I click the button and the new page is a 404 because there is not ...
0
votes
1answer
77 views

Custom post type (with parent-child relationship) singular page with pagination

I'm building a site that has two custom post types: Auction and Lot. Lots are connected to an Auction via the post_parent field. The single-auction.php template show 9 lots of an auction using the ...
0
votes
0answers
20 views

Pagination problem with custom taxonomies [duplicate]

My previous developer made me a theme but he does not work for me anymore. He made pagination but it does not work. He used GET parameters as search terms which search through custom taxonomies. At ...
0
votes
2answers
661 views

Pagination Custom post type

I have a custom post type called 'doel'. I have made a page template to display all the doel items In this page template I loop the 'doel' post type and after 6 of them, I want to have a pagination. ...
-1
votes
1answer
52 views

paged query leads to 404? [duplicate]

As soon as I click the "2" on my pagination links I get a 404-error. The url correctly changes to http://mysite.com/?paged=2 <?php /** * The loop that displays the posts. */ ?> <ul ...
0
votes
0answers
12 views

How do I create pagination? [duplicate]

I've got a site with a static front page and another page for posts. On the posts page I'm using paginate_links() to generate pagination. However, it isn't producing output. Dumping the output as a ...
0
votes
0answers
35 views

How can create a pagination fpr my CPT Template

I create a template for my book cpt archiv. How can creat a Pagination Page prev 1 2 3 next to the E-Paper Archiv Template? Twenty Ten Template <?PHP /* Template Name: ...
0
votes
0answers
34 views

Make a paginated article (for easier reading on mobile)

I'm looking for some plugin, or perhaps more likely some Javascript package that will make me do something like mobil.idg.se on a phone (select a story, then swipe sideways to read the next part of ...
0
votes
0answers
84 views

URL Rewrite breaks pagination on some permalink structures

i created some rewrite rules for my profile page with multiple tabs. Member and tab names are passed via url to the page template. Everything works fine except for the pagination. When a permalink ...
0
votes
0answers
79 views

Comments orderby comment date not working

I have a template to get the comment replies to a user and display it on a static page. It works reasonably well in so far as the correct comments are displayed but whatever I try I can't get the ...
0
votes
1answer
357 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 ...
0
votes
0answers
128 views

Infinite Scroll Masonry triggered by pagination not working

I'm triggering more posts in my Masonry layout when a user hits the bottom of the page. The JS sends a count each time this happens and I'm using that as my 'paged' argument. However I'm getting ...
0
votes
1answer
63 views

date.php shows all posts. how to fix it?

I am using the following function for category.php. It's working fine. function cat_page_list(){ /* post : returns the post for category page */ $paged = (get_query_var('paged')) ? ...
0
votes
1answer
60 views

Switched from query_posts to wp_query, pagination no longer working

Switching a loop on a static front page from query_posts to wp_query. All is working other than the pagination link (which used to work). Example can be seen live here in "work" section. Here is my ...
0
votes
1answer
59 views

Pagination always adding “Next” link when results come from Custom Post Type WP_query

Or at least that's how it seems. I have a page to which I pass several arguments to query post_meta for a custom field and I always get an extra "Next" link no matter the number of posts. If querying ...
0
votes
2answers
398 views

Stop loading more posts if none left AJAX

I'm using the following JavaScript to load more pages in #work_items (see live at http://mtthwbsh.com): jQuery(document).ready(function($){ $('.older a').live('click', function(e) { ...
0
votes
0answers
47 views

Page/2 in my custom page template throws 404 error

I have a form on that page in where I have used the solution provided at Advanced search form with filters for custom taxonomies and custom fields, that works fine and search results appear OK, but ...
0
votes
0answers
246 views

WP Page Navi Not Working in my Custom Query - Events Page Only

I'm using the same custom wpquery format in my NEWS page. And my pagination uses WP PAGE NAVI plugin. It does work on my NEWS PAGE but doesn't work on my EVENTS PAGE. Plugins used: 1. WP PAGE NAVI ...
0
votes
2answers
36 views

Unable to paginate a custom page query

I have this code on a page called Categories. <?php /* Template Name: Categories */ get_header(); ?> <section id="primary" class="content-area"> <main id="main" ...
0
votes
1answer
94 views

Pagination with Custom Post Type

I created a custom post type named "noticias" and duplicated archive.php with name archive-noticias.php. Everything works but when pagination actived, don't work page 2, 3.... I use plugin "T5 Page ...
0
votes
1answer
489 views

Jetpack Infinite scroll conflicting with theme's pre_get_posts custom posts_per_page

I have the current function on my theme using pre_get_posts, currently right at the bottom of my theme's functions.php file: function mytheme_portfolio_archive_pages( $query ) { if ( is_admin() ...
0
votes
0answers
27 views

Custom post Type Pagination help

i'm wondering how to add pagination like 1,2,3.. on my custom posts listing page. Below is my custom post template which lists all my custom posts, <?php while ( $loop->have_posts() ) : ...
-1
votes
1answer
134 views

Pagination with Custom Post Type not working on index.php: I get a 404

I've read many posts about the same problem but none seems to work for me. I have a query for a custom post into the index.php. When I go to page 2 I get a 404 error. The same code works like a ...
0
votes
1answer
154 views

Jetpack plugin - 'posts_per_page' not overriding 'Blog pages show at most' option, also different values for different post types?

I have Jetpack installed and I have got Infinite Scroll working on my theme but posts_per_page is having no effect, the number of posts initially shown and loaded is my "Blogs show at most" number in ...
1
vote
2answers
311 views

wordpress Static Page pagination

Im Using a post query in wordpress BUT the Pagination is not working, i don't know whats the problem BUT here is my code and i guess it's correct and no problem with it it shows that there is pages ...
0
votes
2answers
267 views

Custom wp_query pagination - next_posts_link() or wp_pagenavi() always empty

I'm aware this is a topic discussed to death, but I have read through many solutions and can't understand why my pagination simply isn't working. I have a very simple custom wp_query: $current_page ...
0
votes
1answer
733 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
164 views

How to customize wp_link_pages()

Does anyone know how to customize wp_link_pages() so that <!--nextpage--> will show like "<< previous" and "next >>" links instead of "Pages: 1 2 3 "? Note:- i used ...
-1
votes
1answer
36 views

Limitless amount of posts in custom archive page

I want to get rid of pagination completely on my custom archive, I want everything on 1 page. How can I do this? Currently I'm getting my posts with: <?php query_posts($query_string . ...
0
votes
0answers
78 views

Custom query, static page pagination and canonical

We have a custom query used in a template file, which is a page builder, with pagination that query latest posts. The problem is with Yoast SEO plugin and it's canonical URLs. When we navigate to any ...
0
votes
2answers
1k 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 ...