Sort categories by the recency of update

  • peptid

    #7457

    Hello All,

    I am managing a website, and I have a small problem that I believe can be solved.

    We are trying to sort the categories by the recency that they have updated. That is, when a new post is added to a category, I want to see the name of that category on the top of the list. Now, although I unchecked show hierarchy button, it still sorts by alphabetical order.

    Any help would be much appreciated, thanks in advance,

    Batuhan

    Mod

    Kenneth John Odle

    #36754

    It is possible using a child theme. Have you set up a child theme yet?

    If so, then see this for a possible solution:

    http://mishareyzlin.com/notes/sorting-categories-by-post-dates

    peptid

    #36755

    No, I haven’t created a child theme yet. However, I guess, when Ä° create it, I will also create a functions.php that will contain the code you have suggested, right?

    Mod

    Kenneth John Odle

    #36756

    Yes.

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

You must be logged in to reply to this topic.