Title: Yield
Last modified: January 10, 2017

---

# Yield

 *  [webteilchen](https://wordpress.org/support/users/webteilchen/)
 * (@webteilchen)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/yield/)
 * I wanted to use section and yield unfortunately it’s not working when [@wppost](https://wordpress.org/support/users/wppost/)
   or [@wpquery](https://wordpress.org/support/users/wpquery/) is used in the sections.
   It injects some of the section content to the top of the <html>. Do you have 
   a solution for that?
 *     ```
       @section('main')
           <section role="main">
            @wpquery($query_args)
        content
           @wpempty
       no content
           @wpend
           </section>
       @endsection
       ```
   

The topic ‘Yield’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/blade_ffffff.svg)
 * [Blade](https://wordpress.org/plugins/blade/)
 * [Support Threads](https://wordpress.org/support/plugin/blade/)
 * [Active Topics](https://wordpress.org/support/plugin/blade/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/blade/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/blade/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [webteilchen](https://wordpress.org/support/users/webteilchen/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/yield/)
 * Status: not resolved