Can you force links in a <php include> to load in the <php include> area?

reckless_ronin

New member
I have a Wordpress page blog which I am "embedding" into a static page using the <php include> function. The include works just fine, but the problem is when you click any link from the Wordpress include area, say a blog post, it opens it up the post outside of the static page that it's supposed to be embedded into. In other words the links don't open up inside of the include area.

The page that does open up is NOT <target="_blank" >, meaning that you can use your browser's back button to go back to the original page that has the <php include>.

Is there a way to force the links to open up inside of the <php include> area? If not, is there a way to set the links to open up in a new page <target="_blank">?

Here is what my code looks like:


#####
// this is placed on top of the page, above the DTD

< ?php require('./path-to-your-blog/wp-blog-header.php'); ?>


// this is placed inside of a <div> container, which properly appears on my page:

<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php if ( in_category('7') && is_home() ) continue; ?>
<?php if ( in_category('8') && is_home() ) continue; ?>
<?php the_title(); ?>
<?php the_content(); ?>
<?php comments_template(); ?>
<?php endwhile; ?>
<?php posts_nav_link('','','« Previous') ?><?php previous_post('« %', '', 'yes'); ?>
<?php posts_nav_link('','Next »','') ?><?php next_post('% »', '', 'yes'); ?>
<?php else : ?>
<p>Sorry..</p>
<?php endif; ?>

#####

Thanks for your time,
Adam Lawton
 
Back
Top