如何在不打印的情况下在 wordpress 中获取页面标题。我试过 wp_title 但它会自动打印标题..
问问题
132 次
1 回答
2
谷歌:wordpress 获取帖子标题
第一个结果!
http://codex.wordpress.org/Function_Reference/get_the_title
<?php
$post_title = get_the_title($ID);
echo $post_title;
?>
于 2013-03-19T11:53:17.297 回答