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

learn more… | top users | synonyms (1)

14
votes
1answer
383 views

Why do you need an unlikely integer in paginating?

The paginate_links Codex function reference has some sample code that's being reposted all over the net. It has a section that uses a variable called $big = 999999999; // need an unlikely integer: ...
0
votes
0answers
629 views

Archive Page Pagination not working

I am using the following template for a custom post type. The pagination does not work as you can see at http://www.xava.ie/testimonials Any hints as to why it is not working for me? <?php ...
1
vote
1answer
476 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
2answers
882 views

How does offset works on pagination? (get_results)

I followed this link and created my own custom query with pagination, But I don't really understand how the offset work. This pagination does not work well, and I'm getting zero value for offset: ...
1
vote
2answers
319 views

How to use/enable Pagination?

I'm creating a shortcode to display the list of users with a particular profile in WordPress. But I can not enable or display the pagination. I have 25 users on my site and would like to display 5 ...
0
votes
1answer
190 views

Post archive pages bringing me to a 404 page

When I try to use next_posts_link() and previous_posts_link() in my archive posts page I got a 404 error page. I'm using this permalink setting /%category%/%postname% and working well for all pages ...
0
votes
0answers
39 views

Post navigation not working [duplicate]

I'm having a strange issue on a blogpage that I'm working on. I have created an index.php page with a loop that display's only a specific category of posts. It also displays the next and previous ...
0
votes
0answers
134 views

get_query_var('paged') giving same result

I have a custom page, in that page i am using a custom select query for my search functionality. The problem is pagination not working. I used $on_page= get_query_var('paged'); for pagination. When ...
-1
votes
1answer
420 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
3answers
5k 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
1answer
2k views

Woocommerce products per page dropdown

I'm using the following code taken from here- http://designloud.com/how-to-add-products-per-page-dropdown-to-woocommerce/?showmodaldialog=1#comment-1554 to display a drop down selector so the user ...
0
votes
0answers
1k views

Classic Custom Post Types and WP-PageNavi

Has anyone made this work? I am searching for a solution for 2 days now, and it won`t work. I have... $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $updates = new WP_Query(array( '...
1
vote
1answer
1k 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 (...
0
votes
0answers
27 views

Pages half/not working.

If someone could please look at our website and have a look it'd be really appreciated. On one of our catergoires (rentals>sconces) page one works fine, but the remaining 3 dont. ive read in a couple ...
0
votes
1answer
96 views

List of filtered Events is breaking paging?

I have a list of events that are displaying in date order, with events in the past being hidden. The issue is that in total, there are 3 pages of events, but once the past events are hidden, there ...
0
votes
1answer
450 views

WP Paginate not working properly

Im creating a WP for a custom type post in a page template: <? global $paged; global $notquery; $temp = $notquery; $notquery = ...
0
votes
0answers
49 views

Display all page numbers at the same time

WordPress only shows a few page numbers at a time and I have to keep clicking on the "right" arrow to advance one page at a time. I have 31 product pages, each with many products so it takes "forever" ...
0
votes
0answers
16 views

WordPress site with custom theme, can't get pagination to update posts on page 2+ [duplicate]

I have inherited a WordPress site which has a custom theme which I have in the main been able to modify to suit the clients needs. I am having trouble, however, with the pagination of the 'category-...
2
votes
1answer
100 views

How to let crawlers search paginated comments?

With comment pagination, Google doesn't index the older pages and comments become essentially lost to searches. Is there a way to let search engines crawl paginated comments, perhaps by generating a ...
0
votes
1answer
283 views

Pagination - works on local but not live dev!

Can anyone please shed some light as to why the following to print out page numbers works on my local dev server but not on my live server? Both server are running same version of PHP. My Loop <?...
-1
votes
1answer
2k views

How to create load more button without a plugin?

I'm using Jobroller Apptheme, it will show the first 10 jobs list in the home page with pagination which allows to go next page. But I would like to create a load more button instead of normal ...
0
votes
2answers
603 views

pagination for a custom loop with multiple post types

I realize that this seems to be a common problem and I've read through a lot of the posts but it's just not making sense. I was wondering if someone could take a look at my code. What I am trying to ...
0
votes
1answer
144 views

static page with multiple loops breaks post pagination

I have a static page which runs two loops but pagination doesn't work on the second loop. The first loop shows the static content of the page The second loop shows the last 3 blog posts Pagination ...
0
votes
1answer
440 views

wordpress category.php query for featured news item, broken pagination and repeating posts

I am having a few issues with a site I am building, on the news page It has 1 featured post from the news category and then under that more news category posts, but missing out the featured news item ...
0
votes
0answers
16 views

WP-Paginate giving “Page not found” error on page 2 [duplicate]

I have pagination showing for my second page, but when I click it I get a "page not found" page instead. The url is utcommons.com and the code for the index file can be seen at http://pastebin.com/...
0
votes
1answer
595 views

Wordpress pagination on custom script

I am using WP for my RealEstate project where all properties are pulled from a custom table (wp_listing) and displayed in a custom page template (page-realestate.php). I know WordPress has built-in ...
0
votes
1answer
1k views

filter posts by meta key with pagination

Trying to filter out specific posts that have certain meta_key from the main query... problem is it doesnt work with pagination which is my issue here. Anyone knows how to solve this? $paged = (end( ...
0
votes
1answer
246 views

Query specific number of posts for each post type in specific order

This is related to this other question, I tried with get_posts, pre_get_posts, WP_Query and basically every option I could find for 2 days now, no solution yet. The full problem in hand: I have 2 ...
0
votes
1answer
121 views

Determining what post is displayed out of total posts found

On my page I've got a query that retrieves posts with specific parameters and I'm displaying one post per page with pagination. I've figured out how to get the total count of posts found by the query. ...
0
votes
2answers
3k 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
17 views

Making $paged work with WP_Query [duplicate]

I've created a page that displays posts of a certain category from a custom post type but I can not get the paging to work. I've tried to use this as a guide but I don't understand what I am doing ...
1
vote
0answers
68 views

Pagination customization

I am working to develop this type of pagination: I am taking values and displaying them on same page and my code snippet is below and couldn't make it why it is not working. <?php if ($_SERVER['...
1
vote
1answer
682 views

Pagination go to first page if i'm on last post

I have a custom post type and used get_next_post() and get_previous_post() to create a simple pagination. However i need to create a pagination loop (if that is the correct term). If i'm on the first ...
-1
votes
1answer
2k views

WooCommerce custom query and paging: Not Found error

I'm experiencing a problem with the following piece code: global $wp_query; $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $filter_args['paged'] = $paged; $filter_args['...
1
vote
1answer
55 views

Show all parts in multipage post

You can do a multipage post by using the <!--nextpage--> inside the post. The question is: How can I display the whole post (not paged) for this post.
0
votes
1answer
189 views

Paginate wp_query while utilizing post__not_in

I'm currently running a wp_query like this: <?php $the_query = new WP_Query( array( 'post_type' => 'photos', 'posts_per_page' => '2', ...
0
votes
1answer
107 views

Wordpress Pagination not displaying posts after certain page

I'm having an issue with pagination. I have a media category, using a category-media.php template. I have a custom loop with a paged variable. There are 30 posts total. Sample: $paged = (...
0
votes
1answer
99 views

<!--nextpage--> assumed as comment line

I created very simple php loop which generates image links for given number. This is the code <?php $im = stripslashes(get_option('tm_alim')); for ($i=1; $i<=im; $i++) { echo "<img alt=''...
0
votes
1answer
133 views

Paginating a list of all posts collected by category titles

I'd be really grateful if anyone has any ideas about what might be wrong with this code or, alternatively, could suggest an entirely different way of achieving the same aims. I have a site (staged, ...
4
votes
1answer
5k views

How to paginate wordpress [gallery] shortcode?

I am using wordpress gallery shortcode [gallery] I was wondering if there is anyway to paginate them without using a plugin.
1
vote
3answers
89 views

Trouble Making WP_Query paged

I'm using the query below in the index.php file as the main query, whenever I try to go to the 2nd page I get a 404 error, I tried using posts_per_page but to no avail. <?php $args = array( '...
0
votes
3answers
1k views

Error 404 on pagination on homepage

I have a blog Post home page with the following code in home.php: <div id="primary"> <div id="content" role="main"> <h2 class="page-title">Featured Products</h2> <?php $...
2
votes
1answer
2k views

Paginate Child Pages Content on Parent Page

I am using the following code to display child page content on it's parent page. The code is working great, but it currently only shows the latest two child page posts, is there any way to display all ...
1
vote
1answer
258 views

Wordpress with broken paging page 3

I am working with a blog page that uses the following query: <?php $paged = (get_query_var("paged")) ? get_query_var("paged") : 1; query_posts("category_name=blog&posts_per_page=2&...
0
votes
2answers
504 views

URL rewrite breaking pagination

I have been reading around and cannot seem to figure this out. Everything is working fine except that pagination seems to not work, I am adding a second rewrite rule, shouldn't this fix that? I can ...
0
votes
1answer
58 views

Ending Pagination loop in PHP

<div id="pagination"> <div class="prev"><?php next_posts_link('&larr;') ?></div> <div class="pages"> <?php global $wp_query; ...
2
votes
1answer
531 views

Ajax pagination works only first and third time

I'm using ajax-based pagination, heres the markup <div id="portfolio-thumbs"> <ul id="portfolio-destaque"> HERE GOES MY LOOP AND CONTENT , some LI's with thumbs and stuff ...
0
votes
1answer
232 views

Paginated WP_Query doesn't return 404's, even when posts don't exist

I'm currently building a theme for a client, and one of their requirements is endless scrolling on a "Charts" page. They want this to be paginated, and the endless scroll to load the next page below ...
0
votes
1answer
79 views

Customizing Comments on Posts

I have implemented custom code for generating comments on post page using callback function in functions.php. function MYTHEME_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?&...
5
votes
1answer
307 views

Date based URLs for custom posts and pagination

I have created a custom permalink structure for a custom post type (events) using the code below: $GLOBALS["wp"]->add_query_var("event_year"); $GLOBALS["wp"]->add_query_var("event_monthnum"); $...