Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/arrays/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 回音后元在数组中?_Php_Arrays_Wordpress - Fatal编程技术网

Php 回音后元在数组中?

Php 回音后元在数组中?,php,arrays,wordpress,Php,Arrays,Wordpress,我错过了什么导致这不起作用 $args = array('tag' => 'get_post_meta( get_the_ID(), "solution_feed", true );'); 没有语法错误,这导致我假设您希望得到get\u post\u meta调用的结果,而不是按字面意思将其存储为字符串(我假设这就是您所说的不工作(ing))。为此,您必须删除单个qoutes $args = array( 'tag' => get_post_meta( get_the_ID(),

我错过了什么导致这不起作用

$args = array('tag' => 'get_post_meta( get_the_ID(), "solution_feed", true );');

没有语法错误,这导致我假设您希望得到
get\u post\u meta
调用的结果,而不是按字面意思将其存储为字符串(我假设这就是您所说的
不工作(ing)
)。为此,您必须删除单个qoutes

$args = array( 'tag' => get_post_meta( get_the_ID(), "solution_feed", true ));