Welcome to WebmasterWorld Guest from 54.196.232.162

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)

New User

joined:Mar 5, 2012
posts:24
votes: 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 Sept 13, 2012 (gmt 0)

Junior Member

5+ Year Member

joined:July 8, 2010
posts:114
votes: 0


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