I want to display a simple front page with 2 categories,

But when I enter 2 same code, the result is empty,

But one code, the result appears

I look like:

Title: chicken category


Title: cow category


I tried with a simple php code:

<h2 class="home1">10 Best Chicken</h2>	
<div class="1"><?php query_posts('cat=9' . '&showposts=3'.'&paged='.$paged); ?></div>

<h2 class="home1">10 Best Cow</h2>	
<div class="1"><?php query_posts('cat=10' . '&showposts=3'.'&paged='.$paged); ?></div>

How the best solution?

Read more here: How to display 2 categories in the index.php page


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: