You can use get_the_category();
to display your category in menu
<?php
$categories = get_the_category();
$separator=" ";
$output="";
if($categories){
foreach($categories as $category) {
$output .= '<a " href="'.get_category_link( $category->term_id ).'" title="' . esc_attr( sprintf( __( "View all posts in %s" ), $category->name ) ) . '">'.$category->cat_name.'</a>'.$separator;
}
echo trim($output, $separator);
}
?>
I used the <a>
tag you can remove it for link. I Hope it help you
Related Posts:
- How to highlight all current categories when viewing a single post?
- show count is out of the anchor tag in wp_list_categories
- Customize Bootstrap checkboxes
- What is WebKit and how is it related to CSS?
- Is there a color code for transparent in HTML?
- How can I center an absolutely positioned element in a div?
- How to override the properties of a CSS class using another CSS class
- css transition opacity fade background
- Text-decoration: none not working
- Aligning two divs side-by-side
- CSS transition shorthand with multiple properties?
- Is there an opposite CSS pseudo-class to :hover?
- How to center HTML5 Videos?
- Using custom fonts using CSS?
- How can I transition height: 0; to height: auto; using CSS?
- Display Images Inline via CSS
- Why CSS3 Animation is not working?
- Why is my Bootstrap code not working?
- What is the difference between visibility:hidden and display:none?
- How to make canvas responsive
- How to change version of .css in WordPress?
- Disable SSL / HTTPS for wordpress
- Forcing reload of editor-style.css
- How can I make the wordpress editor apply the selected template?
- How do I remove specific styles from the parent theme css using the child theme css?
- What CSS rules are introduced to core blocks through wp-block-styles?
- How to combine multiple CSS files and concatenate JavaScripts if WordPress recommends enqueuing them?
- When using https, wordpress doesn’t use https for CSS and JS, and admin doesn’t work. How do I fix this?
- How to load different css file depending on language
- Can the Theme Customizer be used to generate static/cachable CSS, and how?
- Woocommerce include custom stylesheet after woocommerce styling [closed]
- raw code vs wordpress
- Inconsistent `body_class()` function
- Is there a way to change the backround color of the native video player in wordpress?
- How to create fa-bars animated menu
- Only column gallery on mobile device
- footer disappear on some pages frequently
- Changing CSS FilePath for All Pages
- CSS Minification
- jQuery UI styles conflicting with TinyMCE dialog
- How to change H1 color only for pages [closed]
- How to add custom color fields to the category edit page?
- Why won’t my custom login page CSS load?
- Display Something in the Header After All Styles are Loaded
- wordpress – site not update after update style.css
- NGINX+wordpress: CSS being served but not applied
- Menu toggle bar works only on some pages in WordPress
- After moving my site, sub-menus are not showing [closed]
- Different CSS class by category
- Including CSS files in HEAD based on page content
- Video header on mobile, disappears behind header and content
- Free theme and css/bootstrap.css is not overridden in the child theme
- How to style text in WordPress
- WordPress hide the username/password fields in login page
- Equal height sections in custom Headway Theme
- Superfish and WordPress: Active Color Problem
- Links on the page, when being printed, have the URL next to them
- How do I minify ‘@import’ css files with wp-minify?
- Selector for page to set up scrolling plugin
- the_post layout
- How To Remove All Other Plugins CSS
- Hot reload failing to update file changes
- How can I hide this custom slider while Elementor editing window is open?
- My css don’t get applied on the costume widget
- Stop custom Gutenberg styles taking over other admin bits?
- Change post featured image
- Is there a way to cache mailchimp css on wordpress?
- Removing a CSS rule from Custom Taxonomy
- How to get different html tags from the content using regex?
- style.css not working but customizer additional css does?
- Performance hit of Inline CSS
- Remove top bar header
- How to disable all css from the theme for a specific post type page
- Change WP Child theme CSS for WP Bootstrap Starter Theme
- Divi Theme HTML code is different in View Page Source than in the Firefox Inspector
- use css for resize image into mobile thumbnail
- How to set up workspaces with Chrome & WordPress?
- How to Position Read More link after post excerpt?
- Add WordPress Core CSS into editor-style.css
- Controling css order
- Why are my parent styles loading after my child styles?
- WordPress crop image not working [closed]
- Which files can be replaced in a child theme?
- How to implement styling of div in the front end using plugin admin meta box settings?
- Browser stacks different versions of style.css
- How do i make a sidebar background color? [closed]
- How to remove audio player styles added by mediaelement.js JavaScript?
- CSS messes up when CACHE is cleared
- Twenty Fourteen Theme – Moving left sidebar to the right
- WordPress doesn’t respect “ver” parameter in styles [closed]
- why does WordPress custom css convert alpha to hex values?
- MY CSS FILE IS MISBEHAVING. IS NOT WORKING WELL ON MY WP SITE [closed]
- Image is very blurry
- how to change the colour of this background
- Can I upload my HTML/CSS/Javascript game onto a WordPress page?
- “Plate” theme broken after update
- adding additional css classes have no effect within block editor
- How to hide my categories pages’ names, and how as well to reduce the space beween my sidebar’s widgets?
- Busting Browser Cache when updating stylesheet of WordPress website
- adjust posts size into columns wordpress