Treehouse: Grow your CSS skills. Land your dream job.

WordPress PHP question?

  • # June 15, 2012 at 11:34 pm

    Hey guys,

    I’m putting together an online store. I like how the products are shown at the bottom of the home page (not the slider) in a table-like fashion. But I’m wondering if there is a way to show only certain products that I tag with a category. Any PHP experts out there?

    here’s the site

    Thanks in advance

    # June 16, 2012 at 1:27 am

    You want to pass ‘category_name’ as a parameter when querying your posts. This will return posts for that category only.

    See the Codex for a full explanation:

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.