I think the first post would HAVE to be sticky, since I’m not sure there is a conditional to test for if it’s the first post. But, I know we can conditionally test if it is a sticky.
There is, but not exactly a conditional function. There’s a global variable called $wp_query which contains the current index of posts in a loop, among a whole lot of other things.
Try doing this in the posts loop to see what value it contains:
<?php global $wp_query; echo $wp_query->current_post; ?>
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.
This free Support Forum relies on contributions from our support staffs and fellow Graphene themes users. While we endeavour to provide adequate and timely support, due to its voluntary nature responses are not guaranteed and may be delayed.
If you require urgent assistance, you may like to consider our Priority Support option.