• Hi –

    I would like to sort all category archive pages by title.

    Can you let me know what code to change. I have created and installed a child theme.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter archetypemkt

    (@archetypemkt)

    Actually I think I figured it out. I added

    <?php query_posts( $query_string . ‘&orderby=title&order=ASC’ ); ?>

    On the archive page. It works but if you can quickly see that I did something that may create problems please let me know.

    Theme Author Guido

    (@guido07111975)

    Hi,

    File “archive.php” uses file “content-list.php” but this file is also being used for all other post pages. So file “index.php” (= main blog page) and “search.php” also use this file. Best practice is adding a new file called “category.php” in order to display your category pages. If you need help with that, please let me know.

    Gudo

    • This reply was modified 7 years ago by Guido. Reason: updated response
    Thread Starter archetypemkt

    (@archetypemkt)

    Ah…now that you say that, it makes sense!

    Thanks so much for the speedy reply and I’ll do that.

    Irene

    Theme Author Guido

    (@guido07111975)

    You’re welcome!

    And if you need further support please let me know.

    Guido

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Sort Category Archives by Title’ is closed to new replies.