Title: Hide shortcode but keep function
Last modified: August 20, 2016

---

# Hide shortcode but keep function

 *  [blackbudget](https://wordpress.org/support/users/blackbudget/)
 * (@blackbudget)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/hide-shortcode-but-keep-function/)
 * Here’s my problem
 * I have a shortcode which adds a shopping cart to any page i choose.
 * Problem is that when the page with the shopping cart shows on the front page 
   as a summary decription the shortcode also shows.
 * I want to keep the function of the shortcode but hide the text from any summary
   description.
 * any ideas?

Viewing 1 replies (of 1 total)

 *  [pezius](https://wordpress.org/support/users/pezius/)
 * (@pezius)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/hide-shortcode-but-keep-function/#post-2313459)
 * Basicall same issue here… Is there no information or support on this? It seems
   like a pretty big oversight. It seems logical to me that the preview on the blogroll
   would hide shortcodes who are not complete, so that the code isn’t showing. I
   don’t want my readers, few as they may be, seeing the naked rear end of the code
   that is supposed to display a galley… is there a shortcode to hide a section 
   from the preview?

Viewing 1 replies (of 1 total)

The topic ‘Hide shortcode but keep function’ is closed to new replies.

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [pezius](https://wordpress.org/support/users/pezius/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/hide-shortcode-but-keep-function/#post-2313459)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
