Office Address

41/D, West Brahmondi, Narsingdi

Phone Number

+880-1975374887

Email Address

[email protected]

Use this code on your themes functions.php to add current category id on body and post
[php] function category_id_class($classes) {
global $post;
foreach ((get_the_category($post->ID)) as $category)
$classes[] = ‘cat-‘ . $category->cat_ID . ‘-id’;
return $classes;
}
add_filter(‘post_class’, ‘category_id_class’);
add_filter(‘body_class’, ‘category_id_class’);
[/php]

Written by

Maidul Islam

I am a freelance web developer.Like to share what i learn.