• 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

Infinity Pro Theme-Team profiles

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 › Infinity Pro Theme-Team profiles

This topic is: resolved

Tagged: Infinity Pro Theme, team page, WP_query

  • This topic has 3 replies, 2 voices, and was last updated 7 years, 6 months ago by staceychurch.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • April 18, 2018 at 7:27 am #219068
    staceychurch
    Participant

    I need to sort my team profiles to alphabetical order based on the Page name.

    For example this page will be a profile directory of business categories and each page title is the name I wish to sort into alphabetical.
    So my first business page is Accountants which I wish to display first followed by the next page which will be and Admin page title name.

    I guess I need to do some editting here but not sure what!

    // Add our custom loop.
    add_action( 'genesis_loop', 'infinity_team_loop' );
    function infinity_team_loop() {

    global $post;

    $args = array(
    'post_parent' => $post->ID,
    'order' => 'ASC',
    'orderby' => 'menu_order',
    'post_type' => 'page',
    'posts_per_page' => 36,
    'paged' => get_query_var( 'paged' ),
    );

    http://worthingbusinesscircle.co.uk/WBC
    April 18, 2018 at 7:56 am #219070
    Brad Dalton
    Participant

    Try

    'orderby' => 'title',

    https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters


    Tutorials for StudioPress Themes.

    April 18, 2018 at 7:57 am #219071
    Brad Dalton
    Participant

    Try

    'orderby' => 'title',

    Tutorials for StudioPress Themes.

    April 18, 2018 at 9:01 am #219074
    staceychurch
    Participant

    Perfect!
    Thanks Brad.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Infinity Pro Theme-Team profiles’ is closed to new 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