I am using the following code, to output the content from a page with the id of two. This is in my custom template file which is selected in the page. It works fine locally but online it does not work, it outputs nothing, the id is based of this url
What might I do to diagnose this problem.
<?php $my_query = new WP_Query('page_id=2'); ?> <?php while ($my_query->have_posts()) : $my_query->the_post(); ?> <?php the_content(); ?> <?php endwhile; ?>