我想插入放置在WordPress文件夹中的外部JavaScript。如果我包含了使用脚本标签,它会显示"<“预期错误,下面是我的代码
global $wpdb;
include("/asset/php/chart4php/inc/chartphp_dist.php");
$p = new chartphp();
$p->data_sql = $wpdb->get_results("select t2.name, count(t1.id) as score from custom_status as t2 left join wpsp_