• 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

question about templates

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 › question about templates

This topic is: resolved

Tagged: templates

  • This topic has 5 replies, 2 voices, and was last updated 12 years, 11 months ago by Kevin.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • September 16, 2013 at 11:06 pm #62946
    Kevin
    Member

    How do I create them?? I am going nuts trying to figure this out and I think I'm making it more complicated. I created an archive template for a custom post type (archive-mycpt.php) but the does not show at all. I know Genesis 2.0 has the archive setting when you use 'has_archive' => true, but I want to customize the page more. I want just post title that when clicked will open in the single-mycpt.php page. However this is not happening. How do I use the archive-mycpt.php page with the CPT I created? How do I display the post titles so that they are visible and the correct archive template is used?
    I know how this is done in the WordPress default theme but can't figure out how to do this in Genesis

    September 17, 2013 at 3:12 am #62955
    Arya
    Member

    Hi Kevin,

    Try to follow this tutorial http://www.carriedils.com/genesis-2-0-archive-settings-custom-post-types/
    And then re-save your permalink settings.

    Hope that help.

    Cheers,

    -AP


    You can find me @arya_prakasa

    September 17, 2013 at 6:39 am #62965
    Kevin
    Member

    I created an archive template called archive-c1assigments.php and when I go to change the layout to full width - it does not change. Is this the best way to have the most flexibility of customizing the layout?

    September 17, 2013 at 7:17 am #62968
    Kevin
    Member

    here's a screenshot of what I think is the archive-c2assignments.php page (should read 'page only' not 'oage only'
    Screenshot

    September 17, 2013 at 7:22 am #62970
    Kevin
    Member

    The single-c2assigments.php page is correct in its layout
    scrnst

    September 18, 2013 at 12:03 pm #63237
    Kevin
    Member

    I have done something wrong. The classes/ Ids that I assigned to show the custom filed in my functions.php are showing on every page. I created these:
    `// this adds the key values for each subject
    add_action('genesis_post_content', 'ela');
    function ela() {
    if ( is_single() && genesis_get_custom_field('ela') )
    echo '<h2>English Language Arts</h2>';
    echo '<div id="homework-content">'. genesis_get_custom_field('ela') .'</div>';
    }
    add_action('genesis_post_content', 'math');
    function math() {
    if ( is_single() && genesis_get_custom_field('math') )
    echo '<h2>Math</h2>';
    echo '<div id="homework-content">'. genesis_get_custom_field('math') .'</div>';
    }
    add_action('genesis_post_content', 'science');
    function science() {
    if ( is_single() && genesis_get_custom_field('science') )
    echo '<h2>Science</h2>';
    echo '<div id="homework-content">'. genesis_get_custom_field('science') .'</div>';
    }
    add_action('genesis_post_content', 'social_studies');
    function social_studies() {
    if ( is_single() && genesis_get_custom_field('social_studies') )
    echo '<h2>Social Studies</h2>';
    echo '<div id="homework-content">'. genesis_get_custom_field('social_studies') .'</div>';
    }'
    to echo the custom fields to show the assignments. Is there a way to show them on a custom template?

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

© 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