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
- Using same term for slug and category
- Custom color for each category name
- Show posts of one category only with Custom Taxonomy on single.php
- Wrap a chosen category name with div
- Listing Parent, Child and GrandChild Categories and then the PostTitles on Page Template !
- Category tree is flattened inside admin upon saving
- Get woocommerce catogry
- How to get data about category in category.php
- Offline WordPress Application
- New Categories Not Shown In the Post Edit Page
- Different templates for different category tags
- Listing Texts of Which Custom Field is Null
- How to set a filter by category within a customised page
- Post Count for Categories, however not to calculate a total
- categories on attachment page
- A single category with a specific permalink structure differing from the standard set for the rest of the site
- List only child categories within posts
- Get categories list with category name in custom WP_List_Table class
- Setting selected term_id with wp_dropdown_categories?
- Using custom structure prefix showing 404 for sub-categories
- Alpha list no longer works it multiple names
- Jetpack Mobile Theme: when on smartphone on categories the theme suddenly changes to jetpack mobile theme even though it’s deactivated
- IF have_posts contains posts from a certain category
- WooCommerce – how to display product category title above product category images?