• 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

Custom post type archives in alphabetical order

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 › Custom post type archives in alphabetical order

This topic is: not resolved
  • This topic has 3 replies, 2 voices, and was last updated 12 years, 2 months ago by Bill.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • September 1, 2014 at 9:00 pm #122326
    Bill
    Participant

    I have 2 different custom post types that have archive pages similar to this one. One post type is "neighborhoods" , and the other is "condominiums".

    Can anyone help me with the functions code to be able to display these two custom post types archives in alphabetical order rather than post publish date.

    September 2, 2014 at 3:08 am #122363
    Brad Dalton
    Participant

    Alphabetical order based on the titles?

    You can use pre_get_posts to order by post type which is new for WordPress 4.0:


    Tutorials for StudioPress Themes.

    September 2, 2014 at 3:35 am #122367
    Brad Dalton
    Participant

    Try this http://wpsites.net/wordpress-tips/show-posts-by-post-title-in-alphabetical-order-for-custom-post-type-archive/


    Tutorials for StudioPress Themes.

    September 2, 2014 at 5:07 am #122382
    Bill
    Participant

    Thanks Brad for jumping in! I am running 3.9.2 currently. I have a bunch of plugins that may not be 100% 4.0 compatible so I am still at 3.9.2 until the official upgrade and all plugins have a chance to update. ...so this doesn't seem to be working.

    Also, I have another question regarding this. I have the two main CPT archives:
    http://www.clearwaterhomes.com/neighborhoods/
    http://www.clearwaterhomes.com/condominiums/

    ...but then I also use CPT categories to display filtered CPT archives for matching that category:

    Ex) This one of for a specific community category in the neighborhoods CPT:
    http://www.clearwaterhomes.com/sarasota-homes/longboat-key-neighborhoods/

    Ex) This one is for a specific condo community category in the condominiums CPT:
    http://www.clearwaterhomes.com/sarasota-condos/longboat-key-condominiums/

    I have about 20 CPT categories for both the condominiums and also for neighborhoods CPT.

    I need all of the CPT archives (including the cpt category archives) to also use the same alphabetical order by title format.
    But I do not want the regular blog archives, etc to use that order....just the CPT's and any categories of CPT.
    (not sure if this makes a difference or not).

  • 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