• Resolved Dave

    (@csn123)


    I am using this shortcode to output the form on the front end to allow user submissions for future events.

    [event_form]

    I’d like to accept a photo alongside a user submitted event. I can’t see anything in the settings or documentation to make this possible, but is there a way I can accept a user submitted photo alongside their event?

Viewing 5 replies - 1 through 5 (of 5 total)
  • When I use the shortcode I see a place to upload an Event Image in the form.

    Make sure that the user role for the user has the capability to upload event images.

    Thread Starter Dave

    (@csn123)

    Thanks. Most of the submissions are from non-registered users. Is there a way to allow this on logged-out users?

    It could be done but do it at your own risk since it allows anyone to upload event image files. Add the following code snippet:

    add_filter('em_object_can_manage', 'my_object_can_manage', 10, 3);
    function my_object_can_manage( $can_manage, $EM_Event, $owner_capability ) {
        if ( $owner_capability == "upload_event_images" ) {
            $can_manage = true;
        }
        return $can_manage;
    }

    How to add a code snippet in wordpress: https://www.wpbeginner.com/beginners-guide/beginners-guide-to-pasting-snippets-from-the-web-into-wordpress/

    • This reply was modified 3 years, 2 months ago by joneiseman.
    Thread Starter Dave

    (@csn123)

    I have added this code and the shortcode, but there’s no option for any user (logged in or out) to upload an image. Is there a setting buried somewhere to allow this?

    Thread Starter Dave

    (@csn123)

    Ignore me. The theme I’m using has a custom form template and that was overriding the default shortcode.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘User Submitted Featured Image’ is closed to new replies.