Support

Account

Home Forums Front-end Issues Order by post object date field

Solved

Order by post object date field

    • elmakox

    • January 13, 2020 at 4:04 am

    Hi All,
    I have a post object field attached to a custom post type called A. The post object refers to a post type B which has a date field.
    I am doing a wp_query on A but order the query by B’s date field.
    Any suggestions for that?

  • You cannot do this. In order to order posts by anything that data must be attached to the posts you want to order.

    • elmakox

    • January 14, 2020 at 9:10 pm

    Okay. I get it. Thank You.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.