• Resolved beng56

    (@beng56)


    Hi,

    From what I have understood from my researches and tests, the use of custom fields in post data can only be used to store data on back-end side. Am I wrong ? My need is to let the users fill a forminator form and at this end of it “simply” published the content of the fields / values of this form in a post. I’ve tried it and I can see the custom fields on back-end but not on front-end, is it because the WordPress post template cannot be changed ? Wouldn’t it be possible to add it artificially in the “content” zone with some custom coding or change the wordpress template to match these new fields? I’m using several types of field type (text, date, hour, checkbox, ..).

    Thanks for your support !

    Benoit

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Dmytro – WPMU DEV Support

    (@wpmudevsupport16)

    Hi there @beng56

    You can indeed set things up so your custom fields appear in your form on the frontend, and input is mapped to the corresponding custom fields in your post.

    See the Custom Fields section in our Forminator <Post Data Field doc here for instructions on how to do that:
    https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#post-data-field

    But as you have discovered, getting your custom fields to display in your published posts would indeed require editing the template you’re using for your posts.

    For example, if you’re using the ACF plugin to create your custom fields, you would want to include their field function for each field in your template:
    https://www.advancedcustomfields.com/resources/the_field/

    Cheers!
    Patrick

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @beng56

    I hope you are doing well and safe!

    We haven’t heard from you in a while, I’ll mark this thread as resolved.

    Feel free to let us know if you have any additional question or problem.

    Best Regards
    Patrick Freitas

    Thread Starter beng56

    (@beng56)

    Hi !

    First of all, thanks for your answer and sorry for the late reply.
    I managed to make it work, I can display the custom fields I want in the post. This is quite powerful. I’m facing some conditional logic issues as I’m including a lot in my forminator form but that part I will hopefully handle it on my side.

    But I would like some help on a particular point. I’m having 2 data in my form which are basically the post category and the post tag. But I want to use them as conditional logic in my other fields. Until now, I have to ask 2 times the same data : once in post category and once in the field which allows the conditional logic (a checkbox field).
    I see 2 options :
    – manage to put conditional logic on post data category. I see a conditional field on post_data but I don’t know how this works as post_data contains several fields (title, content, …)
    – hide and autofill category or tag based on a field value (the one I will actually be using for my conditional logic and which works fine)

    Obviously I have matching lists (the category and my conditional field).
    Any help ?

    Thanks.

    Best regards,

    Benoit

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

The topic ‘Post data with custom fields in front-end’ is closed to new replies.