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

learn more… | top users | synonyms (1)

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
99 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
280 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
599 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
438 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
585 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
118 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
16 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
673 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
54 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
186 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
105 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
131 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
4k 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
1k 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
257 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
500 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
527 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
231 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
78 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"); $...
0
votes
2answers
2k 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(); $wp_query->query('posts_per_page='....
2
votes
3answers
4k views

Strange paginate_links behavior. First page link is always whatever page I'm on, all other links are correct

I'm using the following code to generate some pagination: $wp_query = new WP_Query(); $wp_query->query('posts_per_page=5'.'&paged='.$paged); $big = 999999999; echo '<div class="pagination"...
1
vote
3answers
842 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 /tags/...
0
votes
1answer
3k views

Paginate WordPress Category Pages

I am using the following query on my category.php template: <?php $paged = (get_query_var("paged")) ? get_query_var("paged") : 1; query_posts("posts_per_page=2&paged=".$paged); ?> ...
2
votes
1answer
2k views

Pagination with custom post types results in 404 issues

I've a very simple index.php: <div id="content"> <? get_template_part('content', get_post_format()) ?> </div> <div id="pagination"> <? previous_posts_link() ?> &...
0
votes
1answer
725 views

pagination does not work with query_posts. Help! [duplicate]

I made ​​a separate page template (added sidebar), this page contains all the posts. Pagination works! But, if this page set as the home page, pagination is not working! Please help find solutions ...
1
vote
0answers
395 views

Pagination w/Static Front Page

I'm trying to add pagination to my frontpage. It's currently set to Settings --> Reading --> Static Page --> Frontpage: home I'm using a custom template for the homepage. I have my template-home....
1
vote
0answers
104 views

How to make the link to the category for a post go to corresponding page number in archive?

For instance, I am at http://url.com/single-post and in the post there is a link to the category that navigates to http://url.com/category/page/3/ which is the corresponding archive page that contains ...
0
votes
1answer
493 views

How to reverse pagination for archive pages?

I would like to reverse the pagination order for the category archives and am wondering if anyone can offer any help. Basically what I am looking for is pagination to start with the oldest post first,...
0
votes
1answer
990 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 ...
1
vote
1answer
170 views

Best Practice For Querying Grandchildren?

Objective: Query and loop through a page's third-level "grandchildren" in a way that allows pagination. Here's the code that I'm using (pagination excluded): // Get the ID of the first ...
1
vote
1answer
486 views

Pagination 404 errors for author posts query on author.php

I'm trying to query all posts by an author and paginate them on the author.php page. I've tried messing with the WP default blogs per page settings and that doesn't help. I've looked at other posts ...
0
votes
1answer
59 views

Loop being strainge

So I hacked together a function that does the following: protected function _query_post($query){ $original = $this->_wp_query; $wp_query = new WP_Query($query); if($wp_query->...
2
votes
2answers
844 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= ...
9
votes
6answers
23k views

Get the current page URL (including pagination)

Is there a WP function to automatically get the correct URL of the current page? Meaning if I just opened a single post, the function returns the same as get_permalink(), but if I'm on a paginated ...
0
votes
2answers
1k views

Pagination for custom post type not working [duplicate]

Possible Duplicate: Pagination not working with custom loop So I have a post type called portfolio, but I can't get it to paginate. I'd also like it to paginate on single pages so each item ...
1
vote
2answers
2k views

Wordpress triggers 404 on page 2 for custom search query

I modified my index.php to check if the search query is an author and if yes, display articles of that author. That is working fine but as soon as you go to page 2 of the results, wordpress triggers ...