Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS WordPress PHP question?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #38521
    Jon_N
    Participant

    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

    #104462
    yinzdo
    Member

    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: http://codex.wordpress.org/Function_Reference/query_posts#All_Posts_in_a_Category

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.