Make WordPress Core

Opened 6 years ago

Last modified 2 years ago

#13365 closed defect (bug)

WP_Query, author_name, and sticky posts — at Version 2

Reported by: eryanv Owned by: ryan
Milestone: Priority: normal
Severity: normal Version: 2.9.2
Component: Query Keywords: reporter-feedback dev-feedback
Focuses: Cc:

Description (last modified by scribu)

I have a template which is being used as my front page on WP 2.9.2. In this template I setup my loop with the following code:

$postresults = new WP_Query();
while($postresults->have_posts()) { $postresults->the_post(); ?>
// etc...

I am not using the "caller_get_posts=1" option, but my sticky posts are still showing up in order with other posts rather than at the beginning. If I remove the "author_name=frontpage" the sticky posts will move back to the first items, however I am stuck with posts by authors I do not want. Using "author=2" results in the same behavior as using "author_name".

Change History (2)

#1 @azizur
5 years ago

  • Cc prodevstudio+wordpress@… added

Another sticky post related #12702

#2 @scribu
5 years ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.