Hi I am trying to use the blog grid layout to show featured image, title and category for the blog page. I used the layout builder on the page to create a custom layout, but there is no option to show category in the grid post layout. I found this article: https://kriesi.at/support/topic/dynamically-add-the-category-name-to-grid-layout-source-code/ and tried adding the code replacement here into my child theme, but it doesn’t do anything (and the replacement option for line 253 is an empty line, so a bit confused on that part). Can you provide a cleaner way of achieving this? Thanks!
Hey janetgot,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Best regards,
Victoria
Sure. Thanks for looking
I don’t understand. I have created a Page, used the Avia Builder and added in a “Blog Posts” section, which is set to Grid Style. There are no meta options there. There are options in the Enfold Blog page settings, and I have Category checked off. It doesn’t show… if I just create a blank page and set to Grid, and have Category checked off, it still doesn’t show the category.
Hi,
Can we please access your backend?
Best regards,
Basilis
Yes, login info sent earlier, but here it is again
Hi,
Thank you for the info.
You can use the following filter to display the categories on a grid layout.
add_filter('avf_postslider_show_catergories', 'avf_postslider_show_catergories_mod', 10, 1);
function avf_postslider_show_catergories_mod($category) {
$category = 'show_business'; // or show_elegant
return $category;
}
Best regards,
Ismael
Perfect. Thanks!
Hi,
Glad that Ismael helped you. Thanks for using Enfold! Have a nice weekend :)
Best regards,
Nikko