Support

Account

Home Forums ACF PRO the_field works great, but not on my default category page template

Helping

the_field works great, but not on my default category page template

  • Hi there all,

    I am using the following code:

    <?php the_field('site_logo', 'option'); ?>

    and it works great on my homepage, and custom taxonomy page, but when I visit my default Category page, the image source is showing as that URL’s path with a #9 as the image source. So for instance it’s trying to pull the image from:

    http://events.themegeeks.net/category/downtown/9 ( “9” which is the items upload ID)

    and it should be showing the actual path of:

    http://events.themegeeks.net/wp-content/uploads/2015/05/lm-logo.svg

    Am i missing something on my category page or functions to simply allow the image URL to flow through to the category page template?

    Regards,
    Michael

  • You still looking for help with this?

    Is this coded separately in different templates or is there a common template part file?

    Please post the code that’s supposed to display the code in both places.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘the_field works great, but not on my default category page template’ is closed to new replies.