{"id":8639115,"date":"2017-01-10T18:38:38","date_gmt":"2017-01-10T18:38:38","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/yield\/"},"modified":"2017-01-10T18:38:38","modified_gmt":"2017-01-10T18:38:38","slug":"yield","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/yield\/","title":{"rendered":"Yield"},"content":{"rendered":"<p>I wanted to use section and yield unfortunately it&#8217;s not working when @wppost or @wpquery is used in the sections. It injects some of the section content to the top of the &lt;html&gt;. Do you have a solution for that?<\/p>\n<pre><code>@section(&#039;main&#039;)\n    &lt;section role=&quot;main&quot;&gt;\n     @wpquery($query_args)\n content\n    @wpempty\nno content\n    @wpend\n    &lt;\/section&gt;\n@endsection<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-8639115","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8639115","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8639115\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8639115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}