• 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

How to wrap php page in Genesis frame?

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 › How to wrap php page in Genesis frame?

This topic is: not resolved
  • This topic has 3 replies, 1 voice, and was last updated 12 years, 3 months ago by boldplan.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • September 29, 2013 at 5:22 am #64659
    boldplan
    Participant

    I'm trying to create a page that will display all wordpress categories and meta descriptions on a static php page since it will save load time by using yet another plugin. I was able to wrap static pages in a WordPress theme pretty easily. However I do not believe that holds true with genesis themes since I've seen pages must end with the genesis function being called.

    The alternative is to build a custom category page in php in WordPress with a call to pull the category and meta description above the page contents, which is the blog articles loop. I've never seen anyone do much like this and was hoping that it's possible. So this way I could build default custom category pages that show the title, meta description and posts for every category I have.

    September 29, 2013 at 8:51 am #64665
    boldplan
    Participant

    Here's one example in the WordPress Codex - easy to do with WordPress stock - create a page/template, e.g. my404.php 404 page:`<?php get_header(); ?>
    <h2>Error 404 - Not Found</h2>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>`

    I tried this but the sidebars aren't working properly (using the education and metro templates) and I think you need to use the genesis function at the end for a template:`
    <?php get_header(); ?>

    <?php genesis_before_content_sidebar_wrap(); ?>
    <div id="content-sidebar-wrap">

    <?php genesis_before_content(); ?>
    <div class="content">

    <?php echo category_description( $category_id ); ?>

    <?php genesis_before_loop(); ?>

    <?php genesis_loop(); ?>
    <?php genesis_after_loop(); ?>

    </div><!-- end #content -->
    <?php genesis_after_content(); ?>

    </div><!-- end #content-sidebar-wrap -->
    <?php genesis_after_content_sidebar_wrap(); ?>

    <?php get_footer(); ?>`

    September 29, 2013 at 6:32 pm #64710
    boldplan
    Participant

    Nope... no page templates work like they do in WordPress. I realize now that the genesis(); function creates the entire page. The problem now is how do you execute PHP and place it within the body of the page? This is my frustration with Genesis. Not straightforward and easy to visualize and still can't find a way to create the same templates you can with stock WordPress.

    September 29, 2013 at 6:39 pm #64711
    boldplan
    Participant

    Got it. Not so difficult but not listed anywhere easily. The function has to be there at the end. You need to start with the php tags for the template name, then add a filter for the type of template, e.g. full width, etc. then remove the genesis loop and add a function for your custom loop. Glad I finally got it and that's how you do it.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 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

© 2026 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