http://codex.wordpress.org/Function_Reference/get_term_by
example:
<?php
$link_id = 23;
$link_category = get_term_by('id',$link_id,'link_category');
var_dump($link_category);
?>
Related Posts:
- How do I get the category URL from get_the_category?
- How do I use the same post slug for different Categories?
- Rewrite rule page url with category
- Create terms when registering taxonomy?
- How to create non-unique sub-category slugs?
- Rewrite category slug
- Using same slug name for a page and category
- Add category to custom post type automatically, using category slug
- I use same slug name for category and page
- Divi change project slug based on category
- Removing the number in a category slug
- Add custom taxonomy terms to WordPress menu dynamically & append #slug to url
- Plural Category Base Slug On Category Archive Page
- Return category slug / title from category ID
- Duplicate Category and Page URL loads Category instead of the Page
- Category slug $_SERVER[‘REQUEST_URI’];
- 403 forbidden on one page only
- Using a portfolio_category slug in wordpress URL
- How to get category URL with the slug?
- Categories vs. Page Site Organization
- WooCommerce duplicate sub categories and product slugs
- Need to pull parent category and slug – only pulling daughter category
- Linking products to categories
- force category base – archive pages work WITH & WITHOUT category base slug in url?
- Pagination for category slug returns 404 when page >= 2
- How do I get rid of “category” from my URL structure?
- Displaying a full post instead of a slug per category?
- wordpress sub-category ( lowercase letters + non-latin characters ) = 404
- The default code for “posts_nav_link” on category.php isn’t working
- Place category Base URL at the end
- Mod_Rewrite to show only last subcategory in URL
- How to display post type and category links in foreach WordPress code
- Get posts from specific taxonomy term
- Why is it so hard to show the URL of the current category and how to do it?
- how to get full category path including parent and subcategories
- Automatically redirect a page to a category that share the same slug
- Use the category name instead of category slug in permalinks
- How do I add a tag slug to a category URL to filter posts?
- Change of category structure will cause two kinds of URLs for one post
- Change slug of Standard wp Post category
- Latest updated categories list query, exclude one from displaying
- Anchor tag generates blank href attribute using echo esc_url( )
- How to remove the category from post slug
- Ordering categories by slug vs. name
- Echo Category Nicename
- 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?
- pagination 404 error, same slug home and categories
- Different post slug based on archive
- A different permalink structure for different categories
- OK to redirect the root WordPress category slug?
- Show parent category wp_list_categories wordpress
- How Can I Use Equal And Question Mark In Category Slug?
- How to remove category name for only one category?
- How to prevent WordPress from redirecting single page to prefixed category archive with same name?
- 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
- Include a page’s “category” in its URL
- Using the slug of a custom post category as prefix for the underlying custom post slugs
- Creating a linkable category list with post count
- Change the full slug for a specific category?
- Get category from slug list
- How to auto update post title and slug with category name when post status is updated
- Hide category name using mod_rewrite
- Show only one of the categories of a post in the breadcrumb?
- hierarchical taxonomy in permalinks? using same slug
- woocommerce – products by category slug? [closed]
- Category slug in in loop always the same?
- How can I get rid of the the category suffix–NOT “prefix” (i.e. foo-1, foo-2, etc)
- How to get category slug link? ( include parent categories)
- Custom EndPoint not working when strip child category in URL
- How to add custom prefix before category base for category page URL?
- category id (term_id) in url instead of slug
- Disable Category Link
- Using same term for slug and category
- How to create an automatic MultiColoumn MegaMenu with Categories WordPress
- Is There a Difference Between Taxonomies and Categories?
- 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
- WordPress Multisite – global categories
- Get the children of the parent category
- Get posts from sites in Multisite?
- WP REST API: filter by category 1 AND category 2
- 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”?
- Is there an easy way to make a meta box have the tabs like the Categories meta box has?
- How to check if I’m on the last page of posts?
- 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
- Force category choice before creating new post?