Title: BMag's Replies | WordPress.org

---

# BMag

  [  ](https://wordpress.org/support/users/bmag/)

 *   [Profile](https://wordpress.org/support/users/bmag/)
 *   [Topics Started](https://wordpress.org/support/users/bmag/topics/)
 *   [Replies Created](https://wordpress.org/support/users/bmag/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/bmag/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/bmag/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/bmag/engagements/)
 *   [Favorites](https://wordpress.org/support/users/bmag/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Display Posts - Easy lists, grids, navigation, and more] thumbnail without link](https://wordpress.org/support/topic/thumbnail-without-link/)
 *  Thread Starter [BMag](https://wordpress.org/support/users/bmag/)
 * (@bmag)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/thumbnail-without-link/#post-3702099)
 * I tried to add this code to solve the image link but it added back the link to
   the title
 *     ```
       /**
        * Adding additional fields to Display Posts Shortcode
        * This adds the field 'linkedimage', and if false the image isn't linked
        * @author Bill Erickson
        * @link http://wordpress.org/extend/plugins/display-posts-shortcode/
        *
        * @param string $output the original markup for an individual post
        * @param array $atts all the attributes passed to the shortcode
        * @param string $image the image part of the output
        * @param string $title the title part of the output
        * @param string $date the date part of the output
        * @param string $excerpt the excerpt part of the output
        * @param string $inner_wrapper what html element to wrap each post in (default is li)
        * @return string $output the modified markup for an individual post
        */
   
       add_filter( 'display_posts_shortcode_output', 'be_display_posts_linked_image', 10, 7 );
       function be_display_posts_linked_image( $output, $atts, $image, $title, $date, $excerpt, $inner_wrapper ) {
   
       	// First check if there's a image and if 'linkedimage' equals 'false'
       	if ( !empty( $image ) && 'false' == $atts['linkedimage'] )
       		// Now let's rebuild the image
       		$image = '<span class="image">'. get_the_image() .'</span>';
   
       	// Now let's rebuild the output.
       	$output = '<' . $inner_wrapper . ' class="listing-item">' . $image . $title . $date . $excerpt . '</' . $inner_wrapper . '>';
   
       	// Finally we'll return the modified output
       	return $output;
       }
       ```
   
 * Any recommendations?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Display Posts - Easy lists, grids, navigation, and more] [Plugin: Display Posts Shortcode] Return specific posts](https://wordpress.org/support/topic/plugin-display-posts-shortcode-return-specific-posts/)
 *  [BMag](https://wordpress.org/support/users/bmag/)
 * (@bmag)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-display-posts-shortcode-return-specific-posts/#post-2433225)
 * I tried [display-posts category=”interviews” posts_per_page=”-1″ include_date
   =”true” order=”ASC” orderby=”title” image_size=”thumbnail” include_excerpt=”true”
   include_author=”true” wrapper=”div” **id=”-4553″**] but it shows ONLY that post
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Display Posts - Easy lists, grids, navigation, and more] [Plugin: Display Posts Shortcode] Return specific posts](https://wordpress.org/support/topic/plugin-display-posts-shortcode-return-specific-posts/)
 *  [BMag](https://wordpress.org/support/users/bmag/)
 * (@bmag)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-display-posts-shortcode-return-specific-posts/#post-2433224)
 * Hi Bill,
 * How would I exclude a specific post or posts?
 * Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)