Support

Account

Home Forums ACF PRO Date Sort Coding for Divi Blog Post Module?

Helping

Date Sort Coding for Divi Blog Post Module?

  • In the following page, I use a Divi Blog module to post cars listed for auction:

    https://www.guyswithrides.com/reserved-parking/

    Using ACF Pro, among other metadata fields (Year, Make, Model, etc.) I created a date field called “auction_end” that indicates the date and time each auction listing will end.

    I need help with the coding needed to use this field in the Divi Blog module so that posts (i.e. auction listings) are displayed in descending order based upon the auction end date/time.

    I’m a novice at WordPress programming so please try to dumb down any responses to something I can take and run with.

    Thanks!

  • The first thing you need to figure out is how you can sort the posts in this module that you are using by a custom field. This is not something that I can help you with. This would be specific to that module and not ACF. Perhaps they supply some type of filter hook that let’s you alter the post query? I don’t know. You’d need to find out that information from DIVI.

Viewing 2 posts - 1 through 2 (of 2 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.