Categories sorted by hierarchical order

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5202
    liviahm
    Participant

    Hello!

    I would like to change the display order of the posts list categories in the main page.

    The categories are sorted alphabetically and I would like to change them to hierarchical order.

    I found a function called “blog_express_post_categories()” on the “content-quote.php” page (blog-express/template-parts/content-quote.php) page that prints the categories.

    How could I change that order?

    • This topic was modified 3 years, 4 months ago by liviahm.
    #5204
    liviahm
    Participant

    Sorry, but the correct page where i can see the categories ordered is: blog-express/template-parts/content.php.

    #5270
    Axle Support
    Moderator

    Hi @liviahm,

    You can find the function blog_express_post_categories being used in ../includes/template-tags.php

    We are using get_the_category_list to display category but this function has no parameter to change order. So you cannot change the order of category being displayed.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Categories sorted by hierarchical order’ is closed to new replies.