How can I copy an ACF field to AIOSEO field? [closed]

2 things I noticed: get_field() isn’t specifying a post to get the field from, which is necessary outside the loop: $add_description = get_field( ‘body’, $post->ID );` And to set a post meta value you should use update_post_meta(), not wp_update_post(): update_post_meta( $post->ID, ‘_aioseop_description’, $add_description );

ACF background-color per post in a WordPress loop

Well, your problem lies in your CSS code. .card-container .main-content:hover { background: <?php the_field(‘background-farbe’ ); ?>; background-blend-mode: multiply; } It uses class only, so it will be applied to every element with that class. Multiplying the same code with different colors won’t change anything – only one such rule will be active. So how to … Read more