WordPress.org

Support

Support » How-To and Troubleshooting » calling a post or page by id

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' );
    etc…
    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?
    Thank you
    D

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘calling a post or page by id’ is closed to new replies.
Skip to toolbar