0 down vote favorite
I show my last post in a page with this code:
$query1 = new WP_Query(); $query1->the_post();
and it further with:
$id = $query->ID;
to retrieve last post ID so I wrote a new wp_query and I want to exclue that ID from the results: I wrote this but it don't work:
$query2-> new WP_Query('p=-$id');
what's the problem?