ページにさまざまなアイテムがあり、人々が「推奨」をクリックして投票する必要があるページを作成しました(levi.store.comでのアイテムのように)。アイテムは、受け取った「推奨」の数に基づいて並べ替えられます。私が抱えている問題は、これらのアイテムが100個あることです。それらを表示しようとすると、非常に遅くなります。これをより効果的に行う方法はありますか?これは私が持っているもののいくつかの擬似コードです(私はWordpressを使用しています)
$theCategory = 'the-item-category'; //every item is a post and is placed into this category
$items->query('cat='.$theCategory); //this gets all those items in that category
while($items->have_posts()) : $items->the_post();
<h1><?php the_title(); ?></h1>
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&layout=button_count&show_faces=false&width=450&action=recommend&font&colorscheme=light&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:140px; height:21px;" allowTransparency="true"></iframe>