WordPress.org

Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #13365


Ignore:
Timestamp:
11/13/10 22:09:00 (5 years ago)
Author:
scribu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13365

    • Property Cc prodevstudio+wordpress@… added
  • Ticket #13365 – Description

    initial v2  
    11I 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: 
    2 {{{ $postresults = new WP_Query(); 
     2 
     3{{{ 
     4$postresults = new WP_Query(); 
    35$postresults->query("author_name=frontpage&post_types=post&post_status=publish"); 
    46while($postresults->have_posts()) { $postresults->the_post(); ?> 
    57// etc... 
    68}}} 
     9 
    710I 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".