Hello
I am looking to have my blog feed on the home page and the posts have the “Categories” listed below, I selected “Show Categories” under the Enfold Blog Layout options but they dont seem, to be populating. The goal is to have the categories show under the title on the home page and the blog posts
Home Page Link – https://ufcw5.org/ (scroll down until “Lates News” section
Blog Post Example – https://ufcw5.org/2019/10/no-progress-in-macys-negotiations-strike-vote-planned/ –
So I would like the categories displayed under all Post Titles :)
Thanks so much! You guys ROck!
Brian
Hey schwabino,
Sorry for the late reply, I see you are using the “Default(Business)” blog layout, this one doesn’t show the categories, if you use the “Modern Business” it will but the layout is a little different.
To add the categories to the “Default(Business)” blog layout I added this function to the end of your functions.php file, and they are now showing.
add_filter('avf_postslider_show_catergories', 'avf_postslider_show_catergories_mod', 10, 1);
function avf_postslider_show_catergories_mod($category) {
$category = 'show_business';
return $category;
}
But when editing functions.php you should use the child theme, so your changes will not be lost with future theme updates Read about it & Get it here and then apply this code to your child theme functions.php
I recommend before installing your child theme to save a backup of your “Theme settings export file”.
Best regards,
Mike