我想做的是:
- 在类别 1 的帖子中,每个帖子都有一个标签
- 现在在另一个类别下的另一个帖子中,我想调用类别 1 中具有相同标签的帖子,
cat=1&tag=1
例如cat=2&tag=1
这是代码,它不起作用:
<?php
$t = wp_get_post_tags($post->ID);
query_posts( 'cat=45&tag=' . $t. '' );
// The Loop
while ( have_posts() ) : the_post(); ?>