A Genesis framework developer wants to know: How do I change the “CreativeWork” microdata in Genesis to Book, Music, or Recipe? In this episode, Tonya talks about strategies to find where Genesis sets the microdata attribute and then how to change it to fit your needs.
You’ll learn:
- Where Genesis sets the microdata itemtype in the code.
- A strategy of dynamically setting its value based upon the selected custom field (post metadata).
Interested in developing and fine-tuning your Genesis expertise? Check out the Genesis Developer Roadmap.
-
Want the code from this episode? Click here.
Additional Resources
Here are some additional resources for you to explore:
- Organization of schemas
- CreativeWork article on schema.org
- Introduction and Registering Event Hooks in WordPress
add_filter
- Array Data Type