Tag Info

Hot answers tagged


Never modify Wordpress core files! Use your template's functions.php. You can check examples here: http://wordpress.stackexchange.com/a/198778/69451


It is quite easy to achieve this. Your answer is usort() FEW NOTES: Before we code, just a few notes Requires PHP5.4+ due to the use of the short array syntax ([]). If you have an older version, you should really upgrade as older versions are a real security threat as all older versions prior to PHP 5.4 has been EOL'ed I will comment the code as I go ...

Only top voted, non community-wiki answers of a minimum length are eligible