Post Ordering Dynamic Content
Hi,
I have used Brizy and ACF to display events. See below:
https://www.thefarmernetwork.co.uk/news-and-events/events/
This is working other than the date order isn't showing as it should. In fact it still seems in order of when the posts were created rather than in order of the custom field date. Do you have any thoughts on what is happening please?
I am having the same issue on a second site so any advice would be greatly appreciated.
Thanks,
Eilidh
-
Hi Eilidh,
Thank you for reaching out.
I created a similar page on my end using ACF and Brizy, but I wasn't able to replicate the sorting issue.

Could you please provide temporary access to your WordPress admin dashboard so we can investigate this directly on your website?
When sending the credentials, please email them to communitysupport@brizy.io and include the reference number 37024599503890 in the subject line so we can locate your request quickly.
Kind regards,
Ariel H.0 -
Hi Eilidh,
Thank you for your patience.
I checked the Events page on my end, and everything appears to be working properly. I even reversed the sort order, and the events updated as expected.
Could you please send us a screenshot of what you're seeing? That will help us compare it with what we're seeing on our end.

In the meantime, could you also try viewing the page in a different browser or an incognito/private browsing window to see if the issue persists? This will help us determine whether it's related to browser caching.
Kind regards,
Ariel H.0 -
Hi Ariel,
So frustratingly the event it was doing it with has now passed and has dropped off. However, it is still doing it with this site. if you scroll down the homepage.
This is happening on Firefox and Google Chrome.
Thanks,
Eilidh
0 -
Hi Eilidh,
Could you please try temporarily reversing the order of the posts, click Update, and then change the order back and click Update again? This may help refresh the query. After that, please purge any cache on your website.
Once you've completed these steps, please let me know so I can check the page from my end.
Kind regards,
Ariel H.0 -
Hi Ariel,
It's done something but is still not fully correct. e.g. 13th Aug comes before 12th Aug.
Thanks,
Eilidh
0 -
Hi Eilidh,
Thank you for the update.
Could you please send the credentials to communitysupport@brizy.io using the format we previously provided? This will help us quickly locate your request to begin investigating the issue.
Kind regards,
Ariel H.0 -
Hi Ariel,
Did you manage to take a look at this?
Thanks,
Darren0 -
Hi Darren,
The category title was displaying as "Category: Training" because Brizy was pulling WordPress’s complete archive title, which automatically includes the "Category:" prefix.
We first checked whether this could be adjusted through ACF or a WordPress filter, but the filter did not affect how Brizy generated the title. Because of this, we added a small JavaScript snippet that removes only the "Category:" text after the page loads.

The script targets the title using the custom ID "category-title" and keeps the existing Brizy styling intact, including the font, size, and weight.

Kind regards,
Ariel H.0 -
That's fantastic. Thank you very much. Really appreciate it,
0 -
Hi Eilidh,
This is regarding the Events ACF post ordering issue.
Unfortunately, we don’t have any updates on the issue at the moment. In the meantime, I’ve added a temporary PHP code snippet that should resolve the problem and ensure the events are sorted by the Event Date.


If you have other similar sites experiencing the same issue, you can use the same code snippet. Please make sure the ACF Field Name is set to "event-date". Alternatively, you can send us the site credentials, and we’ll be happy to add the code snippet for you.
Thank you for your patience and understanding.
0 -
Hi Ariel,
Thanks for this. It seems to have worked on this site. Although I can't get it to work on this one. In fact when I use the code all the events disappear from this page - https://www.fonfestival.org/archive/event-archive/
Do you have any thoughts?
Thanks,
Eilidh
0 -
Hi Eilidh,
I’d be glad to take a look at this one as well.
Could you please send over the site credentials? Please include the reference 37024599503890 in the subject line so we can easily identify your request.
Best regards,
Ariel H.0 -
Hi Eilidh,
The code snippet has now been added to the WPCode plugin on the site. You can check it there, and it should now be active.
Best regards,
Ariel H.0
Please sign in to leave a comment.
Comments
13 comments