-
AuthorPosts
-
January 31, 2015 at 2:47 am #388672
How can I show/display the date and category with the grid entry layout in blog posts?
February 1, 2015 at 5:23 pm #389032Hi 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,
ElliottFebruary 3, 2015 at 8:04 am #389871Hi 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.
February 3, 2015 at 9:01 pm #390367Hey!
Send us a link to your page and make sure your displaying the date meta in Dashboard > Enfold > Blog Layout.
Best regards,
ElliottAugust 10, 2015 at 2:18 pm #485313Hey 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,
SebastiaanAugust 10, 2015 at 2:20 pm #485317Hi!
Yes, please see – http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/
Regards,
YigitAugust 10, 2015 at 2:40 pm #485342Fast response and works like a charm! Thank you!
Regards,
SebastiaanAugust 10, 2015 at 2:42 pm #485343Hi!
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 -
AuthorPosts
- The topic ‘Display Date & Category Blog Posts Grid Layout’ is closed to new replies.