Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #531618

    Hi,

    I do not want to show post date on top of the magazine entries, I would like to display the category.

    thx ;)

    #532065

    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

    #532517

    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

    #533010

    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

    #533939

    Thanks for the help, it works very well

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Category in Magazine’ is closed to new replies.