Forums

If I use WP_Query category template, will there be a duplicate query? (1 post)

  1. skunkbad
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic