you are here: codestackercodes [RSS]wordpress post in an external page

wordpress post in an external page

<?php
   require('WORDPRES_PATH/wp-load.php');
   global $query_string;
   $qstring_array = array();
   parse_str($query_string,  $qstring_array);
   $args = array_merge($args,$qstring_array);
   query_posts($args) ;
 
 if (have_posts()) : while (have_posts()) : the_post();
         echo "Title :";
         the_title();
        echo "<br/>";
        echo "Author: ";
        the_author();
       echo "<br/><br/>";
      endwhile;
    else:
       echo "No posts";
    endif;
  ?>

Comments