I want to list all my category name.
If there are 3 category names in my category such as c1,c2,c3 ,and 2 tags such as tag1,tag2 in my wordpress.
select name from wp_terms;
The result will be
c1,c2,c3,tag1,tag2.
I want to get only c1,c2,c3 (all of them are category names in my wp),without tag1,tag2.
How to write the proper sql statement?
-
This reply was modified 7 years, 10 months ago by elearn2014.