I would like to generate a newsletter of wordpress posts (title post + excerpt or content + title of category) of last month.
So, I generate a new file in php (with fopen, fwrite, etc…) in which I put template code. But I have a problem to generate posts.
I’ve made required 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");
When I put this function : `get_archives(‘postbypost’, ’10’, ‘custom’, ‘
it runs but not with this code for example :
while (have_posts()) : the_post(); // the content of the post the_content('Read the full post »'); endwhile;
Do you know why ?
Thank for you help.
- The topic ‘generate a newsletter of wordpress posts per month’ is closed to new replies.