[Resolved] Hiding default category
Since a default category is forced, and usually doesn’t make sense to display, I think it should be made easier to exclude it from functions that fetch categories. I’ve done this on our installation by hacking get_the_category_list() to continue the foreach loop(s) under this condition:
if ($category->term_id == get_option(‘default_category’))
which works nicely, but is a hack that will be removed on the next upgrade.
Is there momentum for getting this added in as an option somewhere?
- The topic ‘[Resolved] Hiding default category’ is closed to new replies.