Tagged Questions
-1
votes
1answer
9 views
Multiple loop with pagination in same page
In my home page i have two <section> in which i perform two different loops on different post categories. Here the code:
<section>
<ul class="loop-article">
...
0
votes
1answer
39 views
Pagination and multiple loops
Right, so what I currently have is a page split into three using a css grid. The third column is the sidebar, The first two each have a query for posts to display, and create a nice grid of posts ...
0
votes
1answer
86 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
104 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
15 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 ...
0
votes
1answer
26 views
Pagination when using multiple loops
I've populated my index.php with various post loops and I want to be able to get pagination working. The reason for multiple loops is because I'm pulling in posts from different categories in ...
0
votes
1answer
71 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
...
0
votes
1answer
35 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 ...
1
vote
1answer
78 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 ...
0
votes
1answer
178 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();
...
2
votes
1answer
234 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
51 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);
...
-2
votes
1answer
62 views
Pagination not working properly
I have a list of posts from a category as seen here in this example. The problem is, if you scroll down to the bottom and click older, you'll see that the posts on the page have not changed at all, ...
0
votes
3answers
236 views
How to get my loop to paginate?
Below is a snippet of code that appears on one of my pages called: Featured. I created a template and then respectively created a page and activated the template in the wp-admin. However when I click ...
0
votes
1answer
96 views
Pagination for normal (standard) posts on a page with a custom loop?
probably a rather straight forward question.
my "homepage" is not the blog-page. I have a page-template named page-knowledge.php which has the following loop on it.
<?php
echo '<ul ...
3
votes
2answers
105 views
How do I prevent one of two multiple loops from repeating on a second page?
I have a page with multiple loops, but the first loop repeats on the second (or Older) page. I want to keep the formatting but stop the post from repeating.
You can see the problem here: ...
0
votes
1answer
111 views
Displaying posts limit: can't get pagination to display [duplicate]
Possible Duplicate:
Pagination not working with custom loop
I'm creating a custom page for logged in current users to view their posts. I would like to limit the number of displayed post to ...
0
votes
2answers
126 views
Pagination for two loops
I know this has been discussed before but I can't seem to make it work with any of the solution posted in other topics.
How can I make pagination to work on a loop like this:
<div ...
0
votes
1answer
100 views
Using pagination with multiple loops causes it to break
I'm have two loops on my index page. One fetches the latest posts from the 'work' category and the other fetches the latest from the 'blog' category. (see below)
I am also using a plugin called ...
0
votes
1answer
130 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 ...
0
votes
1answer
124 views
How to do paging in the loop?
I used single.php for this code:
<?php $categories = get_the_category($post->ID);
if ($categories) {
$category_ids = array();
foreach($categories as $individual_category) ...
0
votes
1answer
122 views
Pagination in custom query not working
hi im trying to output pagination without any success. below is my code in a page-products.php template
<?php $products_query = new WP_Query(array(
'post_type' => 'product',
...
0
votes
2answers
88 views
Pagination stops at page 6
The loop below works fine, apart from the fact that the pagination will always stop on page 6. No matter what arguments i specify, it will never show more than 6 pages.
Does anyone know why?
...
-1
votes
1answer
299 views
posts_nav_link() not working on index.php
I have a problem with the posts_nav_link() function on index.php. It works but it's not displaying the older posts. When someone clicks on the "next page" link the same posts from the fist page are ...
0
votes
2answers
59 views
Paged homepage - requirements?
I've got the following loop in index.php file:
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$post_per_page = 30;
$do_not_show_stickies = 1;
$args=array(
'post_type' => ...
0
votes
1answer
37 views
Fourth page of custom post type archive page does not exist
I recently developed a custom post type for my company's blog, so that we could have a separate press area. In the archive-presse.php page I make a query, thus :
$paged = (get_query_var('paged')) ? ...
0
votes
1answer
117 views
Home page loop with pagination problem
I used a loop to display posts from specific categories, then add the code for WP_Paginate plugin under that loop ... below my posts I see pagination links from 1 --> 5 , however when I press page 2 ...
0
votes
1answer
111 views
Conditional category query breaking?
In my loop.php (see below) I basically have a condition where if the page is not paginated (i.e. if the URL does not look something like this: example.com/page/2) then display 2 posts with a category ...
0
votes
2answers
350 views
How can I use the WordPress Loop and Pagination in multiple instances but different scenarios throughout my site?
I am using the Starker Theme as a foundation to build my custom WordPress theme. The Starker Theme comes with a loop.php file for setting up the main loop. I decided to use the loop.php file to ...
0
votes
1answer
423 views
How do I get my loop.php to properly paginate?
I am using the Starkers theme as a foundation to build my theme and I am having difficulty getting my loop.php to paginate posts properly. When I click the "Next" or "Previous" post pagination button, ...
1
vote
1answer
308 views
Use two different post_per_page limits with infinite scroll
I have one loop on my homepage that I use infinite scroll to paginate. To keep the load time of the homepage down, I want to load a smaller initial amount than when the infinite scroll is triggered ...
0
votes
1answer
659 views
Multiple loops on index page with sticky post and pagination
First post on this site. Hope to get some help from you guys. Probably a simple answer for you experts.
I have two category's (news & work). I want to show on my index page (wordpress ...
1
vote
1answer
2k views
Multiple WP_Query loops with Pagination
There are a few other questions about this (and WP_Query pagination seems to be a huge question for a lot of people) so I'm trying to narrow down exactly how to make it function.
I'm able to create a ...
1
vote
1answer
841 views
pagination not working for category.php (custom post types in categories)
it works everywhere on my site but it isnt working in category.php. When i click page to it goes to... domain.com/category/cat-slug/page/2
by the way this is showing custom post types within certain ...
0
votes
0answers
377 views
How do i paginate a get_posts() request inside another page loop (Paginating childpages)
The heading says allot, so ill repeat it here "How do i paginate a get_posts() request inside another page loop?" I'm using a page to display child-pages and i need to paginate them.
Edit: Should i ...
0
votes
1answer
575 views
Pagination in author, category, archive and tags pages does not work
I have implemented a no-plugin pagination taken from here: http://www.kriesi.at/archives/how-to-build-a-wordpress-post-pagination-without-plugin
It's works perfecto un normal loop but when I try to ...
0
votes
3answers
298 views
Hide featured post on second page
I have a index.php with a featured post and a number of other posts and the standard wp_pagenavi at the bottom.
I'm using the 2 loops from the wordpress codex like this:
<?php $my_query = new ...
1
vote
1answer
406 views
posts_per_page & pagination conflict
I have a custom query to display my custom post type. posts_per_page set to '5'. In admin post per page set to '10' (settings => Reading => Blog pages show at most 10 posts)
My template lists 5 posts ...
2
votes
2answers
563 views
Broken pagination
Well I'm here again with almost the same problem as I had in this post three weeks ago, but let me explain what has happened since then:
I was originally using one loop to display the most recent ...
0
votes
1answer
376 views
Blog pagination WITHOUT using max_num_pages
WP 3.2.1
I'm in a bit of a bind. I have to create some pagination for the blog, but I believe I'm running into the bug described here, and I don't have authorization to fiddle with the server's ...
0
votes
1answer
479 views
Page with Multiple Loops Breaking Pagination
I made a customized index.php so that I have multiple loops on the same page so that the content can be displayed differently. I got this to work, however the pagination is broken. Despite several ...
1
vote
2answers
343 views
Pagination on 2nd loop
OK, I am creating a business listing site that is using a custom taxonomy for the listing "type". I need to display two loops on the taxonomy archive page, one for "sponsored" listings and one for ...
2
votes
2answers
280 views
How WordPress converts URL to $query_string
My home.php shows a list of (N) posts and << Previous & Next >> links. When clicked, I want to fetch previous/next list of (N) posts using Ajax. This is: I do NOT want to load the entire ...
1
vote
1answer
261 views
Paginated HTML Sitemap
I've got to the point where I needed to break down my HTML Sitemap into several pages. It contained 2000+ links.
The big layout was showing all post titles under category names on one page. I decided ...
0
votes
2answers
722 views
Page not found yet the posts are listed?
OK, seriously. I have a really modified index.php.
The result: after the second paginated page, the page returns Not found and 404, while the posts are shown already.
Can anybody tell me, what it ...
0
votes
1answer
79 views
Broken pagination, need help figuring out why!
I just tried slapping together a poor-man's "featured post" section with this exact code out of my index.php:
<div id="post-wrapper">
<?php if (is_home() && !is_paged()) : ?>
...
0
votes
1answer
185 views
Custom Page Template and Category Exclusion
I have a blog (bernsteinbear.com) that uses the TwentyEleven theme. I'm trying to make a custom page template for the front page (a blog page) that gets all the posts except in the "Comic" category. I ...
0
votes
1answer
249 views
Custom Post Type, Pagination and 404s?
Head is getting melted with this pagination crap in WordPress!
What am I doing wrong hereā¦
Test site
http://www.clients.eirestudio.net/savvas/reviews/
Code
<?php $paged = ...
1
vote
1answer
396 views
Is it possible to have pagination with an offset loop?
I am developing a blog page that requires 3 different post styles (Ie; one full page width with featured image and content, one full page width without featured image and the rest are half page width) ...
0
votes
1answer
158 views
The Pagination doesn't work
i have made a new WordPress Theme and ive done .. but i have one problem. I can't get the pagination work. I use the "wp-paginate" plugin and i have put the folloing code on my index.php
<?php ...
