Support » Fixing WordPress » I’m missing “Previous Entries” at the bottom of my page

  • Resolved mycrazydebt

    (@mycrazydebt)


    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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….

    Thanks Trisha!

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

    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.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘I’m missing “Previous Entries” at the bottom of my page’ is closed to new replies.