WordPress.org

Support

Support » Themes and Templates » My wordpress template doesn’t have previous and next …..?

My wordpress template doesn’t have previous and next …..?

  • it doesn’t have previous and next options …….it doesn’t have any thing like that ………. i really like my template ……… so how do i add that ………. i tried adding page numbers but when you don’t have “previous and next ” options its impossible …… please help!! ….tell me how to put page numbers or ….. previous and next options …..

Viewing 2 replies - 1 through 2 (of 2 total)
  • Look at the WordPress Default Theme and how the wp-content/themes/default/index.php handles that.

    just insert those code below into your posts.php or single.php or index.php …, any where u want it to show 😉

    <?php if (is_single(){?>
    		<div class="navigation">
    		<div class="alignright"><?php next_post('%&raquo;', '', 'yes'); ?></div>
    		<div class="alignleft"><?php  previous_post('&laquo; %', '', 'yes'); ?></div>
    		</div> <?php
    		}
    		else {
    		?>
    		<div class="navigation">
    		<div class="alignleft"><?php next_posts_link('&laquo; Previous Posts') ?></div>
    		<div class="alignright"><?php previous_posts_link('Next Posts &raquo;') ?></div>
    		</div>
    		<?php } ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘My wordpress template doesn’t have previous and next …..?’ is closed to new replies.
Skip to toolbar