Showing Only One Category on the Home Page

Perhaps instead of excluding a category, you want to show only one category. That's easy, too, as Listing 7-2 shows.

Listing 7-2. Showing only one category

The difference between Listing 1 and Listing 2 is tiny! In the previous example, you used -7 to remove category 7 from the home page. Here, by removing the minus sign, you ensure that only category 7 is displayed.

Be careful, and proofread your Loops!

Was this article helpful?

0 0

Post a comment