-1
我想用wordpress的query_posts()
Codex函数。但我如何使用它,我是新来的wordpress。基本上要通过post_title
名如何在wordpress中使用query_posts()?
$titleName = "My Post title name";
query_posts("post_title=".$titleName);
while (have_posts()) : the_post();
echo the_title();
endwhile;
是上述语法正确选择记录或思念的东西?
经常检查[的文档(HTTP://抄本。 wordpress.org/Function_Reference/query_posts)。发生了什么,你不期待? – Alex
您是否收到任何错误或您为什么想知道语法是否不正确? – hakre
我没有得到标题名称 –