i try to call a wordpress function from my blog located at (mysite1.com/blog/) to be show in my other site located in (mysite2.com) the two sites are hosted in the same server.
site 1: /home/mysite1.com/blog/
site 2: /home/mysite2.com/
this work fine if i try to use it in the same domaine (mysite1.com/forum) but is broken in the other domain (mysite2.com)
<?php require( '../blog/wp-load.php' ); query_posts('showposts=3'); while (have_posts()) : the_post(); ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a><br /> <?php endwhile;?>
If you have any idea, do not hesitate to share with us, thanks.
- The topic ‘use wp functions outside wordpress and in a different domain name’ is closed to new replies.