Timeline for Exclude Sticky posts from Main Query break Pagination
Current License: CC BY-SA 2.5
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 13, 2012 at 23:36 | answer | added | Matthew Boynes | timeline score: 2 | |
Feb 22, 2011 at 15:19 | comment | added | t31os |
This get_query_var('page') should actually be get_query_var('paged') , see if changing that fixes the problem, alongside the other changes suggested.
|
|
Feb 22, 2011 at 15:02 | comment | added | Nypam |
I'm on 3.0.5 so I replaced ignore_sticky_posts by caller_get_posts , however if I remove the line post__not_in the pagination appears but the sticky posts too... Very frustrating.
|
|
Feb 22, 2011 at 14:33 | comment | added | t31os |
What version are you on, you'll need to use caller_get_posts instead of ignore_sticky_posts if you're running anything less than WordPress 3.1 (eg. 3.0.5)
|
|
Feb 22, 2011 at 14:23 | history | tweeted | twitter.com/#!/StackWordPress/status/40054047352291328 | ||
Feb 22, 2011 at 14:05 | comment | added | Nypam | If I remove the post__not_in arg, sticky posts appear in my query. | |
S Feb 22, 2011 at 14:05 | history | suggested | scribu | CC BY-SA 2.5 |
loose the bangs
|
Feb 22, 2011 at 13:56 | review | Suggested edits | |||
S Feb 22, 2011 at 14:05 | |||||
Feb 22, 2011 at 13:56 | comment | added | t31os |
You don't need the post__not_in arg if you're using ignore_sticky_posts (caller_get_posts pre 3.1)... or at least it shouldn't be needed.
|
|
Feb 22, 2011 at 13:50 | history | edited | scribu |
edited tags
|
|
Feb 22, 2011 at 13:41 | history | asked | Nypam | CC BY-SA 2.5 |