Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I want to display this 2 navigation one to the right and one to the left.

Previous, the left. Next, the right.

<div class="navigation">
   <?php $mam_global_stay_in_cat = ($_GET['stayincat']) ? $_GET['stayincat'] : true;
   if ( $mam_global_stay_in_cat ) { ?>
      <div><?php previous_post_link('&laquo; %link','%title',true) ?></div>
      <div><?php next_post_link('%link &raquo;','%title',true) ?></div>
   <?php } else { ?>
      <div><?php previous_post_link('&laquo; %link') ?></div>
      <div><?php next_post_link('%link &raquo;') ?></div>
   <?php } ?>
</div>

Right now what this code does is lay the 2 links (Next/Previous) on top of each other so I want to display it in a good way where Previous will go to the left and Next to the right. Can anyone help? Appreciated!

share|improve this question
1  
formatting questions are not covered by this forum - wordpress.stackexchange.com/faq – Michael Aug 18 '12 at 19:34

closed as off topic by Michael, mrwweb, Wyck, toscho Nov 23 '12 at 10:15

Questions on WordPress Answers are expected to relate to WordPress within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.

1 Answer

Juggle with CSS, try using float:left with 'Previous' and then shortening its width -> then float:left to 'Next' too. Then margin-right to 'Previous' may help you shift 'Next' to the very end of right corner.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.