Home Forums General Issues Category Links Reply To: Category Links

  • Thanks.

    What I’m having trouble with is the code to use. ACF code.

    Here’s what I tried that’s not working:

    <?php if ( get_post_meta($post->ID, 'my_image', true) ) : ?>
    <a href="<?php if ( get_post_meta($post->ID, 'my_image_link', true) ) : ?>"><img src="<?php the_field('my_image'); ?>" /></a>
    <?php endif; ?>

    This is what I’m having trouble with. When I add the ACF code to load the Taxonomy (which should be converted to a link, since the ACF Link field isn’t working for some reason) I’m not getting a real link, I’m getting a link to a number that goes nowhere.