Title: [Plugin: Content Types] Slugs for custom fields?
Last modified: August 19, 2016

---

# [Plugin: Content Types] Slugs for custom fields?

 *  [Andrew](https://wordpress.org/support/users/andrewkantor/)
 * (@andrewkantor)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-content-types-slugs-for-custom-fields/)
 * All right, maybe this is obvious but I’m missing it. Help!
 * I’ve created several post/content types, and they each have some custom fields.
   For example, the post type “Event” might have fields for “Speaker,” and “Target
   Audience.”
 * So far so good. But what are the slugs of these fields? That is, how can I get
   the contents to appear on the site when I use get_post_meta? In the above example,
   would I use “Target_Audience”? Or “targetaudience”?
 * I want to be able to do something like
 * `$audience = get_post_meta($post->ID, 'target_audience', true);`
 * but I need to slug to do it, obviously. (Also, is there a way to set the slug,
   just as I can set it for the custom post type itself?)
 * Thanks!
 * [http://wordpress.org/extend/plugins/content-types-wordpress-plugin/](http://wordpress.org/extend/plugins/content-types-wordpress-plugin/)

The topic ‘[Plugin: Content Types] Slugs for custom fields?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/content-types-wordpress-plugin.svg)
 * [Content Types](https://wordpress.org/plugins/content-types-wordpress-plugin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/content-types-wordpress-plugin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/content-types-wordpress-plugin/)
 * [Active Topics](https://wordpress.org/support/plugin/content-types-wordpress-plugin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/content-types-wordpress-plugin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/content-types-wordpress-plugin/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Andrew](https://wordpress.org/support/users/andrewkantor/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-content-types-slugs-for-custom-fields/)
 * Status: not resolved