WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Edit Flow] Auto Populate Editorial Metadata using wp_insert_post (2 posts)

  1. schtifin
    Member
    Posted 2 years ago #

    I have created a web form to automatically create a new post on submission. I was wondering if it's possible (somehow) to collect some of the form data and automatically populate Editorial Metadata text fields?

    For example, let's say I created an Editorial Metadata text field called "Email Address". I would like to take the email address entered into the form and auto populate the "Email Address" Editorial metadata text field.

    Any ideas or advice, or am I reaching here?

    Thanks.

  2. Daniel Bachhuber
    Hand Built
    Posted 2 years ago #

    Yep, it's totally possible and should be pretty easy to do to boot.

    I've created a simple code snippet that should send you in the right direction: https://gist.github.com/1649460

    If you have any questions about the implementation, please don't hesitate to ask. Also, if you like how your form turned out, we'd love to have you post it in pastebin or similar so we can include it in the code snippets section of our website.

    Let me know what you think!

Topic Closed

This topic has been closed to new replies.

About this Topic