For example if category A has post 1 which is created yesterday and category B has post 2 which is created today.
So, the category will be listed in order
Category B
Category A
Have anyone implemented this before?
For example if category A has post 1 which is created yesterday and category B has post 2 which is created today.
So, the category will be listed in order
Category B
Category A
Have anyone implemented this before?
Comments are closed.
This code list all parent categories on the basis of recent publish post in that category.
Try it:
Get categories order by (post ID | post date | post modified date). Without any loop and fast!