That query has nothing to do with ACF. It’s a regular post query using WordPress’ standard query class. As such you can refer to the documentation for the options for ordering your query.
To sort by post title you just need to set orderby
to title
:
<?php
$args = array(
'posts_per_page' => 999,
'post_type' => 'lezing',
'orderby' => 'title',
'order' => 'ASC',
'meta_query' => array(
array(
'key' => 'jaar',
'value' => '2019',
),
),
);
$the_query = new WP_Query( $args );
Also note that the quote marks in your original question are incorrect. You need to use non-fancy quotes like '
. This can be an issue if you’re copying code from incorrectly formatted blog/forum posts.
Related Posts:
- meta_query ‘compare’ => ‘IN’ not working
- Use the page slug in a WP_Query?
- Sorting: custom query with orderby meta_value_num THEN by title
- WP_Query and next_posts_link
- Using OR conditions in meta_query for query_posts argument
- Get posts by menu ID
- count posts from custom taxonomy terms by year
- replace the WP_Query class in the main query
- Woocommerce query by price range and custom meta key
- Get posts with condition on comment meta value
- WP_Query sort by comment meta data
- Move posts to top of WP_Query if in certain Taxonomy?
- WP_query ‘orderby=none’ Problem
- ‘paged’ in wp_query doesn’t work
- Sorting meta_value as integer doesn’t work
- Display different number of posts from one category on the different pages
- How to display child posts in the parent category
- Custom Field Query – Meta Value is Array
- How to count data records in wordpress which have same meta_value in wp_postmeta table?
- Order terms inside a select dropdown
- WP_Query for showing specific post by id
- Ordering by meta_value AND date NOT WORKING with wp_query
- Transient caching for wp query
- WP_Query orderby breaks when using AJAX?
- Query by custom dates in UNIX Time
- Custom WP Query from meta_value stored as serialised array
- Get List of all the Authors
- How to check if a post “does not have term” in conditional statement?
- Detect featured image among the attached images
- Pass arguments to WP_Query using “set” method
- WP_Query returns more results than expected
- Make WP_Query more efficient?
- Set order of returned items in the WP_Query() class/function
- Which method is faster to get a single post?
- Show Sticky Post at the top but do not show again in the loop?
- Using WP_Query within an mu-plugin
- Use more than one query, but prevent duplicates – at scale!
- WP Query related posts by tags
- How to add posts, manually, to a wp_query?
- wp_reset_postdata() does not work as expected
- Search Query for multiple categories using ‘OR’ but having certain categories be ‘AND’
- WP_query with OR relation between args[‘s’] and arg[‘meta_query’]
- add_filter(‘query_vars’) not working in custom template
- Out Of memory issue on post per page parameter
- Avoid repeated post on page 2 when excluding one on page 1
- How to count posts with specific arguments
- Why post__not_in is ignored?
- find posts that don’t have a custom taxonomy
- Can’t get simple meta queries to work
- Is it possible to add an argument to a custom function added to a filter hook?
- Order by meta_key doesn’t work
- WP Job Manager plugin – Listing only the twelve job categories on frontpage order by jobs they have
- Slow Query On Search
- Loop posts based on permalink term
- Does putting queries within loops cause an issue on WordPress?
- How to get current page nearest parent id?
- How to create Page templates for showing Blog posts in different layouts?
- wp Query Posts to display in Nivo Slider
- How to get only ONE category of “Portfolio” posts to display on main page rather than ALL categories?
- Determining what post is displayed out of total posts found
- Strange behaviour of hierarchical taxonomy archive
- Is it normal that get_post() gets run 300 times and the content of those posts aren’t visible?
- WordPress AJAX Request returns 400
- WordPress Sub Category Archive, Show Extra Empty Page Number in Pagination
- SQL to join u3g_users & u3g_meta_value with repeating data
- Doing $wpdb->get_results returns NULL, doing the same query in my DB returns correct value
- How to get meta key list efficiently?
- Get posts having meta value between two numbers
- WP_Query how to add a thumbnail to the first post from the last 5 posts?
- How order by works?
- taxquery taxonomy get terms
- Separate by Category Post Type
- ACF: using two loops, the_field returns field content from another loop
- Using modified ‘meta_key’ to set ‘orderby’ in WP_Query?
- Combine WP_Query with array of custom data to single loop without breaking the pagination
- Query posts in current category but not attachment format
- WP_Query with Pagination and orderby meta_value_num showing duplicates
- Using orderby with 2 meta keys
- wp_query – Modify $query to include duplicate content
- Optimising specific Query with ACF meta objects
- Slow getting posts from category
- Query specific number of posts for each post type in specific order
- Avoiding page loop
- Query Users by post count, last 30 days and display each users post count according to post type
- how do I exclude child categories from a wp_query?
- How to create a loop inside WP_Query?
- how to show only catergory titles on a page in wordpress
- WP query with multiple custom meta not respecting orderby
- 1500+ duplicate queries via get_option function (query monitor)
- Add custom argument to WP_Query and modify SQL where clause
- How does Show Posts based on a keyword search work in WP_Query
- Pagenavi with archive page
- How to get rid of extra Untitled Article in html5 document outline when using new WP_Query?
- AJAX search function resets wp_query vars
- I need to get all categories from a WP_Query
- WordPress Ajax search filter on dropdown select
- after refresh the id that shows correct in first time click, changes to 1
- WP_Query (or WC_Product_Query) out of memory
- How to get posts that have certain meta key value and order based on another meta key’s value
- How to cache wordpress get_posts query using transients?