Add class to website based on post taxonomy
I want to write a class to the body of all pages posts and custom posts (IE entire site)
I am using a front end editor that allows logged in users to edit posts and keep them out of the back-end.
- I have a custom post-type "emergency status"
- It contains one post with a taxonomy "status"
- It has the terms extreme, severe, very-high, high, moderate.
I want to add a filter that checks the taxonomy of that post and then adds it to the body of the site.
Topic body-class php taxonomy Wordpress
Category Web