• Resolved reljic

    (@reljic)


    Hi!

    I’m trying to get custom attributes to work. I put this code in form.php of frontend submit.

    <div class=”input”>
    <label for=”organizator”><?php _e(‘Organizator2’,’events-made-easy-frontend-submit’); ?> <small><?php _e(‘required’,’events-made-easy-frontend-submit’); ?></small></label><br />
    <?php EMEFS::attribute(‘organizator’); ?>
    <?php EMEFS::error(‘organizator’); ?>
    </div>
    

    Then I put <b>Organizator:</b> #_ATT{organizator} to event format.

    When I publish the event, nothing is written next to Organizator. I check the attributes in the settings of the event, and the value that I input in the frontend submit is there, but it shows ?Organizator? (not defined in template)

    I guess I am missing something obvious, but I’m just not seeing it.

    Thank you in advance for your help. Love the plugin.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Franky

    (@liedekef)

    In which format did you write the attribute? I’ll check here too …

    Thread Starter reljic

    (@reljic)

    Under Settings > Events > Single Event Format

    Plugin Author Franky

    (@liedekef)

    It worked fine using Settings > Events > Single Event Format
    but not when defining the single event format directly in the event.
    This is now fixed (depending on the time when you downloaded the latest update, you might not have the fix yet, so check your version of eme_attributes for this change:
    https://plugins.trac.ww.wp.xz.cn/changeset/1828387/
    )

    Thread Starter reljic

    (@reljic)

    I updated both plugins to the latest version, but still doesn’t work.

    This is how it looks. It works only if I manually change it.

    View post on imgur.com

    I don’t know where it get the “?” from. The value is right, but it defines it as ?organizator? instead of organizator.

    Is the problem in form.php code of the frontend submit plugin or in the code of event format in Eme?

    Plugin Author Franky

    (@liedekef)

    Make sure that the quotes you’re using in form.php are regular quotes, not slanted ones. That might be the cause of the question mark.

    Thread Starter reljic

    (@reljic)

    That did the trick! Thank you!

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

The topic ‘Custom attributes with Frontend submit’ is closed to new replies.