Welcome to WebmasterWorld Guest from 107.22.7.35

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

What makes Wordpress Sticky post display on the top of the page?

     
7:55 pm on Sep 11, 2012 (gmt 0)



Is there any way to display it on the bottom instead?

I am using Twenty Eleven 1.4, and the code is as follows:

<?php if ( is_sticky() ) : ?>
<hgroup>
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<h3 class="entry-format"><?php _e( 'Featured', 'twentyeleven' ); ?></h3>
</hgroup>
<?php else : ?>
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
<?php endif; ?>

I changed it to:

<?php if ( !is_sticky() ) : ?>

<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>


<?php else : ?>

<hgroup>
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<h3 class="entry-format"><?php _e( 'Featured', 'twentyeleven' ); ?></h3>
</hgroup>

<?php endif; ?>

...but it doesnt make a difference. The sticky post still stays on the top. Is thery any way to move it to the bottom of the main page and make it stay there. What makes sticky posts stay on the top (what code and where is it located) of page one, instead of, lets say in the middle of page 3?

Thank you.
10:29 am on Sep 13, 2012 (gmt 0)



I dont know about wordpress, but the only difference between the 2 is the hgroup tag surrounding them, Have you tried removing them?
 

Featured Threads

Hot Threads This Week

Hot Threads This Month