id summary reporter owner description type status priority milestone component version severity resolution keywords cc focuses 41708 tax_query not (instantly) available from functions.php Digital Noises "I created a tax_query of a custom post type from within a file that I '''referenced in functions.php''' I figured out that I could query all of my custom posts by using: (so I had my positive) {{{#!php 'mycpt'); }}} I assumed it should be easy to specify my quey with a tax_query {{{#!php array( array( 'taxonomy' => ""mytax"", 'field'=>'slug', 'terms'=> array('mytaxterm') ) ) }}} Unfortunately this '''returns no result at all from within functions BUT from within i.e. header.php''' My workaround to retrieve all needed values from all those posts was - calling it via a hook from within functions.php (might be a dumb way?!) I added: {{{#!php