• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Archive template ignored

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Archive template ignored

This topic is: not resolved

Tagged: archive file, archive template, archive.php, custom archive

  • This topic has 2 replies, 2 voices, and was last updated 9 years, 6 months ago by yvonne.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • June 6, 2016 at 9:41 pm #187076
    yvonne
    Member

    I would like to have one archive page to do all the dirty work of displaying any archives that are generated. So if I am in a blog post and I click on the category the post uses, or maybe the tag, it would take me to an archive of all posts using that category or tag.

    I am using a child theme and my understanding is that if I copy the archive.php file to my child theme, it should be used as the go-to archives template as per the template hierarchy (yes, my archive page is set to use the "Archive" template). But this isn't happening. The template is instead loading the index.php file located in the core Genesis theme whenever an archive is generated.

    What am I missing?

    June 7, 2016 at 7:26 am #187095
    Brad Dalton
    Participant

    You could try template_include with the is_archive() conditional tag.

    Using the archive.php file from genesis won't work as the file will need to be modified.

    You can use this template code as a guide and use the Template Hierarchy to name the file.


    Tutorials for StudioPress Themes.

    June 7, 2016 at 11:49 am #187108
    yvonne
    Member

    Thank you Brad. That code seemed to do the trick.

    I already had named the file as archive.php according to the Template Hierarchy. And this is what was causing my confusion since I believed I had it named properly.

    It turns out that the code that is in the default archives.php (category/author/etc archive titles & descriptions) was causing the conflict and giving me a white screen of death and a 500 error. I removed all that code, added the code from your link above (thank you! - I saw that listed in my Google searches but skipped it because I thought it was only about setting up a category archives), and customized it a bit. I still retain my category/author box/tag/etc archive titles and descriptions and now it's using the proper template.

    Onward and upward.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble