Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
以下のコードで投稿IDを渡そうとしています。どうすればそこに追加できますか?$post->IDどこかに追加する必要があると思います。
$post->ID
$wp_query->query( 'post_type=movies&p=' . $_GET['pid']);
あなたはあなたの質問に答えました。
I am trying to pass the post ID in the code below.
ポストなら。 $_GET['pid']する必要があります$_POST['pid']
$_GET['pid']
$_POST['pid']
多分:
$wp_query->query( 'post_type=movies&p=' . $post->ID);
やりますか?