• 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

Education theme, create custom loop

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 › Education theme, create custom loop

This topic is: not resolved

Tagged: custom loop, education theme, specific page

  • This topic has 6 replies, 3 voices, and was last updated 10 years, 11 months ago by Brad Dalton.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • December 11, 2013 at 4:26 pm #78427
    yaneiryscruz
    Member

    Hello, I'm using the Education theme, I want to use the default layout but I'd like to show an specific page instead the latest blog posts.
    Right now I'm hiding the posts, but I don't know how to show a page by id.
    I'm trying with this code, but it doesn't work,
    --
    /** To remove the posts from the bottom of the home page */
    remove_action( 'genesis_loop', 'genesis_do_loop' );

    /* Show the page ID */
    add_action('genesis_loop', 'custom_loop');
    function custom_loop() {
    global $paged;

    $args = array('post_type' => 'page');
    // Accepts WP_Query args
    // (http://codex.wordpress.org/Class_Reference/WP_Query)

    $query = new WP_Query( 'page_id=68' );
    genesis_custom_loop( $args );
    }
    genesis();
    --

    Please, I need some help!
    Thanks in advance,
    Have a great day!

    http://ucs.jumptoweb.com
    December 11, 2013 at 8:09 pm #78481
    Brad Dalton
    Participant

    You can add pages to the loop http://wpsites.net/web-design/add-custom-post-type-pages-to-posts-page/


    Tutorials for StudioPress Themes.

    December 11, 2013 at 9:31 pm #78496
    yaneiryscruz
    Member

    Brandon, thanks...
    But, using that function I can add pages to the loop, but I only want to show a single page, an specific page in the homepage

    December 11, 2013 at 11:30 pm #78507
    Brad Dalton
    Participant

    Just use the Reading Settings.


    Tutorials for StudioPress Themes.

    December 12, 2013 at 8:19 am #78545
    yaneiryscruz
    Member

    When I use the reading settings and select my front page to display a static page, I lose the slider, the features, etc..

    July 10, 2014 at 6:09 pm #113841
    DTHkelly
    Member

    Possible work around - http://wordpress.org/plugins/custom-content-shortcode/

    July 11, 2014 at 1:57 am #113865
    Brad Dalton
    Participant

    Change the conditional tag for the slider PHP code to.

    is_front_page()


    Tutorials for StudioPress Themes.

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