Support » Plugin: Advanced Custom Fields: Font Awesome Field » How to find Url for uploaded Icon in Post Category

  • Resolved withatitude

    (@withatitude)


    I set up an advanced custom field to add a category icon by uploaded an image to a post category. It seems to function but I don’t have the right PHP target to pull the image URL.

    How do I write this correctly?

    <div class=”cat-icons”><img class=”category_icons” src=”(<?php
    the_field(‘category_icons’);?>)”></div>

    I haven’t tried any direct solutions besides playing around with PHP that I don’t really know.

    Front end output displays this when I inspect element:
    <div class=”cat-icons”></div>

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.