I am intergrating WordPress with a non WordPress site. I have installed WordPress at my evercam.io/wordpress and I have followed the codex and I have been able to display a list of posts on a static page that I have on my site at evercam.io/blog. I don't want the visitors to my site to ever get to the WordPress theme.
Where the problem lies is if the user clicks on the title of a post that is listed at my site.com/blog it brings them to evercam.io/wordpress/the-post-title.
I have tried to create an equivalent of single.php on my site using:
<?php
// Include WordPress
define('WP_USE_THEMES', false);
require('/server/path/to/your/wordpress/site/htdocs/blog/wp-blog-header.php');
query_posts('showposts=1');
?>
<div class="col-md-8 col-sm-8 col-xs-12">
<?php while (have_posts()): the_post(); ?>
<h2><?php the_title(); ?></h2>
<?php the_excerpt(); ?>
<p><a href="<?php the_permalink(); ?>" class="red">Read more...</a></p>
<?php endwhile; ?>
</div>
So if someone visits evercam.io/single they will see a single post. What I need however, is the title of each post on my blog page to link to each corresponding single post.
Is this possible at all? I have gone through many blog posts and the closest possible solution I found was to disable the link on the blog post title which doesn't really solve my problem!