Support

Account

Home Forums Backend Issues (wp-admin) How to add a class to an element using ACF? Reply To: How to add a class to an element using ACF?

  • code here would be better, it is impossible to copy and paste text from an image

    
    <i class="<?php the_field('home_icons', 5); ?>">
    

    you are trying to get the values from the post ID of 5, not the current post or options. Whatever post ID 5 is probably does not have a value. Are you sure you want to specify a post ID here?