Estou tentando exibir o shortcode [produtos] em uma nova página que criei. Os produtos não são exibidos (mas o shortcode em si não é exibido como texto (como seria se não fosse renderizado, ou seja, o shortcode funciona, mas não exibe nada). Verifiquei os logs e ele apresenta estes erros:
Function is_post_type_archive was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false.
Function is_page was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false.
Function is_singular was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false.
Function is_post_type_archive was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false.
O erro ocorre em /home/miiriya/public_html/wp-includes/functions.php na linha 6121
Existe alguma solução alternativa que eu possa adicionar ao meu functions.php para permitir que os produtos sejam adicionados a uma página?
Digamos que a página onde estou tentando exibi-lo seja, por exemplo: https://www.example.com/fashion-beauty/
Vi algo parecido aqui, mas não sei como implementar:
https://wordpress.stackexchange.com/questions/242910/is-search-was-called-incorretamente
Peço desculpas pelo incômodo.