WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] I'm missing "Previous Entries" at the bottom of my page (5 posts)

  1. mycrazydebt
    Member
    Posted 6 years ago #

    I need the code and need to know exactly where to put it.

    Thank you!

    If you need to see what I'm talking about - here the site.

  2. TrishaM
    Member
    Posted 6 years ago #

    Try something like this:

    <div id="page_nav">
    	<div class="alignleft"><?php next_posts_link('&laquo; Previous Entries') ?></div>
    	<div class="alignright"><?php previous_posts_link('Next Entries &raquo;') ?></div>
    </div>

    The DIV id and classes are just for styling - use whatever names there you like in your code and CSS file....

  3. mycrazydebt
    Member
    Posted 6 years ago #

    Thanks Trisha!

    I ended up installing SRG Clean Archives and adding an Archives page.

  4. TrishaM
    Member
    Posted 6 years ago #

    Aha........I see......I had thought you were talking about a navigation at the bottom of a page going to Next Entries or Previous Entries, when you were asking about adding an Archives section for all older posts......got it!

    Glad you got it worked out......SRG Clean Archives is a great plugin and one I use also......

    But just in case anyone else wants to know how to add an Archives section to your Sidebar or anywhere on your page, you can do so by using something similar to the following code (the first one displays archives listed by category, the second by month).....

    <ul><li class="listHeader"><h2><?php _e('Categories'); ?></h2></li>
            <?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
        </ul>
    
        <ul><li class="listHeader"><h2><?php _e('Archives'); ?></h2></li>
            <?php wp_get_archives('type=monthly'); ?>
        </ul>

    You can look up wp_list_cats and wp_get_archives in the Codex for more information on how to use them.

  5. Anonymous
    Unregistered
    Posted 5 years ago #

    TrishaM, that was exactly what I needed! Thank you so much.

Topic Closed

This topic has been closed to new replies.

About this Topic