You need to echo your link:
<a href="https://wordpress.stackexchange.com/questions/54801/<?php echo esc_url( get_category_link("23') ); ?>">
<?php echo get_the_category_by_id(23); ?>
</a>
Related Posts:
- Php string not working in WordPress Functions.php (trying to fetch 1st category for each blog that post appears in the sidebar)
- Php string not working in WordPress Functions.php [duplicate]
- Get the name an the description of a link category
- How to get category URL with the slug?
- Linking products to categories
- force category base – archive pages work WITH & WITHOUT category base slug in url?
- How do I get rid of “category” from my URL structure?
- Need category header to link to category archive list
- Place category Base URL at the end
- How to display post type and category links in foreach WordPress code
- How to get custom posts sub category link
- Why is it so hard to show the URL of the current category and how to do it?
- How to get the last category name of a child category?
- Latest updated categories list query, exclude one from displaying
- Anchor tag generates blank href attribute using echo esc_url( )
- Is there an API to create link categories programmatically?
- wp_insert_link not working
- separate posts to have (kind of) 2 blogs?
- How can I display a list of categories of my posts
- can I ‘combine’ categories as a menu item?
- Show parent category wp_list_categories wordpress
- Showing the category hierarchy as clicked in WordPress, with image and desc
- Linking to the most recent post in my podcast category
- echo $category[0]-> cat_name; shows only one category name
- Creating a linkable category list with post count
- Delete a category
- how to redirect the link to a category in the website
- Make a Custom template for a specific category in wordpress
- Custom EndPoint not working when strip child category in URL
- How to control page order for category links
- How can I disable links for categories but keep showing them on my blog in an Elementor Template?
- How to show all posts of the category in wordpress?
- How To Modify The Loop in archives.php To Have 11 Posts Per Page and CSS Styling
- Sort posts by tags in category pages
- Glossary with Custom Post Type
- Customizing Default Categories Widget
- Displaying custom post type on category pages but not on blog listings
- How to customize the Categories meta box to allow only one category?
- Categories lose hierarchy order once assigned to post
- Search form with Category and Sub Category
- What’s the difference between “parent” and “category_parent” in a WP_Term object?
- get deepest Woocommerce Product Category on Archivepage
- Hide tag and category boxes from the post editor
- Allow dot in wordpress permalinks (only for categories)
- How to know if it’s a child taxonomy?
- Collapse subcategories in post edit screen
- How to provide value for ‘selected’ on wp_dropdown_categories() for ‘multiple’ options
- How to display post images in category view?
- Using permalinks, category slugs, and tag slugs
- WordPress posts page for customer filtering and sorting along with category filter
- Getting all categories even with no products under it?
- Sub Categories Keep Redirecting to Pages With Same Slugs
- Page display certain Category Posts
- Where is the category of a post stored?
- Category title output before opening title tag
- Add image to each podcast series (or category) in headless WordPress instance [closed]
- Setting a default text for excerpts of a particular category
- How to define multi categories posts number
- Trying to get variables in hacked category dropdown
- Insert HTML content in WP Query at specific point
- Get posts of a custom post type from category from taxonomy?
- How can I ask to an existing category?
- Change categories count to include media attachments
- How to Sync Menu, Widgets and other masters from Main Website to its Sub Site
- How can I check which archive has referred the single? [closed]
- How to hide widget from certain category
- Split multiple categories into two columns
- Categories from front-end, checkbox selection doesn’t work
- wp_get_post_categories not work currently on loop.php
- Adding custom post category to categories widget
- Inline If statement to echo CSS [closed]
- Custom Post Type with Sequence ID
- Get category base permalink
- How do i tweak my wp Post title base on category of the post
- I can get posts in all categories. But I want to get the custom post type I created
- WooCommerce showing active product categories on single product page
- how to exclude specific category types (uncategorized) from blog page?
- Show subcategory name selected in specific category woocoommerce
- Menu and category highlighting for a single post
- How to make a page show posts only from specific categories without editing php files
- Confused about category.php template – not working
- How can I display a list of only categories which are marked as ‘featured’ in the backend?
- Adding Category in WP_Query Not Working
- display all posts from category with and without terms in chronological order
- How to assign image on specified category and not show the image on other categories
- category page template for custom post type
- Category not displaying in add post, edit post, and categories page.
- How can I add a Categories page link to a menu? [closed]
- How Can I List Categories by Date?
- Category List in Theme Options Page
- Twitter List Tweets and Delicious Links as Posts
- Return Custom Post Type Categories
- Using tax_query to get single post per category
- get posts from 2 categories. (2 posts)
- Converting Categories (with ACF fields) to custom taxonomies
- Replace category titles inside RSS feed
- Display last category child in permalink
- Elementor : display only one category in loop grid
- How can I filter Query Loop to show only posts in current category?
- Pull total post count for child category and parent if term ID