• 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 Have Academy Pro's beautiful archive grid, for *pages*?

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 › How to Have Academy Pro's beautiful archive grid, for *pages*?

This topic is: resolved

Tagged: academy pro, get_pages, wp_list_pages

  • This topic has 24 replies, 4 voices, and was last updated 2 years, 9 months ago by andytc.
Viewing 5 posts - 21 through 25 (of 25 total)
← 1 2
  • Author
    Posts
  • June 7, 2020 at 5:04 am #499182
    andytc
    Participant

    Hi , That function won't affect the display of child_pages at all , we aren't displaying 'Posts' and we're not using the post grid option in Academy Pro.

    Are you saying that your not seeing all the child pages ?

    June 7, 2020 at 5:55 am #499183
    Regev
    Participant

    Yeah, I see only 6, even when there are more.

    June 9, 2020 at 9:09 am #499208
    andytc
    Participant

    Ok , understood , sorry i've been a bit busy so slow reply -

    Add this line to the beginning of the array in the code I gave you - -1 means all of them , no limit.

    'posts_per_page' => '-1',

    You should end up with that sectionn of the code looking like below -

    if ( is_page( ) ) {
        
    $args = array(
     'posts_per_page' => '-1',
     'post_parent' => $post->ID,
     'post_type' => 'page',
     'orderby' => 'menu_order',
    );

    Alternatively go to > Reading Settings and Change > Blog pages show at most (enter number) , but that will affect all your post archives as well. My choice is go with the 1st option and edit the code adding that line as shown.

    June 9, 2020 at 10:33 am #499209
    Regev
    Participant

    Thank you so much! Both work.

    I did notice that when I put "-1" in there it shuffles up the posts order differently, why's that? I put '12' in there and the order is good again, only with the 7th post showing 🙂

    June 9, 2020 at 12:24 pm #499216
    andytc
    Participant

    Look at the orderby arg and change it to what ever you want - reference here - https://developer.wordpress.org/reference/classes/wp_query/

  • Author
    Posts
Viewing 5 posts - 21 through 25 (of 25 total)
← 1 2
  • 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

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