Sorting by custom field date

Posted in: Newspaper
Post count: 23

While I know you dont support sorting by custom fields in a flex block out of the box. Is there away through custom code to add sorting by a custom field to the flex block builder. I am creating an event section for my website and need to be able to sort the events by the event date.

Post count: 27744

Hi,

If you have the latest version 12.6, you can filter the blocks using custom filed, the custom filed needs to be the type of text assigned to the posts, or CPT and use this value in the post id or use type acf type true/falser to include,exclude posts https://i.imgur.com/bpiJMXL.png

Thank you!

Post count: 23

Thanks for the response, but I am looking to sort by custom field not filter. Specifically what I am trying to accomplish is I have a custom post type called “industry events”, within the events is the “event date”, I want to display the events using the Flex Block Builder and have the events sorted in order of the “event date” so upcoming events show first.

Post count: 27744

Hi,

Unfortunately, this can be done only with custom work.

Thank you!

Post count: 23

Can you provide me a cost for the custom work to add this capability.

Post count: 27744

Hi,

You can submit a request here https://tagdiv.com/submit-a-request/

Thank you!

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.