• Hello,
    I have been researching how to create a single archive page of posts in reverse order for days now and everything I have tried so far, both from these forums and from alternate sources, either breaks my site (white screen) or does nothing to effect what is viewed onscreen (no result).

    I have gone as far back as 11 years in the forums here, no one seems to have figured this out as a plugin, standard option in WP, or as a Child theme addition that works outside of the supplied basic themes (2010-2014).

    As of today I am running the latest version of WP (4.4.2), X Theme, and all other plugins are current. I have tried deactivating the plugins but that had no effect. I have contacted ThemeCo about X theme and they said they weren’t responsible for helping with a core issue and that is what this is.

    I’ve modified the functions.php file in my child theme so many times it’s ridiculous. It’s an archive of a category, in reverse. Has anyone figured this out so it can be plugged into a child theme? If they have it’s not peculating up in the search results.

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

    (@blairw)

    OMG! I found it. So frik’n simple to.
    Edit Child theme Function.php file and add this: query_posts('cat=4&order=ASC');
    Set cat=”ID Number” to the category ID you wish to change the sort order of.
    For gods sake someone pin this solution so no more people need to tear their hair out searching for it.

    Thread Starter blairw

    (@blairw)

    Just a follow up on this, the pagination tabs on the page (depending on theme) no longer work, only the first page loads for every page listed. I also ran into an issue where clicking on the post just reloaded the page itself not the post.
    People have been looking for this capability for 11 years. WP hasn’t given them a fix/option built into the core. That seems odd to me, how has this simple request be ignored all this time?

    do not use query_posts()

    work with 'pre_get_posts' https://codex.www.ads-software.com/Plugin_API/Action_Reference/pre_get_posts

    Thread Starter blairw

    (@blairw)

    Thank you for the info.
    I decided to build the page I want instead of relying on core functionality. Turns out it looks better than the default option anyway.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Single category archive page in reverse order’ is closed to new replies.