Title: display_posts_shortcode_post_class
Last modified: March 20, 2020

---

# display_posts_shortcode_post_class

 *  Resolved [Neoqueenhoneybee](https://wordpress.org/support/users/neoqueenhoneybee/)
 * (@neoqueenhoneybee)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/display_posts_shortcode_post_class/)
 * How does this get placed into the shortcode; I am reading that you can include
   it, and have tried a couple of ways I thought might work, but I have not seen
   anywhere how it’s placed into the shortcode properly.
 * Example
    [display-posts include_excerpt=”false”  category=”test” image_size=”
   medium” wrapper=”div” wrapper_class=”display-posts-listing grid” meta_key=”_thumbnail_id”
   display_posts_shortcode_post_class???]
 * Ultimate goal is this person’s need exactly, but there was no resolution: [https://wordpress.org/support/topic/add-category-or-tag-as-a-class-in-post-link/#utm_medium=referral&utm_source=facebook.com&utm_content=social](https://wordpress.org/support/topic/add-category-or-tag-as-a-class-in-post-link/#utm_medium=referral&utm_source=facebook.com&utm_content=social)
 * Thanks.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Bill Erickson](https://wordpress.org/support/users/billerickson/)
 * (@billerickson)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/display_posts_shortcode_post_class/#post-12566471)
 * `display_posts_shortcode_post_class` is a PHP filter, not a shortcode parameter.
   It is not added to the shortcode, but used in the code of your theme or plugin.
 * Filters allow you to modify how Display Posts works using code. You should place
   your customizations in a [core functionality plugin](https://www.billerickson.net/core-functionality-plugin/)
   or use [Code Snippets](https://wordpress.org/plugins/code-snippets/).
 * Here is a tutorial for adding categories classes: [https://displayposts.com/2019/01/03/add-category-classes/](https://displayposts.com/2019/01/03/add-category-classes/)

Viewing 1 replies (of 1 total)

The topic ‘display_posts_shortcode_post_class’ is closed to new replies.

 * ![](https://ps.w.org/display-posts-shortcode/assets/icon-256x256.jpg?rev=2940963)
 * [Display Posts - Easy lists, grids, navigation, and more](https://wordpress.org/plugins/display-posts-shortcode/)
 * [Support Threads](https://wordpress.org/support/plugin/display-posts-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/display-posts-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/display-posts-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/display-posts-shortcode/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Bill Erickson](https://wordpress.org/support/users/billerickson/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/display_posts_shortcode_post_class/#post-12566471)
 * Status: resolved