From e2fa2e634d276998ad4c0a7406c231dafd67ce5b Mon Sep 17 00:00:00 2001 From: Leo Baiano Date: Fri, 7 Jun 2019 22:39:57 -0300 Subject: [PATCH] Adiciona the_post() e rewind_posts() para permitir utilizar get_the_author() e get_the_author_meta() fora do loop --- inc/template-tags.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inc/template-tags.php b/inc/template-tags.php index 9af0573..f50c5df 100644 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -91,6 +91,8 @@ function coletivo_site_header(){ */ function coletivo_posted_on() { + the_post(); + $time_string = ''; if (get_the_time('U') !== get_the_modified_time('U')) { $time_string = ''; @@ -115,6 +117,7 @@ function coletivo_posted_on() echo '' . $posted_on . ' ' . $byline . ''; // WPCS: XSS OK. + rewind_posts(); } }