• 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 "tag" Page? Who has done one?

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 "tag" Page? Who has done one?

This topic is: not resolved

Tagged: functions, php, tags, wordpress core

  • This topic has 1 reply, 2 voices, and was last updated 12 years, 7 months ago by Gary Jones.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • September 26, 2013 at 7:02 am #64281
    slydawgg
    Member

    I'm trying to customize a "tag" template to do what I would think should be easy to do via Genesis, as I know I have done the same type of thing via WordPress using a tag.php file.

    I am trying to do a sort ASC of Posts, with individual tags per page. So if my tag is "apples" the use can go to domain.com/tag/apples and see all Posts A-Z for just that tag. If they go to "oranges" domain.com/tag/oranges then all Posts for oranges will be sorted A-Z, and so on.

    -----
    I have tried testing my theory by going to my archives.php page within my Child theme and adding some WordPress parameters of both
    <?php the_tags ?> and <?php get_tags ?> on the archives page, but I soon realized that adding either one of those without a sort doesn't seem to display anything.

    Ideas for:

    1.) Get a list of Posts using the same Tag to be sorted ASC?

    bonus, but not as important
    2.) Display a list of tags: on the Archive/404 page similar to the Authors, Categories, etc

    October 18, 2013 at 8:48 pm #67540
    Gary Jones
    Member

    1. Use a function hooked to pre_get_posts to amend the query to order alphabetically. Conditionally limit it to just a tag archive. The function MUST be in your functions.php and not in a tag.php or similar file.

    2. This would go into tag.php, just a case of customising the loop - you might want to see how 404.php does it as a starting point.


    WordPress Engineer, and key contributor the Genesis Framework | @GaryJ

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