I've made some researches on google but can't get the right answer.
I need to get my wordpress loops outside a domain using php file.
For example: I have a website hosted with www.mysite.com using wordpress. And an other one is www.secondwebsite.com using only php.
I would love to use something like the wp-load.php to use my loops in my php files.
Thanks a lot,
jhon
I can't get the server path rightly... Any ideas?
Here are my different path:
PHP FILE THAT NEED TO LOAD wp-load.php:
/home/faver/domains/facebook.faver.be/www/lili
Folder where the wp-load.php is:
/home/lbpl/www/
I tried this:
<?php
//Include WordPress
define('WP_USE_THEMES', false);
require('../../../../../lbpl/www/wp-load.php');
query_posts('showposts=1');
?>
<?php while (have_posts()):
the_post(); ?>
<h2><?php the_title(); ?></h2>
<?php the_excerpt(); ?>
<p><a href="<?php the_permalink(); ?>">Read more...</a></p>
<?php endwhile; ?>
But not working. I think I can't go to the /home
directory cuz of the FTP rights.
Thanks for the help
Jhon