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 set the permalink of category is example.com/cat_id?
- how to display all categories in wordpress?
- How to create an automatic MultiColoumn MegaMenu with Categories WordPress
- Is There a Difference Between Taxonomies and Categories?
- Get Posts Under Custom Taxonomy
- Adding Fields to the Category, Tag and Custom Taxonomy Edit Screen in the WordPress Admin?
- List all subcategories from category
- How To Find Out WordPress Category Table in MYSQL?
- Add custom field to Category
- Get Category ID inside Category template
- Only one category per post
- Adding categories to custom post type in permalink
- WordPress Multisite – global categories
- Get the children of the parent category
- Get posts from sites in Multisite?
- add_action hook for completely new post?
- Can I add a Category Metabox to attachment?
- WP REST API: filter by category 1 AND category 2
- How to display related posts from same category?
- How to Display Product specific to a category with WooCommerce Plugin? [closed]
- How can I allow commas in tag names?
- How To Get Parent Category Slug of Current Post
- Display All Products by Category with WooCommerce
- What is the difference between a “tag” and a “category”?
- Display current category title on category page
- Is there an easy way to make a meta box have the tabs like the Categories meta box has?
- Hide specific categories from category widget
- How to check if I’m on the last page of posts?
- How to change permalink structure for custom post type and it’s taxonomies?
- Get the first post term
- Display posts from the same category using next/previous post link
- How would I get a taxonomy/category list inside a Gutenberg block?
- Can I set a default featured image for a category?
- Check if a post is in any child category of a parent category
- How to export and import taxonomies (category, tag and/or custom taxonomy) and their terms
- How to show all posts of the category in wordpress?
- Force category choice before creating new post?
- WP_Query by a category id and a custom post_type
- Gutenberg editor add a custom category as wrapper for custom blocks
- How to show related posts by category
- WooCommerce: List All Categories
- How to get category and archive title?
- Get category ID from category slug (not working)
- How do I remove “Uncategorized” from posts with more than 1 category?
- How to add category to: ‘wp-admin/post-new.php’?
- Remove the category/taxonomy description field?
- Get rid of WordPress category, tag and author archives?
- Individual rss feed entry length for categories?
- How can I create a category landing page followed by pages of posts?
- Remove parent category from permalink? Basically only have the child category?
- How To Create A Paginated List Of All Categories On My Site?
- Get the category from an ID of a product?
- Custom permalink structure leads to be 404 on pagination
- Add ‘Description’ to taxonomy ‘Quick Edit’
- Retrieve Product category ‘NAME’ by product category ID – WooCommerce?
- Display random categories on the front page (Finding and Editing Theme Functions)
- Posts URL structure like site.com/category/the-post-title
- Can’t custom taxonomies have same terms (slugs) as categories?
- How to get permalinks with category base working with sub-categories
- How to remove the term “category” from category pagination?
- Using wp_category_checklist in a widget
- Including categories in search results
- Use category base slug in posts’ permalink
- Filtering a custom post type by custom taxonomy in archive template
- WP 3.9 TinyMCE no longer loads on category description editor
- On the category page, get the category object
- Exclude or Include category ids in WP_Query
- How to get WooCommerce Product Category Link by ID?
- Get only the top level categories using get_categories() without foreach loop