Assign author to category and not only posts

By default WordPress does not support an author on categories or any other taxonomy as can be seen in the database structure. You can certainly add that association through taxonomy term meta data, but you will of course be responsible for all management and display of that custom data (unless you can find a plugin … Read more

display category with background color

I would add the category slug as a class to each category link, and change your class name to be more specific so other CSS doesn’t conflict on accident: <div class=”category-link”> <a href=”#” class=”<?= $cats[0]->slug ?>”><?= $cats[0]->name ?></a> </div> Then call the class with CSS: .category-link .food { background-color: red; }