pre_get_posts hook not targeting search results page query
pre_get_posts hook not targeting search results page query
pre_get_posts hook not targeting search results page query
Excluding posts from search results page with meta query not working
search form for custom fields
Initializing the cropper for image uploads
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
First of all, you can do foreach inside foreach. In fact, you can nest loops to much higher level based on your server configuration. If you are going to use only one term in that field, make sure you select Field Type as Radio or Select and Return Value as Term Object. In that case, … Read more
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
Multisite – Cloning CPT pages + content (including ACF Flexible Content) from site to site
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
Can you not do something like this? $initDate = get_field(‘initial_date’,$term); echo $initDate;