Like Jacob Peattie has said above, the query is actually only made once. The extra processing really is negligible, as would be the load time of the page. So don’t worry about it.
Related Posts:
- Stop link being removed in menu/list when viewing that post
- How to count post meta key values for all posts in database
- Not duplicating $post->ID leaves empty space.
- Conditionals in WP_Query
- Why WP_Query in functions.php is not working when get_posts works?
- Next / previous posts link doesn’t show up with Posts 2 Posts
- How to exclude posts ordered by comment_count from subsequent wordpress loops using WP_Query?
- I cannot search users via user nicename
- Get post closest to today
- Loop the posts between two dates selected using jquery datepicker
- WP Query Bug? Cannot find out why posts are not found!
- Order by multiple meta keys on wordpress
- Sort posts in dashboard using custom field; also include posts where field isn’t set
- Passing conditional arrays to WP_Query() [closed]
- How to add archives (with pagination) to page template?
- Custom WP_Query with SQL directives for getting posts by authors and terms
- Post OrderBy slow performance
- Query custom post type by date field only working when two posts match the query
- query post based on comparison
- Get posts from similar time as current post
- Query posts filter not working
- No content found on page 2 of pagination with 1 post per page
- meta_query dates from an array
- Add category and user name to recently updated post list
- Creating array to compare custom field values
- WordPress Query Default Order if Meta Values Same?
- Comments orderby comment date not working
- Switched from query_posts to wp_query, pagination no longer working
- Adding page subdirectory dynamically, as like buddypress does
- Divide WP_Query posts by date & post type
- How to return value from sql and display it
- orderby in WP_query doesn’t works
- Unable to pass variable
- Letting users sort posts
- qTranslate get content by language using wp_query
- Extract video content from post to display on front page
- What is wrong with this pagination code?
- WP Query get posts by specific author IDs if one of several logged in authors
- Sort by name – second wp_query
- Retrieve posts in custom post type and specific taxonomies
- How to query post ids liked by the Author
- Sort Posts with custom meta key by default which is currently set as optional
- wp_query pagination links producing 404
- Meta_query weird behaviour
- Why is WP_Query’s meta_query not filtering results?
- Including ‘cat’ => $cat breaks meta_query
- Pagination With Custom WP Query not functioning
- wp_query conditionally get posts
- How return normal search result using wp_ajax action for wordpress
- meta_query compare not doing what I want it to do
- Manipulating a query
- Getting Year & Date inside wpdb [duplicate]
- SQL returned by Wp_Query has wp_posts.ID = -1
- Converting an existing query_posts to WP_Query
- Can’t get pagination to work with this WP_Query loop
- loop through custom post types with meta data
- Passing additional variables to a query
- WordPress Query showing multiple titles
- Query Posts by date range with fixed beginning and end
- Looking for a way to exclude frontpage and nav menu from query filter
- custom query to get posts
- Pagination in custom loop [duplicate]
- query by meta value then date and not empty meta value
- Issue with sorting by post date and custom post type
- get contents and permalink from a specified page
- confirm my booking with phone number
- What query to append the 10 next posts?
- Posts2Posts, wp_query and orderby issue
- pre_get_posts redirecting
- Why isn’t my Meta_Query running?
- Dynamically name array in WordPress loop – add/get values
- Dynamically create array from page title
- Ordering Custom WP_Query loop by meta key value with pagination
- Display First posts without the default featured image
- Custom query to show posts
- Read more redirection problem
- New WordPress WP Query using posts from certain categories
- Hierarchical List Pages as a table
- WP_Query with several meta_query-statements and order by meta_value
- Displaying content to search engines but via navigation only for registered users.
- Pull Instagram images into an existing loop?
- When importing a database any page with a wp_query in doesn’t work
- Multiple homepage layouts as selected by user from theme options
- Custom search: Search posts but display parent page in results
- Query specific number of posts for each post type in specific order
- Modify query after meta value
- Avoiding page loop
- Custom post types loop on a page template
- Query Users by post count, last 30 days and display each users post count according to post type
- problem in query_vars parameters
- Limit Tags display and ad Drop Down Menu
- Loop being strainge
- Using Query In Post Type Archives
- Is it possible to use WP Query to orderby custom meta value and custom taxonomy?
- Do not show a custom post if it belongs to a certain custom taxonomy
- Multiple loop for “featured” items returns wrong posts
- $query conflicting with other queries in the same page
- Why won’t my paged wp_query work? [duplicate]
- Custom query (author is post_author or meta co_author) with Pagenavi pagination
- wp query problem