hello,
How I can not display Uncategorised category from post when not select any category in Wordpress
Thanks in Advance
nits**
hello,
How I can not display Uncategorised category from post when not select any category in Wordpress
Thanks in Advance
nits**
Exclude a category displaying under posts:
<?php
foreach((get_the_category()) as $category) {
if ($category->cat_name != 'uncategorized') {
echo '<a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a> ';
}
}
?>
@ John alternate
Thanks for suggestion. I checked it but it is not work.
My problem is i will not display uncategorised when not click any category.But by default it display uncategorised in post
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.