Title: Adding post meta to class?
Last modified: October 24, 2019

---

# Adding post meta to class?

 *  [russclem](https://wordpress.org/support/users/russclem/)
 * (@russclem)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/adding-post-meta-to-class/)
 * Is there a way to add post meta, in this case the post’s custom taxonomy, to 
   the class data?
 * So I have a custom post type, which is Reports. Reports has a ‘Report Type’ taxonomy,
   which has four Report Types. Three of those I want styled one way, and the fourth
   I want to style differently. If this plugin took the taxonomy and added it as
   a class to the <article>, that would solve that problem, but as it is, it just
   takes the name of the custom post type, rather than the related taxonomy.
 * Is there a way to achieve that?

Viewing 1 replies (of 1 total)

 *  Plugin Author [dudaster](https://wordpress.org/support/users/dudaster/)
 * (@dudaster)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/adding-post-meta-to-class/#post-12071694)
 * You can do it with either Ele Conditions or Dynamic everywhere. Either way you
   need to add some code to add custom vars. If you’re having troubles let me know!

Viewing 1 replies (of 1 total)

The topic ‘Adding post meta to class?’ is closed to new replies.

 * ![](https://ps.w.org/ele-custom-skin/assets/icon.svg?rev=3536751)
 * [ECS - Ele Custom Skin for Elementor](https://wordpress.org/plugins/ele-custom-skin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ele-custom-skin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ele-custom-skin/)
 * [Active Topics](https://wordpress.org/support/plugin/ele-custom-skin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ele-custom-skin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ele-custom-skin/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [dudaster](https://wordpress.org/support/users/dudaster/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/adding-post-meta-to-class/#post-12071694)
 * Status: not resolved