Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

bjarvis2785 on "WP Query Post by Post ID"

$
0
0

I'm trying to create a new template for my theme.
What i want to do is actually only show one result in the template.

So i need to get post id from the url (which i believe is a standard function), and then pass that post_id in to the query so that the template only shows that one post...

Can i filter by post id as i can't seem to find anything that says i can?

Any advice on this?

Thanks,

Barry


Viewing all articles
Browse latest Browse all 8245

Trending Articles