How do I “orderby” a column without losing posts that don’t have the column?
You can do it like so: Use the meta_query parameter to query both posts that have the metadata _my_column (or whatever is the meta key) and posts that do not have it (i.e. does not exist in the database). Use a custom name (i.e. array key) with the above meta query clauses and then use … Read more