Your order seems arbitrary, so there is no clear way to express it as query parameters. The closest to micromanaging order is by post__in
, but then you have to have all post IDs and it won’t be sane at all for any significant amount of posts.
You might want to simply create and fill another custom field with value that is alphabetically sortable.
Related Posts:
- Custom field value not saving when it contains a URL?
- How to do multiple searches (with logical OR) in WP_Query in hook pre_get_posts?
- How to use $query->set with post__in?
- Sort the result of the main Query in shop page by a custom taxonomy
- How to VAR_DUMP a $variable during checkout process (Is my product meta callable?)
- Tax query in pre_get_posts not working
- Seach custom post type posts only by meta fields?
- Grouping posts by a custom meta value
- Find a way to retrive data updated through metabox plugin to web page
- How to use array in function to get only value I want
- How to update and save user metadata on page visits?
- How to get specific attribute from DB
- Modify main query before it run without pre_get_post
- “pre_get_posts” orderby custom date field in different format?
- Set all WooCommerce Products to Simple, Virtual & Downloadable
- how can i update my postmeta without losing old data?
- Get the total Author Favorited posts
- admin uploads pre_get_posts not working as expected
- Display Content Based on Custom Field Value
- Posts sortable column not sorting properly for custom field numbers
- How do I empty a specific meta_value for all users in PHP
- Sorting a custom post type in pre_get_posts
- Search custom post type posts only by meta fields?
- How to exclude first 2 posts from a specific category for a custom post type archive page
- How to use nonce with front end submission form?
- Autoloading in Child Theme
- WSOD but WP_DEBUG not giving any errors
- How to export/import theme customizer settings?
- How to loop through JSON data in wordpress WP REST API
- Rename image uploads replacing “width” and “height” in filename with “medium”, “large”, “small”
- How to remove “out of stock” variation options from size dropdown in woocommerce?
- WordPress Customizer: How can you have multiple active callbacks on one control?
- Looking for a better way to handle an ajax script that pulls in post data on click
- add_rewrite_rule with bottom priority doesn’t handle the WordPress pages
- Adding featured image via PHP
- wordpress custom endpoint multiple params
- Enable errors PHP WordPress 5.2
- How to set status codes such as 401 and 403?
- Minify HTML, CSS, JS with PHPWee?
- Show Custom Taxonomy Title
- How do themes render caption texts in extended markup (e.g. “wp-caption” paragraphs)
- WordPress widget/sidebar dividers?
- Add custom php database code above
- Help with some php math in WordPress
- max_input_vars: how many am I using?
- Multiple WordPress Menus that will only display all pages
- Latest post in a specific menu
- WordPress not reflecting changed of the database
- Woocommerce related product text
- WordPress, AJAX and pre_get_posts using conditional tags
- Get children post mime type using parent post_ID wp_post
- Is it better to store images and other files in the root directory or the theme directory
- Use .php file as page instead of wordpress page & template file?
- How to get post permalink url without a href
- Convert the_permalink() function output into string
- Fatal error: Uncaught Error: Call to undefined function get_header() [closed]
- get_current_site() is undefined
- Incrementing PHP variable onclick to display posts by month
- Use variable in SQL statement
- limit number of post for achive page
- writing an unique php function to be used on my website
- Using Custom Value Options in PHP
- Get options from database using php class
- Problem in replacing the_content with the_excerpt()
- Need to add a post’s featured image to a section on the frontpage
- Output product category link from WP_Query
- Adding onload to body for certain pages
- Additional file upload in Gutenberg page options/featured image
- Variation prices breakdown only for single product page
- Change wordpress’ database data using ajax – how to get current user id?
- Add css class to string
- How to block specific user id in custom login form?
- Dropdown Category form. Only show Sub-Categories
- Best way to use variables in multiple functions?
- Passing a value from an input field to a php function in WordPress?
- Display all categories including sub categories under a list ul
- WP Hook Before a post is created
- Store user form submitted information in post type
- Block that renders html saved in a php file
- WordPress files break if I edit them, but adding a closing PHP tag fixes it
- $_GET[‘title’] in WordPress
- Can’t update or install plugins in WordPress, php unidentified index
- Offset with ajax load more posts duplicates
- Displaying logged in user name
- How to detect if a revision was made by woocommerce or wordpress?
- Efficient way of querying for a “fallback” post?
- Shortcode in a $output statement
- WP Redirect with user nickname/username
- If else statement based on referral URL
- Archive page if else not working for post_excerpt and post_content
- Hide sharing box and author box with a metabox on WordPress
- WordPress Website Featured Image Replacement Issue
- syntax error unexpected ‘}’ at 364 line
- 500 error when using wp_upload_dir() [closed]
- How to use plugins_url() inside PHP stylesheet file [duplicate]
- Using Excel formula in PHP. Use ^ symbol [closed]
- PHP warning Invalid argument supplied for foreach() on custom page template
- Assign new post author IF another user in custom field on post transition
- Hide category by tag
- How to add SKU and remove product title from WooCommerce url?