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 :


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 ยป'); 

Are you aware how come ?

Thank for you personally help.