Tagged Questions
0
votes
1answer
10 views
Why is my pagination showing up?
I have the following code, Assume this code spits back one post. the page displaying that post will also display pagination. Why? It shouldn't. This code only queries for posts that belong to the post ...
0
votes
1answer
27 views
Paginate pages with dynamic query
I have a wordpress page that has a series of listings and a searchbox at the top. The search allows the user to filter posts by creating a custom WP_Query object based on what they selected. I am ...
0
votes
0answers
9 views
WP_Query Pagination 'Older Posts' link. No posts after click [duplicate]
I have two posts in 'news' and have instructed this wp_query to return posts one at a time from 'news'.
The first (most recent) post gets displayed, and the pagination link displays below indicating ...
0
votes
1answer
20 views
How to inject a post within a loop
I'm trying to inject a post while the loop is running.
This post will be injected on a condition, so
if(x == j){
//inject post here
}
I see this would seem easy to do, but i have a posts_per_page ...
0
votes
1answer
25 views
Enable infinite scroll on single.php
I have a problem similar to the author of this thread: Possible to paginate on single.php?
I am trying to enable infinite scrolling on single.php. So far I successfully load an additional 1 post when ...
-1
votes
0answers
25 views
Problem with pagination on custom category template! [closed]
I am using this code for a custom category:
Here is the link to the code
And i am having problem with the pagination. What i am doing wrong into the code?
1
vote
1answer
87 views
Woocommerce custom loop to show all the products
I'm currently working on an e-commerce website and I met an problem.
My client want a page e-boutique with all the product categories displayed, followed by 3 promoted products and a button "show ...
0
votes
0answers
40 views
Marginal pagination on home.php
I'm trying too make a custom wp-theme and use a few loops in home.php. But now I can't finish home.php because of pagination. How cant I realize any type of pagination with saving that kind of ...
-1
votes
1answer
20 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
54 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
122 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
159 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
83 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
41 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
83 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
208 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
267 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
66 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
319 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
104 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
107 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
122 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
135 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
105 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
134 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
129 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
125 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
92 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
321 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
61 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
38 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
123 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
115 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
357 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
449 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
316 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
667 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
882 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
398 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
595 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
311 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
418 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
593 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
402 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
493 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
359 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 ...


