I am doing a simple WP query that gets posts: ('post', 'event').

the events I needed ordered by a custom date field: start_date'

the posts I need ordered by date.

I need the two output together in order.

I read: Query two post types and order by two different date fields

The guys sounds like he did some work with js. I need this to be a paginate-able query. There are 100+ posts and probably 12-14 events.


  • 1
    I'm afraid it won't be possible using WP_Query. It can be done with custom SQL query, but it won't be very pretty solution, I guess... Maybe you should change the info structure/storage method... – Krzysiek Dróżdż Apr 10 '18 at 5:58
  • Thats what I was afraid of. – TJ Sherrill Apr 10 '18 at 17:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.