/ Published in: PHP
Expand |
Embed | Plain Text
$my_cat_name = "news"; $my_cat_id = get_term_by('name', $my_cat_name, 'category')->term_id;
You need to login to post a comment.
$my_cat_name = "news"; $my_cat_id = get_term_by('name', $my_cat_name, 'category')->term_id;
You need to login to post a comment.