尝试获取下一篇文章的url,自定义文章类型为公文包。在该帖子类型的帖子中已经有标记。"明星"。
我正试图在时间之前获得下一篇文章的网址。并且应该具有相同的标签。
任何人都知道怎么可能得到它。
我发现了能够获得的代码
$args=array(
'portfolio-tag' => 'loop1',
'showposts'=>5,
'caller_get_posts'=>1
);
$my_query = new WP_Query($args);
if( $my_query->have_posts() ) {
echo '5 recent Posts with tag1';
while ($my_query->have_posts()) : $my_query->the_post(); ?>
<p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p>
<?php
endwhile;
}
但我需要的网址只是下一个帖子的时间,如果我在第四个细节帖子,我怎么能得到第五个帖子的网址。所以它将是这个系列中的下一个。