Hello,
I have a problem which is starting to wind me up!
I've got 2 websites, website 1 has wordpress installed and it is only used to list testimonials from my clients, the rest of the website is NOT wordpress.
Now I use a code to take the testimonials I post on my wordpress and display them on website 1 as they are posted which is great - works perfectly.
Now I have just got another website and I want those same testimonials to appear on website 2 in exactly the same manner as they do on website 1.
I've copied the same code and chanced the URL path but it simply doesn't work!
here is the code used on website 1 which works perfectly-
<?php
require('../testimonials/wp-config.php');
query_posts('showposts=1');
while (have_posts()) : the_post(); ?>
<?php the_content('…'); ?>
<?php endwhile;
?>
All I've changed for website 2 is
require('http://www.ukpartydj.com/testimonials/wp-config.php');
Anybody know a solution to my problem?
Website 1 - http://www.ukpartydj.com
Website 2 - http://www.dorsetdj.co.uk