Sorry, I didn’t get any email notification of your reply π
This is strange, because I am used to create my CTP by mannually adding code to function.php
this way, my CTPs taxonomies have access to customizable permalinks.
Here is the code to get images from an ACF field:
$image = get_field('vignette_du_projet'); // Get the image's ID
$size = 'vignette_projet'; // Get the thumbail size
// If the image field field is not empty, diplay the image with the right size:
if( $image ) {
echo wp_get_attachment_image( $image, $size );
}
I tried to add the apply_filters( 'dominant_colors' but the image don’t show up.