Custom fields, where is it?

This topic contains 7 replies, has 3 voices, and was last updated by  Stephen Harris 1 day, 15 hours ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #31572

    Hello

    I just bought your add-on “front-end-submission” and I have a problem of use

    I explain, I created a custom submission form with the plugin, this form works very well except that when I want to modify the event after submission I do not have access to the personal fields of the form, I can change the title the recurrence or description of the event but the other fields are invisible and hence they are also invisible on the published event page

    to give you an example I hope that the people who will post events on my site can take into account the accessibility to disabled people for events they will post. So I created a custom form that allows you to choose different accessibility criteria check box. However, as moderator of my site I want to control and possibly modify these criteria before the publication of the event via the back-office wordpress. then when the event is published it is necessary that the visitor of the site is access to this information (that he can see them on the page of the event concerned otherwise it is useless

    I hope I was clear enough

    thank you for helping me

    cordially

    Olivier Roux
    #31596

    Hi Olivier,

    The FES extend only provides front-end submission (and editing – if enabled) of events. On the admin side, nothing changes, and the values should be editable via the custom fields metabox. (If you have chosen custom field keys that begin with a _ prefix, they won’t be visible in the custom fields metabox).

    The plug-in doesn’t display the data, you’ll need to edit your theme’s templates to include that. You can copy the event-meta-event-single.php template to your theme and make the changes there. For instance, if you used the custom field key foobar:

    <?php
    echo get_post_meta( get_the_ID(), 'foobar', true );
    ?>
    

    You can also enable front-end editing, just add

    define( 'EVENT_ORGANISER_FES_FRONTEND_EDITING', true );
    

    to your wp-config.php.

    Stephen Harris
    #36217

    I am intervening in this message because I have the same problem.

    You can also enable front-end editing, just add – define( ‘EVENT_ORGANISER_FES_FRONTEND_EDITING’, true ); – to your wp-config.php.

    I created a custom field in my event creation form. I modified the code of the event-meta-event-single.php page to display it. I have entered the editing authorization in the wp-config.php file.

    The custom field appears on the event page but it is impossible for me to modify it from front-end while I am connected as the event creator.

    Did I forget something?

    Best regards,

    • This reply was modified 1 week, 2 days ago by  Philippe Arsane.
    Philippe Arsane
    #36238

    Hi Philippe,

    Most themes have an ‘edit’ link for logged-in users. Clicking that should reload the page with the event form.

    If not you can add one to the theme’s template with edit_post_link() (see https://codex.wordpress.org/Function_Reference/edit_post_link)

    Stephen Harris
    #36254

    Thank you,
    I’m not sure I understand.
    Which template page should I modify? single-event.php?
    With kind regards,

    Philippe Arsane
    #36264

    I forgot to specify that I use the Divi theme

    Philippe Arsane
    #36338

    Hi Stephen,

    After various attempts, I see a link to the event editing, but it takes me back to the back office, on the event page.

    Here’s how I did it.
    With the Members plugin, I created a role (Commercial) dedicated to staff authorized to publish and edit events.
    I have assigned the necessary permissions in the plugin settings and added your line of code to the wpconfig.php file.

    When I log in as a “Commercial”, I see the wp bar at the top of the screen with a link to edit the event. But this brings me back to editing the event in the back office and not to the form in the front end.

    That is not what I am trying to achieve and it does not correspond to what you are explaining to me. So I must be making a mistake somewhere…. But where?

    Best regards,

    Olivier

    Philippe Arsane
    #36352

    Hi Olivier,

    It sounds like you’re doing everything right, are you able to get in contact (via email) with (admin) log-in details for the site, and I’ll investigate further for you.

    It would be helpful to have FTP access to the site as well

    Stephen Harris
Viewing 8 posts - 1 through 8 (of 8 total)
To enable me to focus on Pro customers, only users who have a valid license for the Pro add-on may post new topics or replies in this forum. If you have a valid license, please log-in or register an account using the e-mail address you purchased the license with. If you don't you can purchase one here. Or there's always the WordPress repository forum.