Frontend Form Not Rendering via Meta Box View — Shortcode Shows as Plain Text

Support General Frontend Form Not Rendering via Meta Box View — Shortcode Shows as Plain Text

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #48158
    Lisa PeacheyLisa Peachey
    Participant

    Hi Meta Box team,

    I’ve activated MB AIO, Meta Box Views, Meta Box Frontend Submission, and MB Custom Post Type. I’ve created a View using Twig to render a frontend submission form connected to my custom post type (lodging) and field group (lodging-listing-fields).

    Here's the code inside my View template:

    twig
    Copy
    Edit
    {{ mb.frontend_form( 'lodging-listing-fields', {
    post_type: 'lodging',
    label_submit: 'Add Lodging Listing',
    post_status: 'publish'
    } ) }}
    The View is saved, published, and working fine in the admin — but on the frontend, the form never appears. Instead, when I embed it via shortcode like this:

    [mbv name="admin-lodging-form"]

    …it just displays the raw shortcode as plain text, not the form.

    ✅ All related plugins are active
    ✅ “Show in REST API” is enabled for the CPT
    ✅ The View is set to “Shortcode” and saved
    ✅ I’ve tried clearing caches (WP Rocket), switching page templates, creating new test pages, and even using incognito — no change.

    Here is the test page showing the issue (currently public):
    👉 https://peacheyreport.com/admin-test-lodging-form/

    Is there anything I might have missed? Or is it possible something in the MB Views rendering engine didn’t initialize properly?

    Thanks so much — I appreciate any insight you can offer!

    Lisa Peachey

    #48166
    PeterPeter
    Moderator

    Hello Lisa,

    Thanks for reaching out.

    The frontend_form is not a function to use in MB Views to display the form. You can just add the frontend form shortcode to the page content to display the frontend form on the frontend. Here is an example:

    [mb_frontend_form post_fields="title,content"]

    Please follow the documentation https://docs.metabox.io/extensions/mb-frontend-submission/
    https://docs.metabox.io/extensions/mb-views/#running-php-functions

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