Populating ACF Image Fields from JSON file

Yes it is possible to populates an acf gallery field from json data. Lets say this is your gallery json from your app… { “gallery” : [ “https://i.imgur.com/VHkyr8P.jpeg”, “https://i.imgur.com/obdqDwa.jpeg”, “https://i.imgur.com/eQuSNVx.jpeg”, “https://i.imgur.com/1lVyIJt.jpeg”, “https://i.imgur.com/5uIOviX.jpeg” ] } Now in your cron job you could run a function as shown below to handle acf gallery field image updates. My … Read more

ACF – get custom taxonomy term image field

I did it by this example: https://support.advancedcustomfields.com/forums/topic/loop-to-display-acf-image-of-taxonomy-term/ <?php $terms = get_terms( array( ‘taxonomy’ => ‘sluzba’, ‘hide_empty’ => false ) ); foreach ( $terms as $term ) : $term_image = get_field( ‘tax_image’, ‘sluzba_’ . $term->term_id ); ?> <div class=”col-lg-4 col-md-6″> <div class=”product product-zoom product–card”> <div class=”product__thumbnail”> <?php if ( $term_image ) : ?> <img src=”<?php echo … 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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)