• rosemal

    (@rosemal)


    Hello, I use event manager’s event submission form to add events from my registered users. Since featured image isn’t required some of them skip this field. However that messes up my events listing page and homepage look. So how do I make the featured image field compulsory in the form?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter rosemal

    (@rosemal)

    Any update on this?

    barraqda

    (@barraqda)

    I think you can use conditional-placeholders, like:
    {has_image}content{/has_image}
    event has a featured image.
    {no_image}content{/no_image}
    event does not have a featured image – show standard image
    http://wp-events-plugin.com/documentation/conditional-placeholders/

    caimin_nwl

    (@caimin_nwl)

    @barraqda Thanks, that’s good solution.

    Thread Starter rosemal

    (@rosemal)

    Thanks @barraqda @caimin_nwl using this conditional placeholder I’m only able to show a standard image on the single events page. What about the events listing page? This standard image isn’t being used as a feature image in the listing page.

    Also is there no way I can make the image field compulsory in the form itself?

    Robswaimea

    (@robswaimea)

    @rosemal What about the events listing page?
    {no_image}URL of the Image{/no_image}
    Would be placed in your code for your events list.
    It works for me.

    You have a page with the short code [event_form]

    Would it be possible to point your users to…
    yourwebsite/wp-admin/post-new.php?post_type=event
    to add the event.

    If so you might try a plugin called
    https://wordpress.org/plugins/require-featured-image/

    I haven’t fully tested but it looks like it works.

    • This reply was modified 6 years ago by Robswaimea.
    Thread Starter rosemal

    (@rosemal)

    @robswaimea ofcourse! I was trying to put the code in the single events page. Thanks for the quick fix @barraqda

    Regarding the required attribute of the events form,
    No I can’t give these users access to the backend (unfortunately!) to add the events. Is there any other way (hopefully without a plugin) where I can make the field required?

    Apart from this issue though this plugin ticks off all my requirements!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Featured image required’ is closed to new replies.