• I can’t see the Older Entries link at the bottom of my homepage, so there is no way to see the older posts. Does anyone know how to fix this?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter meldominguez

    (@meldominguez)

    my website is https://mlmsuccesscoach.com thanks.

    It’s depend to your theme.

    Add this code to your theme example index.php

    <?php if ( $wp_query->max_num_pages > 1 ) : ?>
    	<div id="nav-above" class="navigation">
    		<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'themedomain' ) ); ?></div>
    		<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'themedomain' ) ); ?></div>
    	</div><!-- #nav-above -->
    <?php endif; ?>
    Thread Starter meldominguez

    (@meldominguez)

    Hello, thanks for the help. But this code only works if I put it in the footer, and I want to put it just below the posts, where it says: “View the archives” and “subscribe to updates”. The code for them is in the default.php file, but I put the code there and it doesn’t show. Am I missing something?

    Thanks

    It can be done anywhere as long within the WordPress Loop.

    If outside of the loop please refer to https://digwp.com/2010/04/post-navigation-outside-loop/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Older entries link not showing on the homepage’ is closed to new replies.