• Resolved yagbayaski

    (@yagbayaski)


    I was looking to see how your plugin could achieve this task, and was really excited upon seeing the links in your documentation, only to find to my surprise, the post was taken down.

    Has this feature been deprecated or why is it no longer on your docs site?
    It isn’t even on the new docs site either — https://advancedforms.github.io/guides/

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Phil Kurth

    (@philkurth)

    Hi there

    The pro version of the plugin offers post creation and editing. The UI offers support for creating or editing one post per submission, but if you needed to create several posts, you could use a custom form submission handler to run any PHP code you need. This is also possible in the free version.

    https://advancedforms.github.io/guides/processing-form-submissions/#overview

    Cheers,
    Phil

    Thread Starter yagbayaski

    (@yagbayaski)

    Please can you show an example.

    Say I’m trying to create 2 posts at once from one submission form – a fundraising campaign (custom post type), and a donation form linked to the campaign (GiveWP donation form). The donation form will ultimately be displayed on the campaign post using a shortcode placed in an already designed template.

    Can a form submission create the donation form first async, then create the campaign next, and attach the shortcode id attribute into the campaign template?

    Screenshot from chainfundit.com/mariamolawale/save-mariam-from-cancer/

    This is an idea of what I’m trying to automate, where items 1 and 2 (progress and donors list) are shortcodes from GiveWP.

    • This reply was modified 1 year, 1 month ago by yagbayaski.
    Thread Starter yagbayaski

    (@yagbayaski)

    2. Another Question for you to consider please:
    Can this form generate a woocommerce product from the frontend?
    Would it need ACF fields or AF has a connection to Woo?

    • This reply was modified 1 year, 1 month ago by yagbayaski.
    Plugin Author Phil Kurth

    (@philkurth)

    Hi @yagbayaski

    I can’t answer questions about GiveWP as I have no experience using it personally.

    In regards to Woo, Advanced Forms doesn’t have any direct integration but using a custom submission handler (via PHP), you can do anything you like with the submitted form values.

    https://advancedforms.github.io/guides/processing-form-submissions/#overview

    Cheers,
    Phil

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

The topic ‘Create multiple posts from a single form submission’ is closed to new replies.