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/
@barraqda Thanks, that’s good solution.
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?
@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.
@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!