Support » Plugin: Category Thumbnails » Custom Post Category shows thumbnail in Admin UI, but returns NULL on template

  • Wonder if you can help on this one…

    I have a Custom Post Type (‘sponsors’), and a Custom Taxonomy attached to that (‘sponsor-categories’).

    The thumbnail uploader works fine with the Custom Taxonomy, and displays fine in the Admin UI list, but when I try to use echo get_the_category_thumbnail(); in my template (or other methods), it returns back as an empty <img> tag.

    A quick var_dump shows ["term_thumbnail"]=> NULL even though the Admin UI shows otherwise.

    Is it because I’m using a custom taxonomy? Do the API functions assume its going to be a ‘regular’ category?

    Any light you can shed on this would be great 🙂

    https://wordpress.org/plugins/category-thumbnails/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Custom Post Category shows thumbnail in Admin UI, but returns NULL on template’ is closed to new replies.