How to get category name in wordpress by post id sql query?

Go to your Database and click on Table and run this Sql Code

SELECT term_id as id FROM wp_terms WHERE slug = 'learn';

administrator

Leave a Reply

Your email address will not be published. Required fields are marked *