Using ACF values in nested WP queries for CPT with date values in the past

Your current meta query embodies the logic IF event_end IN range OR event_start IN range You need to account for the conditions of event_end‘s presence separately: IF event_end IN range OR ( event_end NOT EXISTS AND event_start IN range ) Immediately adjacent nested clauses with the same AND/OR relation can be combined, which might make … Read more

WPQuery Date and ACF

So, at the end of all i followed a bit of all the advises i found online. First, I changed the value of my fields to make sure in database is like YYYYMMMDD. The problem i had was, that the field was filled up through API and ACF could not format the date at the … Read more

Custom ACF block only outputs commented JSON to the DOM

I was facing this same issue, in my case the issue causing me this problem was silly, as usual. For those facing a similar issue, check your acf_register_block_type function: acf_register_block_type( array( ‘name’ => ‘theme-block-jobbz’, ‘title’ => __( ‘Title’, ‘client’ ), ‘enqueue_style’ => ‘template-parts/blocks/block_jobBz/block.css’, ‘render_template’ => ‘template-parts/blocks/block_jobBz/block.php’, ‘category’ => ‘Category’, ‘icon’ => ‘html’, ‘mode’ => ‘preview’, … Read more