Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #388672

    How can I show/display the date and category with the grid entry layout in blog posts?

    #389032

    Hi courtneysoliday!

    The date should already be displayed, http://kriesi.at/themes/enfold/blog/blog-grid/.

    For the category open up /enfold/config-templatebuilder/avia-shortcodes/postslider.php and find line 385.

    $markup = avia_markup_helper(array('context' => 'entry_time','echo'=>false, 'id'=>$the_id, 'custom_markup'=>$custom_markup));
    

    And add this above it.

    $taxonomies  = get_object_taxonomies(get_post_type($the_id));
    $cats = '';
    $excluded_taxonomies =  apply_filters('avf_exclude_taxonomies', array('post_tag','post_format'), get_post_type($the_id), $the_id);
    
    if(!empty($taxonomies))
    {
    	foreach($taxonomies as $taxonomy)
    	{
    		if(!in_array($taxonomy, $excluded_taxonomies))
    		{
    			$cats .= get_the_term_list($the_id, $taxonomy, '', ', ','').' ';
    		}
    	}
    }
    
    if(!empty($cats))
    {
    	$output.= '<span class="blog-categories minor-meta">'.__('in','avia_framework')." ";
    	$output.= $cats;
    	$output.= '</span><span class="text-sep text-sep-cat">/</span>';
    }
    

    Best regards,
    Elliott

    #389871

    Hi Elliott,
    Thanks for getting back to me. Browsing these forms have been so helpful.

    I see it in your blog link but I am referring to when you insert “blog posts” into individual pages..as a content element..and select “grid layout”…should the date automatically display there? It is not for me. Please advise. Thank you.

    #390367

    Hey!

    Send us a link to your page and make sure your displaying the date meta in Dashboard > Enfold > Blog Layout.

    Best regards,
    Elliott

    #485313

    Hey Elliot,

    is there a way to edit this in the child theme? Just to make sure I don’t need to edit it after updating the theme or wordpress?

    Best Regards,
    Sebastiaan

    #485317
    #485342

    Fast response and works like a charm! Thank you!

    Regards,
    Sebastiaan

    #485343

    Hi!

    You are welcome, we are always happy to help :)
    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Regards,
    Yigit

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Display Date & Category Blog Posts Grid Layout’ is closed to new replies.