WP_Query 获取当前页面内容 $now_id=get_the_ID(); $now_post=get_post($now_id); $now_content=$now_post->post_content; /* 获取当前文章内容,根据文章内容来获取 */ $now_id=get_the_ID(); $now_post=get_post($now_id); $now_content=$now_post->post_content; $content_json=json_decode($now_content,true); //print_r(