I want to get class ID from wp_terms where the name is "services" I do this:
$ myrows = $ wpdb-> Query ("SELECT * FROM wp_terms WHERE name = 'services'"); If (! $ Myrows) {echo "wrong" Mysql_error (); } And {echo $ myrows - & gt; Id; } But it does not print anything. Is it wrong here?
It depends on what you want to do, but can you try it ?
get_cat_ID echo ('services'); View
No comments:
Post a Comment