• Resolved keempoo

    (@keempoo)


    Is it possible to set the ascending/descending post order on a Query Loop when the “Inherit query from template” setting is turned on? The sort option disappears with that particular setting. All the best! This theme is super fun!

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Alvaro Gómez

    (@mrfoxtalbot)

    Hi @keempoo! By definition, the “inherit query from template” option will display posts relevant to that query, with the newer posts at the top (taking into account sticky posts, of course).

    I do not think here is a way to do this in Twenty Twenty-Three (or any other theme for that matter) but if you are confortable with adding a little bit of PHP code, you can easily accomplish this using the pre_get_posts hook. If you want to know more about this or explore non-code options, here is a post that offers a bunch of other options.

    Let me know if that helps!

    Thread Starter keempoo

    (@keempoo)

    That does help! One thing I have been wondering with these block themes is where the functions go when there is no functions.php. I have tried to Google this several times but the keywords are too common and I can’t find a definitive answer. Best!

    Moderator Kathryn Presner

    (@zoonini)

    Hi @keempoo – are you asking where to add extra functions to a block theme – one like TT3 that does not have a functions file –yourself? If so, I’d suggest the Code Snippets plugin. It simplifies things by eliminating the need to create a child theme. Let me know if this answers your question!

    Thread Starter keempoo

    (@keempoo)

    Helped! Thanks!

    Moderator Kathryn Presner

    (@zoonini)

    Great, glad to hear! I’ll mark this as resolved but feel free to start a new thread for any other questions.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Possible to Sort Asc/Desc Query Loop’ is closed to new replies.