Support

Account

Home Forums Front-end Issues Add new post from front with pre_save_post but without acf_form

Solved

Add new post from front with pre_save_post but without acf_form

  • Hello,

    I have a page with a form (contact form 7) and a single input ’email’.
    When i click on ‘SEND’ button, i want to create a new post like the method on this page using acf form to create a new post and update this post with this input.
    I don’t want to use ‘acf_form( $args )’… i don’t need all the input in this form…

    I thank you !!

    • Elliot

    • December 13, 2013 at 11:14 am

    Hi @dotmastaz

    The filter ‘acf/pre_save_post’ is only available by using the acf_form function. To hook into the contavy form 7 save action, you will need to read over their documentation / contact their support team.

    Thanks
    E

  • Ok and thank you…

    When i use acf_form, how to just display ’email’ field in my fields group ?
    And not all the fields ?

    • Elliot

    • December 15, 2013 at 5:30 pm

    Hi @dotmastaz

    Currently, you will need to hide the fields using JS or CSS.
    I’ll have a think about adding in some options to load specific fields!

    Thanks
    E

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.