The paged tag has no wiki summary.
0
votes
1answer
54 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
80 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
46 views
Archive template combined with post slider and regular posts
I am trying to find the best and easiest way of modifying my archive.php template to contain slider on top which slides the 4 first posts and the rest (6) will be displayed beneath as a regular posts.
...
0
votes
0answers
15 views
Have custom number of blog posts on homepage with working pagination [duplicate]
Possible Duplicate:
How to show a single post on the front page but have normal paging?
My question is similar to How to show a single post on the front page but have normal paging?. The ...
3
votes
2answers
220 views
Why does pagination always break when used on any form of a home page?
Why does WP pagination break when used on the homepage?
If you take the code below and use it in a page template it works perfectly (make sure you have 3 or more posts). However, as soon as you use ...
0
votes
2answers
87 views
Why won't my paged wp_query work? [duplicate]
Possible Duplicate:
Pagination not working with custom loop
Any ideas why this paged wp_query doesn't seem to want to work?
I've tried replacing the pt_pagination function with the default ...
0
votes
2answers
37 views
send user to first page of results when reposting to page?
I have a custom template with a drop-down that filters posts by category. I do it by making the form post to the page itself and then catching the argument and using it in a query (see code below).
...
0
votes
2answers
63 views
Does it make sense to assign functions like is_paged() to a variable rather than using it multiple times?
Actually a simple question, but I need to be sure that assigning a variable for the result of a function can help to increase the speed of a site e.g.
The function: if is_paged(){ $paged = 1; }
The ...
0
votes
2answers
327 views
Custom posts per page does not work with pagination
I have one page in my template where I would like to set a custom posts_per_page.
Here is the code I have used:
<?php
global $query_string;
query_posts($query_string . '&posts_per_page=4');
...
2
votes
3answers
235 views
Customized first post techniques
There doesn't seem to be a standard technique for differentiating first/top posts. After looking around, I found this method:
$current_query = new ...
1
vote
2answers
414 views
Customising rewrite rules for CPT single post URL to work as paged URL
I've got a CPT called Service registered as following:
$args = array(
'public' => true,
'publicly_queryable' => true,
'show_ui' => true,
'has_archive' => false,
...
0
votes
3answers
409 views
Using next/previous_posts_link with customised search
I have a few different searches on my website:
"Species profiles" (custom post type search)
"Glossary" (custom post type search)
Generic, site-wide search
Currently I'm using search.php; ...
0
votes
1answer
150 views
$paged always 0 on plugin's custom page
I'm making a plugin that loads a specific template depending on a certain query var being passed, in effect creating a page for the plugin on the front end, as outlined in this post:
Create a page ...
0
votes
2answers
1k views
Having a variable based on $post_count increase when i move to the next page of results
I couldn't figure out the best way to write the title, so first of all I hope you understood what i was trying to get across. I have a snippet of code on my template page that fires after the wp_query ...
0
votes
1answer
89 views
Differnt page template for page 2 of blog feed
Is there a way I can use one page template (A custom page template for example) for the first page of my blog and then another template (Index.php for example) for page 2, 3, 4, etc.?
1
vote
3answers
923 views
How to determine if I'm on the first page of pagination?
How do I determine if I'm on the very first page of pagination? I'm using WP_Pagenavi. I want to run a function only on the first page of the pagination. I checked the query_var 'paged', it's set to 0 ...
0
votes
1answer
369 views
Difference between $numpages & $max_page on archive pages
After taking a look at global $max_page; and global $numpages; on category-archive pages (is_archive() || $GLOBALS['wp_query']->is_archive returning true), I see the following return values:
...
1
vote
0answers
105 views
Taxonomy Pagination [closed]
I have a custom post_type => 'products' wich has a taxonomy => 'product_type' and I have a page that uses a template to display all posts by post_type => 'products'.
Works just fine when I ...
1
vote
3answers
3k views
get_query_var( 'paged' ) not working outside of homepage
Twenty Eleven Theme...
On the home page, I have successfully filtered the loop to display just "Featured" posts with pagination functioning properly through nav links. I'm trying to display posts ...
0
votes
2answers
434 views
$wp_query->current_post restarts from zero on paged pages
I know how to keep track on the 'index' of the current post when running the loop using
$wp_query->current_post
Bu this restarts the count from zero on subsequent paged pages. So if I have 20 ...
0
votes
2answers
518 views
Get current page number of splitted article
I am trying to find a way to get the current page number of an article that has been splitted into several pages with the use of:
<!-- nextpage -->
There is an example that can be found here:
...
4
votes
1answer
3k views
Custom Taxonomy not working with posts_per_page in new WP_query (pagination problem)
OK, so i'm messing with Custom Taxonomies for the second time and in both instances i've run into this problem where using the posts_per_page argument in either a query_posts or WP_query scenario.. ...
0
votes
1answer
797 views
Wordpress loop problem: Multiple loops, index.php and is_paged causing duplicate posts on next page
Hey everyone. I'm not sure if what I'm experiencing is a result of a bug (due to the recent upgrade to 3.1.2) or poor coding. Ever since i upgraded to version 3.1.2 ive been experiencing a problem ...
1
vote
1answer
624 views
Last comment page first with full number of comments?
I use paged and threaded comments with:
10 comments per page
the last comment page first
the newest comments first
If there are 21 comments total, the first page only contain 1 comment - the ...
0
votes
2answers
308 views
Querying posts only if the current page is not paged?
For example, I want to query posts in a page. But I don't want to show them when the user clicks the pagination links.
Pretty much like what happens in Youtube. You only see the Top comments in the ...
0
votes
1answer
991 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=' . ...
0
votes
2answers
501 views
Get paged outside of loop?
Is it possible to get paged outside of the standard WP loop?
I already use this inside the loop:
<?php if ( $paged >= 2 ) { ?> Some text for the 2nd page on up <?php } ?>
But I'd ...