Title: Do not show a variable
Last modified: August 30, 2016

---

# Do not show a variable

 *  Resolved [kirchenn](https://wordpress.org/support/users/kirchenn/)
 * (@kirchenn)
 * [11 years ago](https://wordpress.org/support/topic/do-not-show-a-variable/)
 * Suppose I have some snippet:
    Some text {var1}, {var2}, {var3} sample.
 * Where “var1-whatever” are author names, which vary and aren’t always of the same
   amount.
 * Can I do something so that if var3 is left empty (or with some special code in
   it), then {var3} wouldn’t show at all in the resulting snippet?
 * [https://wordpress.org/plugins/post-snippets/](https://wordpress.org/plugins/post-snippets/)

The topic ‘Do not show a variable’ is closed to new replies.

 * ![](https://ps.w.org/post-snippets/assets/icon-128x128.gif?rev=2545587)
 * [Post Snippets - Custom WordPress Code Snippets Customizer](https://wordpress.org/plugins/post-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/post-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-snippets/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [kirchenn](https://wordpress.org/support/users/kirchenn/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/do-not-show-a-variable/)
 * Status: resolved