• Resolved trey96

    (@trey96)


    Hi,

    What I am attempting to do is get the file URL (that is automatically generated after a user uploads a video file via my Post Creation form and submits it on my site) to add it to the newly created post. I am specifically looking for PHP code that makes this possible.I would greatly appreciate a speedy response. Thank you in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @trey96

    I hope you are doing well today.

    If I understand this correctly you have a form with a Post Data field and you allow them to upload a Featured Image. If so Featured Image should show in your post by default, if your theme file responsible for the post page supports the Featured Image.

    However, if you look only for the URL of that uploaded image and place only that URL in the post this is not possible and this will be outside the scope of support to provide as such a thing. For that, you’ll need to hire a developer to provide the required custom code for you. WordPress provides a jobs directory here https://jobs.wordpress.net/, if you need further advice about it, feel free to email [email protected].

    – Subject: ATTN: WPMU DEV support – wp.org
    – Link back to this thread for reference (https://wordpress.org/support/topic/automatically-add-file-url-to-post-after-submitting-form/)

    Kind Regards,
    Kris

    Thread Starter trey96

    (@trey96)

    HI @wpmudevsupport13

    Perhaps I should’ve provided more details in my initial post about the issue. I already know that the Featured image that is uploaded will automatically be assigned to the newly created post. That works flawlessly. What I was referring to was the File Upload feature in Forminator. I created a custom field with the Label named “upload_file” and the Value name is set to {upload-1}. After I submit this form, I am presented with the file URL underneath the “Custom Fields:” section within the Submissions tab in Forminator. All I want to do is take that value (which would be the file URL in this case) and automatically add it to the newly created post after the form is submitted. I imagine some sort of PHP code is needed to accomplish this simple action or maybe I need to tweak a few settings within the plugin. Not sure but looking forward to your reply. Thanks.

    Plugin Support Imran – WPMU DEV Support

    (@wpmudev-support9)

    Hello @trey96,

    I hope things are going well for you.

    I appreciate your all information, still I am bit unclear at this moment which I would like to share with you so you can elaborate with more information

    All I want to do is take that value (which would be the file URL in this case) and automatically add it to the newly created post after the form is submitted

    I have check adding a upload field and link that upload field to the post-data field’s custom field tab. I can get the video URL to the post’s backend. So the question is, do you want the video URL to appear on the front-end post data?

    I hope to hear from you soon.


    Thanks & Kind Regards,
    Imran Khan

    Plugin Support Dmytro – WPMU DEV Support

    (@wpmudevsupport16)

    Hello @trey96,

    I hope you’re doing great today!

    We haven’t heard back from you for a while, so I’m marking this thread as resolved. Please feel free to reopen it and reply, in case you need our further assistance.

    Best Regards,
    Dmytro

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.