Hi all, Im new to PHP , but am working on a site which is nearly finished, the issue is that it is working off its own theme which I didnt create.
But basically im looking to simply have one page that displays the blog. I found http://codex.wordpress.org/The_Loop and tried to copy the basic loop into my page
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<!– do stuff … –>
<?php endwhile; ?>
<?php endif; ?>
I have also included <?php define(‘WP_USE_THEMES’, false); get_header(); ?> at the top of the page as per instructions.
Ive also made sure that page is calling the correct template.
but nothing happens, I appreciate this is probably an obvious one and its a matter of learning more but im wondering can someone help me out.
Do I also need to put that loop into index.php even if Im not using it for my main home page?
Here is the page.. asystec.hailstormcommerce.com/?page_id=56
- The topic ‘Putting in blog into page, should the loop work?’ is closed to new replies.