Timeline for how to include orderby value that is empty?
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 8, 2021 at 10:15 | comment | added | Kenneth Gervacio | @SallyCJ the relation and compare works for me, thank you so much. | |
Jan 8, 2021 at 10:04 | comment | added | Kenneth Gervacio | @SallyCJ I'm just adding additional args for the query post, as I can't find on my themes where the query post, i will check pre_get_posts thank you. | |
Jan 8, 2021 at 10:03 | comment | added | Kenneth Gervacio | @inrsaurabh thank you, i will look into it. | |
Jan 8, 2021 at 4:45 | comment | added | Sally CJ |
You'd want to add a second meta query clause with compare set to NOT EXISTS - see my answers here and/or here. And please, avoid using query_posts() - use the pre_get_posts hook if you wish to modify the main WordPress query.
|
|
Jan 8, 2021 at 4:45 | comment | added | inrsaurabh | May be this will help you a bit : wordpress.stackexchange.com/a/55791/116990 | |
Jan 8, 2021 at 4:09 | history | asked | Kenneth Gervacio | CC BY-SA 4.0 |