WordPress custom theme categories precreation


i need to display ‘news’ on my fron-page. So i use wp_insert_term at admin_init action. But i wonder if it’s fine that my theme creates categories (and sometimes they being duplicated somehow, i think it’s because of i changed ‘description’ field ). Should leave it for user and tell in documentation that he have to create these categories. My theme is designated to single project and it’s not meant to be used by others. Maybe i have to create custom taxonomy or allow admin to display any category he want’s through options ?

roma2341 8 months 2020-12-12T09:10:41-05:00 0 Answers 41 views 0

Leave an answer