changing blogpost order for a category

Community Forums Forums Design Tips and Tricks changing blogpost order for a category

This topic is: not resolved

This topic contains 5 replies, has 4 voices, and was last updated by  Brad 1 year, 9 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #13969

    docmas
    Participant
    Post count: 40

    I’m not sure if this is a Genesis question or an Agency question or just a WordPress question.  In one of my categories, the blogposts are newest to oldest order and I’d like to change it to oldest first to newest order.  Not seeing an option for this, is there some code to do it easily?

    http://thepassiondoctor.com/category/core-articles/

     

    Thanks,

    Adam

    #13981

    Susan
    Moderator
    Post count: 9255

    Try this plug-in:

    http://wordpress.org/extend/plugins/default-sort-ascend/

    or, you can code it by following this tutorial: http://billerickson.net/customize-the-wordpress-query/


    Susan @ Graphically Designing I offer theme customizations I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

    #13982

    docmas
    Participant
    Post count: 40

    Susan, the plugin seems to be a global one, I only want to change the order in that one category page.  Do you know if it can do that?

    I’ll check the tutorial though same question, global or localized?

    Thanks,

    Adam

    #13983

    Susan
    Moderator
    Post count: 9255

    I believe the plug-in is global.

    Code can be written to limit it to the one category, but I believe you would need to experiment with Bill’s tutorial (with the note that I can provide snippets and point you in the direction of code, but I’m not a developer…)


    Susan @ Graphically Designing I offer theme customizations I tweet!
    I’ve taken up the challenge! – help me answer some of the unanswered posts

    #13998

    itsonlybarney
    Participant
    Post count: 15

    I’m thinking this should work, I can’t test it at the moment, but give it a try.

    You will need to create a new file in the child theme folder with the code in it and changed accordingly.

    #13999

    Brad
    Participant
    Post count: 33

    This would yield a different url but one method would be to create a page and then assign the blog template to that page. Next you would create a custom field in that page with the name of query_args. The value of that custom field would be something like cat=x&orderby=date&order=ASC

    x = the ID of the category

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.