【发布时间】:2013-08-10 14:59:29
【问题描述】:
我想做的是:
- 在类别 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(); ?>
【问题讨论】: