Multiple Installations
-
Hi,
Just started using WordPress – really like it. What i’ve done is (and i dont know if this was the best way to do it) using cPanel installed two instances of WordPress, one to https://www.example.com/blog and one two https://www.example.com/articles. I have a php homepage at https://www.example.com, what i want to do is put the most recent blog post on the homepage and the most recent article post on the homepage. I got some code off another blog that has done this for the blog installation but i cant work out how to do the same with the articles installation. the php code is `<?php
// Include WordPress
define(‘WP_USE_THEMES’, false);
require(‘./blog/wp-load.php’);
query_posts(‘showposts=1’);
?>`and where i want the post is `<h2>Featured Blog Post</h2>
<?php while (have_posts()): the_post(); ?>
<a href=”<?php the_permalink(); ?>”><h3><?php the_title(); ?></h3></a>
<?php the_excerpt(); ?>
<?php endwhile; ?>`so i need the same but for articles!
Any help would be brilliant thanks!
- The topic ‘Multiple Installations’ is closed to new replies.