• skunkbad

    (@skunkbad)


    If I create a special category template like category-something.php, and use WP_Query in it to create a custom query will sorting options, will there only be one database query? I’m just wondering, because I don’t know how to check.

    I don’t know if wordpress automatically queries the database for the posts that are in category “something” when I use a category template like category-something.php , but I wouldn’t want to have 2 queries if I’m not going to use one of them.

  • The topic ‘If I use WP_Query category template, will there be a duplicate query?’ is closed to new replies.