Hello, I want to change my single.php file (I've got a twentyten child theme) to react differently for sticky posts.
I found this code to block events on the posts page, but it doesn't work in the single.php file.
<?php if( !is_sticky() || !is_home() ) :?>
<div id="nav-above" class="navigation">
...
</div><!-- #nav-above -->
<?php endif;?>
If I understand correctly, <?php if( !is_sticky() || !is_home() ) :?> is a negative statement.
I need to not only block out the 'navigation div', but posit something in its place. So, I need to learn how to negate something if it's sticky, and replace it with something else.
I'll take any suggestions including sites on .PHP that aren't too wordy.
Cheers!