I want to write a plugin which can sort themes into categories. For example I have Categories

3 themes in Business as subfolder from /themes/business

7 themes in Nature /themes/nature

2 themein in private /themes/private

by default WordPress shows me all 12 themes in the backend.

I tried to change the theme root

function tr($J){
print_r($J);//if yo udo this you see the main theme folder
$J="/www/wp-content/new-themes"; //folder new-themes exists
return $J;

but in general this does not work.

Any ideas are highly appreciated.

  • You can just put the themes under each subfolders. i.e. /theme/business/business-1-theme /theme/business/business-2-theme /theme/nature/nature-1-theme /theme/nature/nature-2-theme. etc....
    – hlim
    Dec 12, 2013 at 1:32
  • Thank you solved this problem wordpress.org/plugins/theme-folders
    – seot
    Dec 17, 2013 at 8:59
  • This question appears to be off-topic because the asker seems not search for an answer anymore.
    – fuxia
    Dec 28, 2013 at 12:16


Browse other questions tagged or ask your own question.