WordPress.org

Support

Support » How-To and Troubleshooting » Differnt styles for for recent single page page post, or…

Differnt styles for for recent single page page post, or…

  • I have a blog, and when you are on a single post page you have the option to click a button to read the next post or go to the previous post. On the most recent post, the previous post button is not showing up, because their is no previous post to show. But I would like to center the button that links to next post only for the most recent post.

    <div id="nav-below" class="navigation">
    <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '', 'Previous post link', 'twentyten' ) . '</span> <img src="http://crimeincharlotte.com/wp-content/themes/twentyten/images/older.jpg" border="0" >' ); ?></div>
    <div class="nav-next"><?php next_post_link( '%link', '<img src="http://crimeincharlotte.com/wp-content/themes/twentyten/images/new.jpg" border="0" ><span class="meta-nav">' . _x( '', 'Next post link', 'twentyten' ) . '</span>' ); ?></div>
    				</div><!-- #nav-below -->

    That is the code for the buttons. I can not figure out how to do this. If anyone has any suggestions I am all ears.

  • The topic ‘Differnt styles for for recent single page page post, or…’ is closed to new replies.