Title: Post Format filtering
Last modified: March 6, 2024

---

# Post Format filtering

 *  Resolved [bonnie333](https://wordpress.org/support/users/bonnie333/)
 * (@bonnie333)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/post-format-filtering/)
 * Hello Christoph,
 * I am excited about your plugin, I already (successfully) created few Random Post
   buttons for my website I am building,
 * but I am struggling with creating buttons for which I need to exclude “Post Format”,
   specifically “Post Format – Link” (the theme of my website offers Standard, Video,
   Audio, Gallery and Link Post Format options). 
   I haven´t found the solution neither
   in the documentation nor in this forum (maybe I just missed it?), and I´m no 
   professional in this field, so could you please tell me what exactly I need to
   add to the URL to exclude Link posts?
 * Thank you kindly for your help, and for the plugin

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

 *  Plugin Author [Christoph](https://wordpress.org/support/users/camthor/)
 * (@camthor)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/post-format-filtering/#post-17480868)
 * I did a quick search of [possible queries for post_type](https://developer.wordpress.org/reference/classes/wp_query/#post-type-parameters)
   but couldn’t find any function to _exclude_ one. The only workaround that I see
   is to list all _included_ post types separated by commas, such as `&post_type
   =post,video,audio`.
 * In a button, there should be something like `params="post_type=post,video,audio"`
 * Does that help you?
    -  This reply was modified 2 years, 3 months ago by [Christoph](https://wordpress.org/support/users/camthor/).
      Reason: added info for button
 *  Thread Starter [bonnie333](https://wordpress.org/support/users/bonnie333/)
 * (@bonnie333)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/post-format-filtering/#post-17484254)
 * Thank you so much for your fast support
 * It seems logical. But unfortunately it doesn´t work : (
 * Later, I tagged all the Link posts with one tag to use a filter that excludes
   that tag, just like it is done with a Category (&cat=-“IDnumber”), &tag_id=-“
   IDnumber”, but it didn´t work either, and then I realized there is no filter 
   for excluding the Tag in “Examples”, only filter that inlcudes the tag:
 * **Additional filter: tag**
 * **Redirect to the latest post with the tag [ID](https://documentation.chattymango.com/documentation/redirect-url-to-post/faq-and-troubleshooting/where-do-i-find-the-ids-of-tags-posts-or-categories-3/)
   20.**
 *     ```wp-block-code
       www.example.com/?redirect_to=latest&tag_id=20
       ```
   
 * So, to exclude a Tag is also not possible?
    -  This reply was modified 2 years, 3 months ago by [bonnie333](https://wordpress.org/support/users/bonnie333/).
 *  Plugin Author [Christoph](https://wordpress.org/support/users/camthor/)
 * (@camthor)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/post-format-filtering/#post-17485904)
 * You tried `tag__not_in=20`?
 * If you don’t see the expected posts, you get more information by adding `&rutpdebug`.
   See [here](https://documentation.chattymango.com/documentation/redirect-url-to-post/faq-and-troubleshooting/what-to-try-first-if-something-doesnt-work/).
 *  Thread Starter [bonnie333](https://wordpress.org/support/users/bonnie333/)
 * (@bonnie333)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/post-format-filtering/#post-17492148)
 * This works perfectly!
 * Christoph, thank you very much for your help & for this very useful plugin
 * Best wishes ~

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

The topic ‘Post Format filtering’ is closed to new replies.

 * ![](https://ps.w.org/redirect-url-to-post/assets/icon-256x256.png?rev=1742449)
 * [Random Post Plugin - Redirect URL to Post](https://wordpress.org/plugins/redirect-url-to-post/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redirect-url-to-post/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redirect-url-to-post/)
 * [Active Topics](https://wordpress.org/support/plugin/redirect-url-to-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redirect-url-to-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redirect-url-to-post/reviews/)

## Tags

 * [button](https://wordpress.org/support/topic-tag/button/)
 * [filter](https://wordpress.org/support/topic-tag/filter/)
 * [filtering](https://wordpress.org/support/topic-tag/filtering/)
 * [post format](https://wordpress.org/support/topic-tag/post-format/)

 * 4 replies
 * 2 participants
 * Last reply from: [bonnie333](https://wordpress.org/support/users/bonnie333/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/post-format-filtering/#post-17492148)
 * Status: resolved