Skip to main content
7 events
when toggle format what by license comment
Mar 26, 2020 at 15:06 comment added Shazzad @user1203497 yes, third query is not actually required. merging results of those 2 queries and using ua_sort to order by dates will product the same outcome.
Mar 25, 2020 at 14:31 comment added user1203497 But isn't this a bad practice? I mean the 3rd query should not be there. With just two requests you should already get all the data you need. If this was just PHP, you would just do these two queries, merge the data and loop it through.
Jan 5, 2019 at 15:37 comment added Shazzad You can add (array) before the get_posts() function to make sure the first_ids and second_ids values contains array. Ex: $first_ids = (array) get_posts(...
Jan 4, 2019 at 14:58 comment added Felix Kamote Hi Sir, I followed your instruction but it displays Warning: array_merge(): Argument #1 is not an array
Dec 28, 2018 at 4:39 comment added jjj Many thanks, personally it help me a lot to reduce size of a query with multiple relations (meta_query).
Feb 25, 2014 at 4:00 vote accept victor
Feb 24, 2014 at 21:26 history answered Shazzad CC BY-SA 3.0