Hi all,
First off, thanks for making an amazing thing for people to use! It is really appreciated.
Second: my problem.
My website: http://www.volunteeringnews.com
I included my WordPress post in a <div>
called MainC2 and included the sidebar widgets using <div id="sidebar1"><?php get_sidebar();?></div>
in a div called MainC3.
If you click on any link , whether it be "leave a realy" or "category's" or any other link WordPress will link you to the wordpress site. (http://www.volunteeringnews.com/wordpress/?p=20#respond).
What I would like is that all my WordPress links open on my main page in the mainC2 div. Is this possible?
WordPress is installed in a sub directory on my website.
I tried ajaxify but that is only for the WordPress portion.
I tried <base href="http://www.volunteeringnews.com"> in the head section of header.php
I tried making my links relative using this tutorial : http://www.deluxeblogtips.com/2012/06/relative-urls.html
Could someone please help me out because it is doing my head in?
Thank you!
ps.
This is the code witch is displayed in mainC2 when you visit the page at first.
<?php
// Include WordPress
define('WP_USE_THEMES', false);
require('wordpress/wp-blog-header.php');
?>
<!-- Word press content display code! -->
<div id="wordpresscontent">
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php echo catch_that_image() ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?>
</div> <!-- word press content div end -->
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]