Php wordpress permalink获取上一个单击的链接
我已显示所选类别的标题。这是一个锚定标签,但永久链接不起作用。这里有什么问题?这是得到旧的链接,可能在某个地方刚刚点击。但不适用于确切的类别Php wordpress permalink获取上一个单击的链接,php,wordpress,Php,Wordpress,我已显示所选类别的标题。这是一个锚定标签,但永久链接不起作用。这里有什么问题?这是得到旧的链接,可能在某个地方刚刚点击。但不适用于确切的类别 <a class="heading-link" href="<?php the_permalink(); ?>"> <?php query_posts('cat=4&showposts=1'); if (have_po
<a class="heading-link" href="<?php the_permalink(); ?>">
<?php
query_posts('cat=4&showposts=1');
if (have_posts()) :
while (have_posts()) : the_post();
the_title();
endwhile;
endif;
wp_reset_query();
?>
</a>
place
<?php
query_posts('cat=4&showposts=1');
if (have_posts()) :
while (have_posts()) : the_post(); ?>
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
<?php endwhile;
endif;
wp_reset_query();
?>