• Resolved Neil Mickelson

    (@mickelsn1)


    Does this plug-in support Custom Post Types? I’m looking for a solution to leverage this ability to provide category images in lieu of featured images for things like imported Calendar Events for my website. Here’s the situation:

    1. I use The Events Calendar plugin to import data into its Events custom post type from an iCalendar feed. That feed does not contain any image information from its source calendar.

    2. The theme I use tries to display Featured Images whenever possible for Events in my database. However, they don’t exist on import and manually adding them is impractical.

    3. If I could leverage this plug-in to provide category images that would then act as Featured Images for the Events custom post type, that would be ideal.

    I would appreciate your thoughts on this and whether it’s possible to do with this plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author CK MacLeod

    (@ck-macleod)

    Hi Neil – thanks for the interesting question.

    Short answer is no, this plug-in does not support CPTs, but…

    …Middle length answer is that, surprisingly to me, in the peculiar case of The Events Calendar, it does support the Tags that TEC uses, though it does not support TEC Categories. The reason it supports Tags for TEC is that TEC happens to piggyback on or share standard Post Tags. In other words, if the joint TEC-WordPress tag system would work for your project or installation, then maybe that would solve your problem or solve at least part of it right now.

    For all I know, this was a mistake by the TEC developers! In any event, in my initial testing of CFIX and TEC with the 2017 theme, TEC does deploy the assigned Tag images as featured images for TEC Events. I can’t vouch for results with whatever theme you’re using – another complication.

    Longer answer is that I have been working on a more advanced, augmented version of CFIX – tentatively titled “Featured Image Fallbacks” (FIF) – for some time now, that includes some support for CPTs and that I expect will someday support many popular ones.

    I emphasize “some” because CPTs vary widely in implementation of featured images and taxonomy terms, if they employ them at all. The image deployment and taxonomies for, say, WooCommerce work differently than the ones for Easy Digital Downloads, and both seem to be different from the system in place for The Events Calendar, and so on.

    On the other hand developing a plug-in for general use that handles some interesting group of popular custom types or is easily adaptable for some usefully wide range of them is different from developing a similar function for a particular implementation that may not be applicable elsewhere.

    So, returning to TEC and your ask, though TEC’s categories don’t work with FIF, it shares the “post_tag” taxonomy used by regular WP posts. If Tags work for you, then I say go with them now, because I’m just not sure when I’ll have FIF ready in a form that would work for you. The only other alternative would be to attempt a custom solution for Events Calendar, or even just for your installation, specifically (and, if you need them now, it would have to be contract work).

    • This reply was modified 7 years, 1 month ago by CK MacLeod.
    • This reply was modified 7 years, 1 month ago by CK MacLeod.
    • This reply was modified 7 years, 1 month ago by CK MacLeod.
    • This reply was modified 7 years, 1 month ago by CK MacLeod.
    • This reply was modified 7 years, 1 month ago by CK MacLeod.
    Thread Starter Neil Mickelson

    (@mickelsn1)

    Thanks for the detailed reply. Unfortunately, I don’t think tags will work — I haven’t found a way to automatically map my iCalendar feed items against Tags when the importer runs…only Categories. Maybe that’s why they just use the post-tags taxonomy…

    I might run an experiment that uses the Taxonomy Images plugin to see if I can get images assigned to the Events Category taxonomy and then see if your plugin can handle the Featured Image replacement…

    Thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Support for Custom Post Types?’ is closed to new replies.