Custom Fields
Re-Envisioned
Support MB Frontend Submission using metabox fields for front end submission

This topic contains 3 replies, has 2 voices, and was last updated by  davidrknowles 1 year, 4 months ago.

  • Creator
    Topic
  • #10139
    Resolved
    brkard
    Participant

    Hi.

    Is it possible to show metabox fields for post fields.

    I mean post_fields as:

    List of post fields you want to show in the frontend, separated by comma. Supported following fields: title, content, excerpt, date, thumbnail.

    So can we use these fields in from metabox.

    For example i want to use title field that i created as text field with with metabox.

    I want to to use content and excerpt fields that i created as WYSIWYG fields with metabox.

    So i can arrange and reorder these fields…

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #10168

    davidrknowles
    Participant

    Yes, it is, just include it in your shortcode example: [mb_frontend_form id=”your_mb_id” post_fields=”title, content, excerpt, date, thumbnail.”]

    You can read more about it here: https://docs.metabox.io/extensions/mb-frontend-submission/#shortcode-attributes

    Hope this helps.

    #10185

    brkard
    Participant

    Thanks for your reply David.

    Actually i want to show only metabox id. I want to include title and content fields in metabox fields.

    Like this
    [mb_frontend_form id=”your_mb_id”]

    Title and content fields will be included in metabox..

    I want to achive this.

    There is tutorial about what i need here > https://docs.metabox.io/save-wysiwyg-content-post-content/

    i hope Anh will add title and content wordpress fields to metabox main plugin. This will be better easy and more comofortable.

    I hope i could tell

    Thanks

    Burak

    #10200

    davidrknowles
    Participant

    Yes, unfortunately, the post title is a bit more of a pain due to where and how the data is saved.

    What you could do is write a function in the meantime that mirrors the CF and rewrites the post title with it. You could use the submission hook rwmb_frontend_after_process, so you have the post ID to target the rewrite of the title with as I am not sure the $config submission contains the title.

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

You must be logged in to reply to this topic.