Title: [Plugin: Display Posts Shortcode] Custom fields clarification
Last modified: August 20, 2016

---

# [Plugin: Display Posts Shortcode] Custom fields clarification

 *  Resolved [peterprossedi](https://wordpress.org/support/users/peterprossedi/)
 * (@peterprossedi)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-display-posts-shortcode-custom-fields-clarification/)
 * hi everyone……..and Bill great plugin……
 * im using your plugin to display numerous lists on the same page some of which
   i want to show a custom field and some not. Ive used your filter ([https://gist.github.com/1209601](https://gist.github.com/1209601))
   successfully its just that this way the code is always automatically showing.
   how can i add the extension to the shortcode to show something like custom_field_name
   =”true” to activate it.
 *  also it is also importing the <p> tags from the text i am calling.
 * [http://wordpress.org/extend/plugins/display-posts-shortcode/](http://wordpress.org/extend/plugins/display-posts-shortcode/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Bill Erickson](https://wordpress.org/support/users/billerickson/)
 * (@billerickson)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-display-posts-shortcode-custom-fields-clarification/#post-2976724)
 * If you pass an additional parameter to the shortcode, it will be available in
   $atts. So before you display your custom field, check for something like:
 *     ```
       if( isset( $atts['custom_field_name'] ) && "true" == $atts['custom_field_name'] )
       	echo $my_custom_field;
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Display Posts Shortcode] Custom fields clarification’ 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: [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-display-posts-shortcode-custom-fields-clarification/#post-2976724)
 * Status: resolved