The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
23 views

the paged param is allways 0

I am listing a custom post_type called ad using get_posts wich works fine, Problem that I have is that I am not able to read the paged param, wich I need in order to enable pagination, The thing is ...
0
votes
1answer
31 views

Print all content of a paged post

is it possible to print a complete post that has a number of pages? I'm working on a website that the client would like users to be able to print an article. The problem I have right now is when an ...
0
votes
1answer
99 views

Merged two WP_Queries, posts per page and pagination not working

I merged two WP_Queries with the code below, it has pagination setup as well as posts per page in the final combined object but those settings aren't working. My page shows 24 posts, where is it ...
0
votes
1answer
94 views

Next / previous posts link doesn't show up with Posts 2 Posts

I am working on a Wordpress project where I use the Posts 2 Posts plugin to show posts from one post type to posts from another post type. This works great but for some reason my next_posts_link() ...
-1
votes
1answer
51 views

paged query leads to 404? [duplicate]

As soon as I click the "2" on my pagination links I get a 404-error. The url correctly changes to http://mysite.com/?paged=2 <?php /** * The loop that displays the posts. */ ?> <ul ...
0
votes
2answers
278 views

Using $paged redirects /page/2 to page 1

I've setup a custom query for my posts (single.php) with pagination, which by the way is working great with the default permalink structure. domain.com/p=ID&paged=2 if I switch the permalinks ...
0
votes
1answer
34 views

Query counting excluded category on paged loop

I have an Index.php with a basic loop with this query before: <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array( 'category_name' => 'work', ...
0
votes
1answer
70 views

'paged' in wp_query doesn't work

I try to add a code to my wordpress blog show previous posts(in a previous page). I try this code but it don't work: <?php $paged = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1; $args = ...
0
votes
0answers
84 views

next_posts_link not working with custom query

I am trying to create a pagination system through my posts. Here my code: <?php $paged = (intval(get_query_var('paged'))) ? intval(get_query_var('paged')) : 1; $args = array( 'post_type' ...
-1
votes
1answer
124 views

Manually Insert Title & Meta Description for Pagination pages?

This is second version of question Customized title tag for each page in pagination? answered by @joostvanhoof . I would like to add customized title tag <title> and different meta description ...
0
votes
1answer
397 views

wp_query orderby random do not repeat infinite scroll - one loop

I have found a lot of documentation on solving this issue with multiple loops, I'm finding it hard to see a solution for one custom loop. Problem: I'm using infinite scroll to load in the next page ...
0
votes
1answer
72 views

“paged” in WP_Query returns 0 posts

If i don't supply a paged value (get the first page), it works. But when i try to get the next page by doing paged => 2 it doesn't find anything even though there are plenty of posts to get. ...
0
votes
1answer
89 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
454 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
97 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
607 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
112 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
40 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
132 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
1k 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
491 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 ...
2
votes
2answers
849 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
518 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
232 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
2k 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
115 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.?
6
votes
3answers
3k 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
579 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
128 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 ...
3
votes
3answers
5k 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
647 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
841 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
4k 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
981 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
774 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
407 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
1k 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
627 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 ...