I have a hivepress/listinghive attribute called auction_start_date which is in wp_termmeta as ‘hp_auction_start_date’
By default, the block has order by date added, title, and random.
My hope is to modify the block code to include an order by for “current auctions” which would only show listings where the attribute auction_start_date has a date greater than or equal to today. I also want an order by for “past auctions” which would only show listings where the attribute auction_start_date is less than today. This approach should give me the ability to use the same code to have two different blocks on the home page, one showing current and upcoming auctions and one showing past auctions.
I’ve been looking at the code in plugins/hivepress/includes/blocks/class-listings.php
and plugins/hivepress/includes/models/class-modal.php
I have had almost no luck getting the query to alter its default behavior. Am I in the wrong files?
Thank you.