Support

Account

Home Forums Gutenberg How to show a post's custom fields inside wp_query inside block render? Reply To: How to show a post's custom fields inside wp_query inside block render?

  • I’m just guessing here but, in a template file the global $post is always available. This may not be the case in the code you are running. I would try adding

    
    global $post;
    

    before your query.