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


You need to login to view comments.