usar conexão wordpress em arquivos soltos

global $wpdb;
if(!isset($wpdb)){
//the '../' is the number of folders to go up from the current file to the root-map.
require_once('../../../../wp-config.php');
require_once('../../../../wp-includes/wp-db.php');
}

Comentários

Postagens mais visitadas deste blog

Instalação NetBeans