Hi,
I do not want to show post date on top of the magazine entries, I would like to display the category.
thx ;)
Hi danytelles,
Could you provide us with a link to the site in question so that we can take a closer look please?
Thanks,
Rikard
Follow the link from the site “” The more you can not see anything because there MAINTENANCE plugin I can not shut it down.
Follows a print to understand what I need, I would show the category.
http://www.lonacristaleventos.com.br/wp-content/uploads/2015/11/Lona-erro.jpg
Hi!
Edit the config-templatebuilder > avia-shortcodes > magazine.php file. Look for this code around line 584:
$output .= "<time class='av-magazine-time updated' {$markupTime}>".$time."</time>";
.. replace it with:
$taxonomies = get_object_taxonomies(get_post_type($entry->ID));
$cats = '';
$excluded_taxonomies = array_merge( get_taxonomies( array( 'public' => false ) ), array('post_tag','post_format') );
$excluded_taxonomies = apply_filters('avf_exclude_taxonomies', $excluded_taxonomies, get_post_type($entry->ID), $entry->ID);
if(!empty($taxonomies))
{
foreach($taxonomies as $taxonomy)
{
if(!in_array($taxonomy, $excluded_taxonomies))
{
$cats .= get_the_term_list($entry->ID, $taxonomy, '', ', ','').' ';
}
}
}
$output .= "<span class='av-magazine-cats'>".$cats."</span>";
Cheers!
Ismael
Thanks for the help, it works very well