• Resolved Scott DeLuzio

    (@scottdeluzio)


    When having the blog posts on the home page, I have it set to show six posts. I would like to get links to older posts at the bottom of the page, but there doesn’t seem to be a way to do this. Even manually typing in https://mysite.com/page/2 doesn’t seem to work, even though the site has far more than 6 blog posts.
    How are people supposed to navigate to older posts without displaying the monthly archive links in the sidebar?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Scott DeLuzio

    (@scottdeluzio)

    For anyone else trying to figure this out, I found a quick fix:

    1. First create a child theme if you aren’t already using one.
    2. Copy front-page.php from /wp-content/themes/Tidy to /wp-content/themes/Tidy-child
    3. Somewhere around line 98 in front-page.php (in your child theme), is a line that starts with $tidy_blogargs = array( 'posts_per_page'
    4. Just before that line insert a new line with the following code $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    5. Inside the original $tidy_blogargs array, insert this line 'paged' => $paged, immediately before the 'tax_query' line.

    This will get your /page/2, /page/3, etc. URLs working if you manually type them into your browser, but you still won’t have the navigation links at the bottom of your page.

    To get those navigation links, find the line with </section><!-- #blog-area --> and insert the following code directly before it: <?php tidy_paging_nav(); ?>

    Hope this helps.

    Theme Author Z.com byGMO

    (@takeaki-nagashima)

    Good to know that you figured this out. If you have any questions, please feel free to contact us again.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Any way to show link to more posts’ is closed to new replies.