WordPress.org

Ready to get started?Download WordPress

Forums

Missing Latest Posts (3 posts)

  1. godbox
    Member
    Posted 7 years ago #

    On the sidebar of my main page,there's the Latest Entries section. But on the About page, I don't see it anymore.

    I don't know php but I'm guessing that this is the bit of code that needs adjusting.

    <?php /* Latest Entries */ if ( (is_home()) or (is_search() or (is_404()) or ($notfound == '1')) or (function_exists('is_tag') and is_tag()) or ( (is_archive()) and (!is_author()) ) ) { ?>

    How do I tweak it so that the Latest posts section appears not only on the About page , but also on the Archives page?

    Thanks!

  2. ZMAng
    Member
    Posted 7 years ago #

    If you want it to display on all your Pages (i.e. static posts), including your About page, just add "or is_page()". For more information, please refer to the Codex's Conditional Tags page.

  3. godbox
    Member
    Posted 7 years ago #

    that's exactly what I needed! thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic