[wp-testers] styling stick posts

Michael Preuß micha at dynamicinternet.eu
Tue Nov 4 17:43:02 GMT 2008


If you wont have a sticky post in your loop write:

if(!is_sticky()) {
    //youe code inside the_loop
}

I hope that helps .

Micha
http://wpengineer.com

MichaelH schrieb:
>> On 11/3/08, Nathan Rice <ncrice at gmail.com> wrote:
>>     
>>> One thing I noticed is that sticky posts override the post__not_in 
>>> argument
>>> using query_posts().  I think this is a mistake or a bug. If you take the
>>> time to specify which post IDs you do not want included in a loop, then 
>>> you
>>> should get what you ask for, IMO.
>>>       
>
> On 11/4/08, Nathan Rice <ncrice at gmail.com> wrote:
>   
>> I'm also noticing that a sticky post will also show up in a loop when 
>> using
>> custom fields as the qualifier (key&value).
>>
>> Is this a bug? Has it been reported? Will it be fixed?
>>     
>
> Not sure if this is a bug, but certainly it could argued either way.
>
> It doesn't seem clear from the originating Trac ticket [1] what the 
> developers intended.
>
> I don't see a report in Trac [2] so you might consider opening a ticket 
> there.
>
> Note that using the ''post__in" argument for specific post IDs will also 
> return sticky posts in the query.
>
> [1] http://trac.wordpress.org/ticket/7457
> [2] 
> http://trac.wordpress.org/search?q=sticky&noquickjump=1&ticket=on&changeset=on&wiki=on
>
> MichaelH
>
>
>
> _______________________________________________
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers
>
>   



More information about the wp-testers mailing list