Title: Using shortcode in the excerpt
Last modified: August 21, 2016

---

# Using shortcode in the excerpt

 *  [eavinu](https://wordpress.org/support/users/eavinu/)
 * (@eavinu)
 * [12 years ago](https://wordpress.org/support/topic/using-shortcode-in-the-excerpt/)
 * Hello,
 * I am putting in my shortcode excerpt_strip=no to allow my html, but in order 
   to display images I have a shortcode that represents a php line which produces
   the uploads directory and then I just add the remaining path of the year/month/
   image_name.jpg to show the image on the post.
 * My problem is that on the page where I display the post I need to show the image
   but the shortcode [php function=x] is being stripped so the only url left for
   the image is date and image name without the full path to the uploads folder.
   
   Is there a way to allow shortcodes along with html and not have the shortcode
   stripped?
 * [https://wordpress.org/plugins/list-category-posts/](https://wordpress.org/plugins/list-category-posts/)

The topic ‘Using shortcode in the excerpt’ is closed to new replies.

 * ![](https://ps.w.org/list-category-posts/assets/icon-256x256.png?rev=2517221)
 * [List category posts](https://wordpress.org/plugins/list-category-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/list-category-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/list-category-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/list-category-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/list-category-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/list-category-posts/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [eavinu](https://wordpress.org/support/users/eavinu/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/using-shortcode-in-the-excerpt/)
 * Status: not resolved