I have an non wordpress website, and use wordpress for the latest news section only. This works great on the latest news page, but I want to pull in the most recent 2 excerpts onto the homepage also. All my wordpress files are located on the server under a directory named 'news'.
I can pull the 2 excerpts into the home page using this code
<?php query_posts('showposts=2'); ?> <?php while (have_posts()) : the_post(); ?> <h2><?php the_title(); ?></h2> <em><?php the_date(); ?></em><br/> <?php the_excerpt (); ?> <?php endwhile;?>
However, I need to either change the 'read more' link to the direct URL of my latest news page, or remove it altogether and add my own link...
I gather I may need to amend the code in the post_template.php file however after multiple experiments I just can't get it to work. Im sure its quite straightforward but its becoming very frustrating now.
All help greatly appreciated,