Title: wrap code in  statement?
Last modified: August 20, 2016

---

# wrap code in statement?

 *  [csleh](https://wordpress.org/support/users/csleh/)
 * (@csleh)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/wrap-code-in-statement/)
 * This page has a few different queries that go into an <article> container. I 
   can’t figure out how to include the container code to be INSIDE the queries, 
   so if there aren’t any results the container box won’t show. They are separate
   queries.
    Ideally, the tags for `<article><aside><div></div></aside></article
   >` will only be on the page if there is post meta OR if there are items with 
   same tag.
 * [http://pastebin.com/X2jPCMpw](http://pastebin.com/X2jPCMpw)

The topic ‘wrap code in statement?’ is closed to new replies.

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [if statement](https://wordpress.org/support/topic-tag/if-statement/)
 * [wrap](https://wordpress.org/support/topic-tag/wrap/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [csleh](https://wordpress.org/support/users/csleh/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/wrap-code-in-statement/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
