Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/245.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 如何从数据库中查找wordpress帖子id_Php_Mysql_Database_Wordpress_Join - Fatal编程技术网

Php 如何从数据库中查找wordpress帖子id

Php 如何从数据库中查找wordpress帖子id,php,mysql,database,wordpress,join,Php,Mysql,Database,Wordpress,Join,我有一个wordpress数据库,我想从中获取一些数据。事实上,我想把帖子导出到excell文件。现在我想加入wp_posts和wp_Posteta并获得导出。我在wp_postETA表中找到了post_id,但我无法在wp_posts中找到任何具有此值的键 谢谢。只需右键单击post上的edit按钮,打开inspect element with firebug,您可以在那里或permalink view post上看到id,您可以在url中看到post\u id。使用wp\u posts.id

我有一个wordpress数据库,我想从中获取一些数据。事实上,我想把帖子导出到excell文件。现在我想加入wp_posts和wp_Posteta并获得导出。我在wp_postETA表中找到了post_id,但我无法在wp_posts中找到任何具有此值的键


谢谢。

只需右键单击post上的edit按钮,打开inspect element with firebug,您可以在那里或permalink view post上看到id,您可以在url中看到post\u id。

使用wp\u posts.id=wp\u Posteta加入。post\u id
wp\u posts.id是自动递增的,我们有多行指向特殊的post。所以这不是个好主意