Wordpress database query using wordpress database class


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $query="select * from $table_name WHERE `post_status` = 'publish' and post_title='".$title."'";
  2. $wpdb->get_results($query);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.