I want to use query_posts()Codex function of wordpress. But how can i use it, I am new to wordpress. Basically want to select record by post_title name
$titleName = "My Post title name";
query_posts("post_title=".$titleName);
while ( have_posts() ) : the_post();
echo the_title();
endwhile;
Is the above syntax correct or am missing something?
It’s not an exact answer but its an alternate.
If you can’t get it done by post name, You can get it by it’s slug.
Show Post/Page by Slug
Display post by slug:
Display page by slug: