Featured Images for Custom Events Template with Categories

Home Forums Calendar Products Events Calendar PRO Featured Images for Custom Events Template with Categories

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #934059
    penultimatemedia
    Participant

    Hi there,

    Got a slightly confusing request for some advice please.

    I’m using the Events Calendar inside a custom theme. Now my theme has lovely large header images that are set based on the featured image of each page/post etc.

    For individual events this looks great and for the main Events page it just pulls the image from the most recent event listing which is fine.

    However, I have two categories inside the events calendar with a link to each category to show the calendar for only that category. The problem is here the featured image doesn’t show up as there isn’t one for categories.

    Now I also run a plugin called taxonomy images which allows me to set images for categories, tags etc.

    Is there a way I can also get these category images to show in the featured image location for calendar category pages?

    From what I’ve read it’s not possible to have separate category templates for this plugin?

    Advice greatly appreciated as my head is going round in circles on this one!

    Thanks
    Pete

    #934685
    Brian
    Member

    Hi,

    Thanks for using our plugins. I get what you are trying to do.

    You are correct there is no templates for the event categories to edit.

    However, you could check using conditionals if you are on an event category page and display an image that way:

    http://codex.wordpress.org/Function_Reference/is_tax

    The Events Calendar Taxonomy is:

    tribe_events_cat

    Not sure if that taxonomy images works with the Events Calendar Categories, but you could use that with the conditionals to display an image or directly code in your own image too.

    Here is a list of other conditionals for the Events Calendar:

    https://gist.github.com/jo-snips/2415009

    Let me know if you have any follow up questions.

    Thanks

    #934799
    penultimatemedia
    Participant

    Hi Brian,

    Fantastic information, the combination of the conditionals and some custom code to pull from the taxonomy images plugin did the trick.

    Thanks again for your help.

    Pete

    #934963
    Brian
    Member

    Great, glad it helps, I am going to go ahead and close this ticket, but if you need help on this or something else please post a new ticket.

    Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Featured Images for Custom Events Template with Categories’ is closed to new replies.