Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #606606

    Hello,

    I display articles using archive page with the grid and some articles belongs to sub-categories.
    An article is display by :
    – featured image
    – category-list
    – title
    – excerpt
    – and some other information like date for the events i.e.

    The category-list is a problem, because, the list is in an alphabetical order, instead of parenting order.
    I need to sorte the categories like this:
    first the parent, then the sub(s)

    How can I do that ?

    Carosch

    #606991

    Hi carosch!

    Thank you for using Enfold.

    I’m sorry but this is not possible because the theme is using the get_the_term_list() function which do not have a sorting parameter. https://codex.wordpress.org/Function_Reference/get_the_term_list

    Regards,
    Ismael

    #607083

    Hi,

    is there another way to display the categories sorting by hierarchic order ?

    Regards
    Carosch

    #607344

    Hi,

    There probably is, but that would mean we would have to write a custom function instead of using default WordPress functionality, and that would be considered custom work and out of scope of theme support unfortunately.

    Thanks,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.