Hello everyone in wordpress I was wondering how to QUERY the POST TITLE and the TAGS inside those POST. I have now queried the POST title POST date but Im missing the POST TAGS because it is located on different table and I dont know how to Select the TAGS inside each POST using query. Thank you, any reply is deeply appreciated thank you very much this is my code SELECT ID,post_title,guid,post_date FROM wp_posts WHERE post_type='post' AND post_status ='publish'
Hello everyone in wordpress I was wondering how to QUERY the POST TITLE and
Share
No need to run sql queries, you can use wordpress functions.
For tags you can use get_the_tags
http://codex.wordpress.org/Function_Reference/get_the_tags
For title you can use
http://codex.wordpress.org/Function_Reference/get_the_title
Make sure to use these codes inside the ‘loop’