Custom Fields
Re-Envisioned
Support MB Frontend Submission How to extend MB Frontend Submission to anonymous posts

  • Creator
    Topic
  • #18617
    Resolved Jefferson
    Participant

    Hi,

    Sometimes it is necessary to allow people to post anonymously on the site. This can be normal when we think that requiring registration can end up avoiding filling out a form.

    However, for a post to be published on WordPress, the user must be logged in. It is not complicated to make a script so that a simple anonymous form creates a post whose responsible is a previously defined user, however, it is a little more complicated when you need all the resources that are already ready in the metabox plugin.

    So, how could I extend the plugin so that it allows the frontend to add posts anonymously?

    I think a possible solution would be:

    • Create an anonymous user who will be the owner of all posts;
    • Allow the application of anonymous forms through arguments in the creation of the metabox.

    Any Idea?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #18622
    Anh Tran
    Keymaster

    Hi Jeff,

    The MB Frontend Submission plugin allows users to post without requiring logging in. Please paste the shortcode in a page, and view it when you’re logged out, you’ll still be able to submit posts.

    In case you want to assign those posts to a specific author (by default, the author is admin), you can filter to change the post_author parameter.

    #18711
    Jefferson
    Participant

    Ahn,

    thanks for response. But, when I use upload fields the form not working without that an user stay logged in.

    #18714
    Anh Tran
    Keymaster

    If you use fields like file_advanced or image_advanced, then they requires access to Media Library to upload files, which requires users to log in and have proper capability.

    In this case, you can use only file or image field to upload files.

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