Calling Category name without the link
What you are looking for is get_the_category(). Retrieve a list of the categories, and then run a loop and only output their names: $categories = get_the_category(); if ( ! empty( $categories ) ) { foreach( $categories as $category ){ echo esc_html( $category->name ); } } This function returns an array of WP_Term objects. You can … Read more