获取wordpress指定文章ID的链接地址
引用请注明出处: https://seonoco.com/blog/1283
发布于 分类 Wordpress
17天前 有1个用户阅读过
本文来自我的百度空间博客详情
2007年开始使用的是 hi.baidu.com/udjy
后来百度空间强制升级为轻博客 hi.baidu.com/imnoco
2015年百度关闭了百度空间
/*
**读取指定文章ID的相关信息,比如该文章的标题,该文章的超链接...
*/
<div class="box">
<?php query_posts('p=62'); ?>
<?php if (have_posts()) : the_post(); ?>
<?php the_title(); ?>
<a href="<?php the_permalink();?>"></a>
<?php endif; wp_reset_query(); ?>
</div>
-- The End --