i want to display all posts as well as count the days of the post since it was published
if ($pageposts):
foreach ($pageposts as $post):
setup_postdata($post);
echo '<p>';
the_title();
echo '</p>';
endforeach;
endif;
Output should be something like this
Post Title1 - This post is published 4 days ago Post Title2 - This post is published 3 days ago Post Title3 - This post is published 6 days ago
and at the same time i want to delete the post once it reaches 10 days
I really need your help guys thanks i appreaciate it alot