Tagged Questions
-1
votes
1answer
8 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
0answers
44 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 ...
0
votes
0answers
27 views
The offset option breaks the pagination
I have a problem with a website of mine, I was hoping you can help me.
I added the offset option to ignore the first couple of posts in the main loop. It does its job, but the navigation got broken. ...
0
votes
1answer
85 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
11 views
Pagination doesn't work using custom query (GET), WP redirects to paged url [duplicate]
I am using the Better pagination via: http://sltaylor.co.uk/blog/better-wordpress-pagination/ and for some reason the pagination url gets redirected by Wordpress.
The pagination query should be:
...
0
votes
0answers
18 views
Infinity Scrolling: How to query a fixed number days worth of posts instead of a fixed number of posts?
How would I go about querying a days worth of posts in one category rather than a fixed number of posts for use with Infinity Scrolling plugin? Each day I don't post a consistent amount of posts so ...
0
votes
1answer
96 views
How do I sort multiples pages?
I want to use a dropdown to sort a list of posts in WordPress. The results will display on multiple pages. So how do I pass the query on to the second, third, fourth, etc. pages?
Here's an example of ...
1
vote
0answers
70 views
category pagination got broken suddenly
i need some help here please!
The pagination just stopped working suddenly with the default post type and default wp query, with plugin "wp-paginate" or even with next/prev arrows!
It echo 404 error ...
0
votes
1answer
103 views
Pagination in wp query with transient api
I have intergrated wordpress transient system with w3 total cache. Now i can`t to do pagination for this query.
<?php
$paged1 = ...
0
votes
1answer
108 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 ...
5
votes
5answers
692 views
How can I make wp-pagenavi work on a custom query built upon a form submission?
I've also posted this on the wordpress support forums, for scribu's wp-pagenavi plugin:
http://wordpress.org/support/topic/plugin-wp-pagenavi-custom-query-form-submit-part-2?replies=1
My situation:
...
1
vote
3answers
1k views
Custom Post Types, Page Templates and Pagination. Why do I get a 404 Error?
I have spent hours today on a maddening issue I was having with displaying a custom post type. Everything displayed beautifully, except the pagination simply would not work properly.
I have a ...
2
votes
1answer
182 views
How can I get all posts data from within a paginated search result?
Let's say I'm doing a search on my site, and get 50 posts as a result. The pagination is set to 10 posts per page, so I have 5 pages of results.
When I'm on the first page of results, if I inspect ...
2
votes
1answer
1k views
WordPress Paginate $wpdb->get_results
Due to a complex multisite config, I have a query which combines the posts from two blogs and I would like to paginate the results. I am grateful for any help. I have posted my query.
...
0
votes
1answer
405 views
Can I paginate this get_attachment query?
Yeah, basically I want to be able to show 15 images attached to a certain page and have pagination when the page has more than 15 images.
I'm not very well versed on this kind of query so I'm a bit ...
2
votes
2answers
695 views
add spans and characters into paginate_links
I am using paginate_links on my custom page query.
What I have already works sweet and this is the code I have so far...
<?php
global $wp_query;
$big = 999999999; // need an unlikely ...
0
votes
1answer
313 views
paginate_links on custom query in admin - 'sufficient permissions' error
I have created a page in my admin with this custom query:
$rows = $wpdb->get_results("SELECT * FROM ej_feedback ORDER BY createdtime ASC");
I have made it successfully paginate as required in ...
0
votes
1answer
503 views
pagination in author.php template returns 404 error
Hi to the community!!!
I need some help with pagination in author.php template.
I have pagination working in all my loops except in authors.php that i get a 404 error.
In my settings/reading i have ...
1
vote
1answer
391 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) ...
1
vote
2answers
832 views
Next & Previous (Pagination in this case) Not Appearing
I am using a custom page template for my portfolio. The code is calling the correct number of posts per page but for some reason the pagination links won't show up :-S
My query
<?php
$loop ...
1
vote
1answer
694 views
Using ajax with paging and a custom sub-query
I have a page that uses three queries to retrieve a variety of content. One of those queries grabs posts that are related to the topic of the page. Since these posts can be of all sorts and related ...
1
vote
1answer
1k views
Wordpress 3.2 query_posts and pagination, permalinks issue
My question is not new but it just does not work with all found solutions in my case.
I am trying to display recent posts on single post using custom query_posts loop. The permalinks structure must ...
0
votes
1answer
1k views
How to get category/tag in URL for Pagination links?
I have a custom pagination function in functions.php. If I'm at the URL: http://mysite.com/tag/dogs, the Next link currently just contains /page/2.
How can I make it so it will look like ...
0
votes
1answer
89 views
Number of posts in the archive
How do I show 10 posts on the first page of the archive, and 20 on others (>1)?
My custom post type name is "apartments".
Cheers!
0
votes
1answer
436 views
Wordpress: paginating array using a foreach
I currently grab an array of user data from a query. I then use a foreach to loop through them and apply styles and divs to output them to the page. This all works great but i would like to paginate ...
0
votes
1answer
995 views
Custom Permalinks Break Search Pagination
So I'm having a weird issue that I've never seen.
I have a search.php set up like this:
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts($query_string . '&paged=' . ...
10
votes
3answers
8k views
Pagination not working with custom loop
I've got a custom loop that I'm using to display some Real Estate listings that will be available within 60 days. I'm calling it with the following function:
<?php
$sixtydays = date('Y/m/d', ...