I must produce a e-newsletter of wordpress posts (title publish + excerpt or content + title of category) of recently.
So, I produce a new file in php (with fopen, fwrite, etc...) by which I put template code. But I've got a problem to create posts.
I have made needed of major files :
require_once("/mon-ndd/www/wp-config.php"); require_once("/mon-ndd/www/wp-load.php"); require_once("/mon-ndd/wp-includes/wp-db.php");
After I put this function :
get_archives('postbypost', '10', 'custom', '<li>', '</li>');
it runs although not with this particular code for instance :
while (have_posts()) : the_post(); // the content of the post the_content('Read the full post »'); endwhile;
Are you aware how come ?
Thank for you personally help.