---
title: Exclude the Current Post from the Slideshow
description: "The code in this MetaSlider sample will allow you to exclude the current post from a \"Post Feed\" slideshow. This allows you to place a slideshow inside a post without showing that post inside the slideshow. Place this code in…"
url: "https://www.metaslider.com/docs/exclude-the-current-post/"
updated: "2023-01-30"
category: "Slideshow: Code Samples"
---

# Exclude the Current Post from the Slideshow

The code in this MetaSlider sample will allow you to exclude the current post from a "Post Feed" slideshow. This allows you to place a slideshow inside a post without showing that post inside the slideshow.

Place this code in the functions.php file of your theme, or in a custom plugin.

---

We hope that this code will be useful, but do not make guarantees. If you need troubleshooting help, or modifications to this code, please contact MetaSlider Pro support.
