I am nonetheless new to programming and subsequently a bit misplaced…
I’ve created a taxonomy “standing” for customized posts.
I’ve added a ACF area named “bpn_statuscolor” which will get its worth “coloration” from a ACF coloration picker.
I’ve a archive web page of customized posts with the taxonomy show below the submit title.
I want to coloration the background of these taxonomies in line with their assigned coloration.
How do I proceed? I did quite a lot of analysis ending up with a code like this:
$phrases = get_the_terms( get_the_ID(), 'coloration' );
if( $phrases && ! is_wp_error( $phrases ) ){
foreach( $phrases as $time period ){
echo 'div class="sp-pcp-post-meta" <div fashion="background-color:' . get_field( 'bpn_statuscolor', 'coloration' . $term->term_id ) . '">Â </div>';
}
}
Sadly I’ve no clue the place so as to add the code as till now I am solely working with CSS (the place php code will not be working clearly).
Any assist extremely appreciated!