Tagged: blog posts, categories, category, ismael
sounds great, thank you. If the update is out, I will remove my temporary fix.
Hi,
@Chris: Great!
@everyone: For everyone else, please replace the postslider.php file with the following.
And then add this filter in the functions.php file:
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;
}
Best regards,
Ismael
Thanks, Ismael, I deleted my snippet and replaced the complete postslider.php with your pastebin code, works fine, thanks!
Only one thing concerning this topic:
where in your Pastebin code can I add the word
Category:
in front of the particular category name?
Hi,
Add this code in the functions.php file so you don’t have to modify the core files.
function ava_custom_script_mod(){
?>
<script>
(function($){
function a() {
$('.blog-categories.minor-meta').prepend('<p class="blog-categories-title">Category: </p>');
}
a();
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'ava_custom_script_mod');
And this code in the Quick CSS field.
.blog-categories.minor-meta > * {
display: inline-block;
}
For additional inquiries, please create a new thread. Thank you.
Best regards,
Ismael