什么是“post name”相当于<! - ?php the_permalink()? - >? (在Wordpress中)

时间:2013-10-04 20:03:52

标签: php wordpress

在WP中的Permalink结构中,我选择了“Post Name”...在我的索引中我有这个语句可以正常工作,但只有在Permalink Structure下选择了“Default”时才会这样:

<h1><a class= "title" href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>

所以从理论上讲,我需要像 这样的东西,但它代表“帖子名称”或“/%postname%/”......我希望这是有道理的。

TIA

0 个答案:

没有答案