DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PHP
get taxonomy term id from slug - WordPress
<?php $term = get_term_by('slug', $slug, 'category'); $name = $term->name; $id = $term->term_id; ?>
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#taxonomy
#term
#id
#slug
#WordPress
ADD COMMENT
Topic
COMMENT
Name
9+2 =
Submit