I am currently trying to set up my website so that I can run the word press in a sub domain but show all of the posts on the main index page of the site. I am doing this because I do not want to hassle with editing themes and I have a lot of other features and pages I need to make for the site and it would be much easier for me to code it in the way I'm used to.
So far, I am using this code to get the last three posts from the blog.
<?php // Include WordPress define('WP_USE_THEMES', false); require('./articles/wp-load.php'); query_posts('showposts=3'); ?>
<?php while (have_posts()): the_post(); ?> <h2><?php the_title(); ?></h2> <?php the_excerpt(); ?> <p><a href="<?php the_permalink(); ?>">Read more...</a></p> <?php endwhile; ?>
to actually show the posts in the div.
The problem Im having is that the media from the posts is no showing up. So if I upload a picture, that picture isnt showing up.
Does anyone know what I need to do?