-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
我沒有得到標題名稱 –