Publicidade

If you use get_the_content() before the global $wp_query object is set, the postmeta are not well generated because generate_postdata() use $wp_query.
To get around this issue, just construct a global $wp_query object before calling get_the_content()

asdfad

8 de abril de 2022

Primeiro Post

If you use get_the_content() before the global $wp_query object is set, the postmeta are not well generated because generate_postdata() use $wp_query. To get around this issue, just construct a global […]