Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wordpress raw query

global $wpdb;
$myposts = $wpdb->get_results( $wpdb->prepare("SELECT * FROM $wpdb->posts WHERE post_title LIKE '%s'", '%'. $wpdb->esc_like( $title ) .'%') );
Source by wordpress.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #wordpress #raw #query
ADD COMMENT
Topic
Name
5+3 =