Tagged: author name, category, magazine
Hi,
I do not want to show post date on top of the magazine entries, I would like to display the category and author instead; something like:
in Macros / by Peter Piper
How can I do this?
Kind Regards,
Chapdes
Hey chapdes!
Try changing line 583 in /enfold/config-templatebuilder/avia-shortcodes/magazine.php from this.
$output .= "<time class='av-magazine-time updated' {$markupTime}>".$time."</time>";
To this.
$category = get_the_category();
$output .= "in " . $category[0]->cat_name . " / by " . get_the_author();
Cheers!
Elliott
Hi Elliot,
Your code is pulling the author but not the category.
Look at: http://formulas-excel.com/comentarios/
Regards,
Chapdes
I’m also curious!
Hey!
Hmm, are you sure there is a category assigned? I tried checking your link again but I did not see any magazine elements in the page.
Best regards,
Elliott