Forums

query_posts() multiple cat names? (1 post)

  1. rrasco
    Member
    Posted 1 year ago #

    According to the function reference, you used to be able to query posts based on their category slug. You can still do this in WP3, but it won't allow you to use multiple slugs now? If it's possible, what is the new method to do this?

    Display posts that have these categories, using category slug (not possible with wp3.0):

    query_posts( 'category_name=staff,news' );

    http://codex.wordpress.org/Function_Reference/query_posts

Topic Closed

This topic has been closed to new replies.

About this Topic