• 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

Template Hierarchy

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 › General Discussion › Template Hierarchy

This topic is: not resolved

Tagged: template hierarchy

  • This topic has 3 replies, 3 voices, and was last updated 9 years, 6 months ago by brettatkin.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • January 11, 2016 at 10:36 am #176232
    brettatkin
    Member

    I must be having a brain fart, because something is confusing me. I'm trying to create a custom archive page for posts but I want the standard layout for the individual posts pages.

    I created 2 files:

    archive.php
    single.php

    It doesn't appear Genesis is following the WP template hierarchy. I must be missing something or not doing something the Genesis way.

    What I want to do is have a grid layout of the featured image and post title on the archive home page but the standard layout for the individual posts pages.

    Thanks

    Brett

    January 11, 2016 at 11:06 am #176236
    Ginger
    Participant

    If you have a file in your theme that the Genesis framework also has, it will use your file first. I recommend using the plugin Query Monitor to see what template is being used so you can be sure.


    @gscoolidge | Support Nerd | Website Producer/Tweaker | IDX Integrations | Hosting Options

    January 11, 2016 at 12:03 pm #176238
    Brad Dalton
    Participant

    You can use CSS for the grid

    or

    PHP in your functions file with conditional tag

    or

    PHP in a template file


    Tutorials for StudioPress Themes.

    January 11, 2016 at 2:17 pm #176248
    brettatkin
    Member

    Thanks for the Query Monitor recommendation. That is very cool. I ended up creating a page_blog.php file in the child theme after finding it in the framework theme (I should have looked there first and your reminder prompted me to look further....) and customizing it.

    Why does Genesis use a page template for the post archive page functionality unlike all the other themes I've worked with?

    Everything else is working as I want except for one thing that I'll ask in a separate question because it isn't related to this issue.

    Thanks again!

    Brett

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘General Discussion’ 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