I have a category page on it posts are displayed. By default, wordpress outputs posts as they enter the category and displays them.
If I have tittle of the post consist of 2 words, and I need to sort by the second word (Name / Surname, I need a surname), it can be done somehow without reloading the post and not changing the name and surname? or smth else ?
i know that function get_posts has attribute ‘order’ and ‘orderby’ it’s not what i need.

Read more here: WordPress’s function ‘get_posts’ and sorting for category


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: