I want a query to be executed IF the following condition is true... but looks like the query is executed anyways.
if($post->post_parent = '302'){
// Query goes here
}
Is this query fine?? I want to executed the query if the parent page of current page is 302.
Thanks
