Title: unlinking filter
Last modified: May 21, 2020

---

# unlinking filter

 *  Resolved [Pawel Slabiak](https://wordpress.org/support/users/pawelslabiak/)
 * (@pawelslabiak)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/unlinking-filter/)
 * Wondering what it would take to create and apply a filter to unlink titles of
   posts displayed via the Display Posts plugin.
 * Bill has already [shared a helpful snippet](https://www.billerickson.net/code/remove-link-title-display-posts-shortcode/)
   that unlinks output of every instance of the Display Posts shortcode.
 * But what if one would like to have some shortcode outputs linked and other shortcode
   outputs delinked? I’m not a WordPress or php expert by any means, but this sounds
   to me like it could be a filter.
 * Forgive me if this question or issue has been already answered somewhere (I have
   searched this forum before posting but could’ve missed something).
 * Would appreciate being pointed in a helpful direction.

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

 *  Plugin Author [Bill Erickson](https://wordpress.org/support/users/billerickson/)
 * (@billerickson)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/unlinking-filter/#post-12898670)
 * Try this snippet instead: [https://gist.github.com/billerickson/dec408fdb8bf9d35ed2acf4876b6e9c2](https://gist.github.com/billerickson/dec408fdb8bf9d35ed2acf4876b6e9c2)
 * It will only run if the shortcode contains unlink_title=”true”.
 * Ex: [display-posts unlink_title=”true”]
 *  Thread Starter [Pawel Slabiak](https://wordpress.org/support/users/pawelslabiak/)
 * (@pawelslabiak)
 * [6 years ago](https://wordpress.org/support/topic/unlinking-filter/#post-12951486)
 * [@billerickson](https://wordpress.org/support/users/billerickson/)
 * Many thanks for taking the time to write and post this snippet.
    The code you
   shared is more helpful than any tips or advice I could’ve hoped for—much appreciated!
    -  This reply was modified 6 years ago by [Pawel Slabiak](https://wordpress.org/support/users/pawelslabiak/).

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

The topic ‘unlinking filter’ 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/)

## Tags

 * [filter](https://wordpress.org/support/topic-tag/filter/)
 * [unlink](https://wordpress.org/support/topic-tag/unlink/)

 * 2 replies
 * 2 participants
 * Last reply from: [Pawel Slabiak](https://wordpress.org/support/users/pawelslabiak/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/unlinking-filter/#post-12951486)
 * Status: resolved