So you first want to order them by author and then by date for every author?
You should use the orderby
argument in your query, where you can pass an array.
$custom_query_args = array(
'post_type' => 'post',
'meta_key' => 'xyz',
'meta_value' => 'yes',
'orderby' => array( 'author' => 'ASC', 'date' => 'DESC' )
);
This should be something like what you want, otherwise look at the examples for the arguments in WP_Query.
Related Posts:
- How to allow users to create their own website within my domain? [closed]
- How do I remove a pre-existing customizer setting?
- How to set permalink structure via functions.php
- Custom Image section in Customizer
- How to remove the Theme Customization Button from the dashboard and themes options page?
- Allow Shortcode in Theme Customizer
- Theme Customizer – Nested Sections?
- Adding customizer styles with wp_add_inline_style
- WordPress Customizer Typography: How to load just the unique Google Fonts?
- Can we add more than one control under a setting in WP theme customizer?
- Widgets panel not displaying in the Theme Customizer
- How to remove menus section from WordPress theme customizer
- Get background color for Live Preview with Theme Customization API?
- Checking if there is an Image inserted – if not don’t display anything
- Default header image does not display
- WordPress Multisite: Have the same header and footer of main-blog on all sub-blogs
- Responsive Images – Generating multiple images from Theme Customizer control upload?
- Modify Javascript Configuration Options for Theme Customizer Colour Picker
- How to test for MU via functions.php?
- Modify the Additional CSS section (adding a disclaimer)
- Theme Customizer – Choose where widget area appears, to let users organise widgets
- Same footer on all multisites blogs
- wordpress custom theme import and export options for sample data [closed]
- How to hook CSS file according to theme selection in the customizer section
- How Can I Create a List of Values to Be Iterated Through via WordPress Customization API?
- Custom Script Section Only Echoes Text
- WordPress not registering Theme Customization Section
- WP Customize refresh problem
- How to add new args data in $wp_customize->add_setting?
- Hide header texts (Title & Tagline) in custom-header.php
- Theme Development for WordPress Multisite Installation
- get_option in header.php not returning value from customizer
- Internal error 500 accessing Theme > Customize
- Customizer: Unique identifier that distinguishes which image upload control is uploading an image
- multisite: global menu containing network site links?
- Using an if statement in the theme customizer page
- How to add styles set by user in the customizer
- JavaScript stops working on selectively refreshed sections one inside the other
- Folder name for a pro version of a WordPress.org theme?
- Display theme layouts [closed]
- Can I add multiple arrays within add_theme_support( ‘colors’ )?
- Customizer: save setting/control content to post/page
- Using WordPress’ Theme Customizer to select page templates that update layout in the preview
- Is accessing theme and using customizer GPL distribution?
- How to disable wordpress from overload my stylesheet styles with customizer styles
- How to enqueue javascript for WP Customize options sidebar?
- Is it possible to visually group items on the theme customizer?
- Theme Customizer not loading JS for live preview
- Customizer – loading settings/controls/sections/panels based on a id/page id
- Featured Image meta box not showing up
- Change WordPress header color using customizer
- Default Text not showing from customizer
- Is there any way to register custom background images like header images?
- How to transfer one domain to another domain without losing theme options (customizer)?
- Theme Customizer not displaying saved values in wp_head (CSS)
- Is there a WordPress boolean for “theme_customizer_active()”?
- How to allow certain PHP functions when using sanitize_callback in the word press customizer
- Customizer Color Control Not Working
- where is real values of variables?
- How to set Post meta-box defaults based on the choices made by user in Customizer?
- Avada Child Theme Development
- Questions from a new WP Dev [closed]
- Adding a new setting using Kirki or WP customizer with an if statement
- Theme customizer – can’t add section/settings
- add shortcode support in customizer
- Different text on different sites in a multisite setup
- Converting a theme to a child theme in a network
- HTTP Error when uploading images over specific dimensions
- How to get blog-id of an MU site from functions.php
- How to set a custom URL for the iframe in the customize page
- How to add wysiwyg editor in customize screen using customize_register
- How to register dynamic settings in WordPress Customizer?
- How to copy page/post from one theme to another?
- How to change listing type permlink?
- In wordpress customizer div still showing even if I hid it with javascript
- How to enable admin to upload multiple images to support header carousel slider theme in WordPress?
- Removing element from DOM with jquery through plugin Custom Scripts for Customizer
- Why does wp_customizer default values do not apply when theme is installed for the first time?
- Fatal error: Class WP_Customize_Image_Control not found
- How to get full native language instead of iso?
- How do I remove header/page-title image in farvis theme? [closed]
- Duplicate child theme incl. design changes
- Styling the website via the customizer – do the changes stay after theme update?
- Is there a way to create sections under “Colors” panel in the Theme Customizer?
- How to toggle WP Customizer Panel and Section with JavaScript API?
- Let user publish posts on community page
- How to customize the colors within a stylesheet using a WordPress setting
- How to hide blog by id wordpress multisite listing
- How to fix an issue with customizer live preview?
- How to create multiple customizer controls in one control
- WordPress Customization API overwrite LESS variable
- Customizer API way function is_customize_preview() works only in main page?
- background_image support multiple image size?
- How can I demonstrate themes well?
- trying to figure out how to use more that one image upload in the same section in theme customizer
- Custom link color or stylesheets
- How to make a multilingual wordpress site to be translated one-to-one without much effort and without using translate?
- My theme is full of error messages in the “Customize” screen, but nowhere else
- WP Customizer get control value on change
- Execute javscript when theme customizer loads (autosave issue)