• amber.karnes

    (@amberkarnes)


    I am setting up a site here:
    https://www.mkcarroll.com

    Using this theme:
    https://herbrokentoy.com/themes/plainandsimple.zip

    The theme doesn’t have an archives.php page, and when I make an “Archives” page with the slug “archives” it doesn’t display anything there. However, when you click on a category name, it displays those posts from the category, so it makes me think that one of the templates (page.php maybe?) knows how to handle archives. I’m not fluent in php, so I can’t really tell what’s happening here.

    I’d like to make a page with archives by category and month. How do I go about doing this?

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Clayton James

    (@claytonjames)

    “when I make an “Archives” page with the slug “archives” it doesn’t display anything there”

    This is why.

    <div id="menu"><a href="">HOME</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="">ABOUT</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="">ARCHIVE</a>
    <p class="profile-link">
    
    </div>

    Those links are all hard coded into header.php. With just a quick cursory review, the theme appears to be lacking in it’s “dynamic” capabilities. (at least relative to page creation) Perhaps another choice of themes would greatly simplify matters?

    stvwlf

    (@stvwlf)

    Hi

    It is true that theme sounds primitive.

    A piece you are missing though is how WP decides what template to use for a given page. See this page
    https://codex.www.ads-software.com/Template_Hierarchy
    which will help you see how your category page is being displayed.

    WordPress has a default name for an archive page, archive.php You don’t need to create it as a static page, you create it as a template file in your theme folder. Thus no need to assign a slug. You can start by copying the code from index.php and then modify that to your liking.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Need to make an archives page’ is closed to new replies.