Browser: Chrome 114
OS: macOS.
URL: Voor kinderen - Kunsthal Kade
Video: CleanShot 2023-07-17 at 13.58.15 · CleanShot Cloud
Hey there, I am using Bricks 1.8.3 and wish to create some conditional pages, but it is not working as I expected. I have been struggling with date conditions before, but I applied what I learned before. So, my issue:
I have a query loop with a post type (‘voor kinderen’). The query must only show the posts that have a date equal or later than the current date. Then, it must also be ordered by the date, with the post having the date nearest to the current date as first, then ascending.
I have set up the date metabox field with the ID of ‘kids_startdatum’. However, I also use a prefix for the group, which is ‘pagina_’. So, that would make the ID to use: ‘pagina_kids_startdatum’. This can also be found in the database.
I have set up the date format as ‘d.m.Y’, in metabox ánd WordPress. So, if I echo {current_date}, it displays it in that format. When I check the database, it shows the same format.
I also use the date comparison in the conditions to show specific headings. The condition is: CleanShot 2023-07-17 at 14.07.39 · CleanShot Cloud. This is set accordingly to the right headings. It does not work.
I run into a couple of issues:
- The query loop shows every post.
- The ordering is not working.
- The conditions are not working for the heading.
I did my own investigation already. I found out that for at least problems 2 and 3, the comparison is based upon the day, instead of the full date (day, month and year).