So I’ve a reasonably easy query, and all of the solutions I’ve discovered up to now have gotten me actually near what I need to do, however I have not been in a position to get it to work simply but:
How do I inform WordPress to kind posts of a particular class so as?
I am constructing my website in Divi, so I am attempting to perform this utilizing a baby theme and modifying the /contains/builder/module/weblog.php file.
I can efficiently get it to kind posts alphabetically by following this text, however I am attempting to determine the proper approach to wrap an if assertion round that little bit of code.
I do know it is just about only a matter of “if (class = specific_category)” then kind these publish alphabetically, however I am nonetheless studying my manner across the code and have not discovered the proper syntax to make it work.
I am positive somebody inside studying distance of this publish goes to be like “oh yeah, that is the way you do it,” so I believed I might ask. 🙂
Thanks!