wordpress custom php use wp query

Solutions on MaxInterview for wordpress custom php use wp query by the best coders in the world

showing results for - "wordpress custom php use wp query"
Stefania
16 Mar 2018
1if ( ! defined('ABSPATH') ) {
2    /** Set up WordPress environment */
3    require_once( dirname( __FILE__ ) . '/wp-load.php' );
4}
5
6global $wpdb;
7$results = $wpdb->get_results( "SELECT * FROM {$wpdb->prefix}options WHERE option_id = 1", OBJECT );