Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

viveramedia on "Adding get_posts and reordering"

$
0
0

Hi guys,

I am doing a series of loops which uses:

$myposts = get_posts("category=$category->id");

However I need to do something like:

$myposts .= get_posts("category=$category->id"); so the var $myposts is added to on each loop. I then need to re-order $myposts by published date and re-loop.

Any idea how I can achieve this?

Thanks,

Dave


Viewing all articles
Browse latest Browse all 8245

Trending Articles