WordPress.org

Ready to get started?Download WordPress

Forums

My wordpress template doesn't have previous and next .....? (3 posts)

  1. forgotmyname
    Member
    Posted 5 years ago #

    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 .....

  2. MichaelH
    Member
    Posted 5 years ago #

    Look at the WordPress Default Theme and how the wp-content/themes/default/index.php handles that.

  3. mrlive158
    Member
    Posted 5 years ago #

    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 } ?>

Topic Closed

This topic has been closed to new replies.

About this Topic