Chciałbym ograniczyć ilość wyświetlanych wyników do 1 gdyż jak mam więcej postów to one się wszystkie pokazują na stronie.
Nakieruje mnie ktoś?
function show_posty($pp) { $Blog = new Blog; $posts = $Blog->listPosts(true, true); $count = 0; foreach($posts as $file) { $data = getXML($file['filename']); if($data->category == 'test') { $count++; show_blog_post($file['filename'], true); } } }