calling a post or page by id
I have created a form with easy form. I want to call it in a side bar i tried
<?php $new_query = new WP_Query('contact' ); while ( $new_query->have_posts() ) : $new_query->the_post();?> <?php endwhile; ?>
I tried it w/
$new_query = new WP_Query('p=120' );&
$new_query = new WP_Query('120' );
so far they are not working. when it is left empty it shows the post the page is on.
How do i go about calling it?
- The topic ‘calling a post or page by id’ is closed to new replies.