Custom Fields
Re-Envisioned
Support MB Frontend Submission Issue dashboard – MB 1.11.9

  • Creator
    Topic
  • #19931
    Resolved Sinusite
    Participant

    Dashboard has an issue with the 1.11.9 (ok with 1.11.7)

    The post type included in the shortcode is not transmitted.

    ex : $form ='[mb_frontend_dashboard edit_page=”536″ post_type=”project”]’;

    See line 56 – src/Dashboard.php
    ‘post_type’ => $this->edit_page_atts[‘post_type’], –> seems empty (works if => ‘project’).

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #19935
    Long Nguyen
    Moderator

    Hi,

    The shortcode [mb_frontend_dashboard] shows the dashboard with posts type inherits post type from the submission page (edit_page ID) which has the shortcode [mb_frontend_form], no need to pass the attribute post_type to the dashboard shortcode.

    To set more attributes for submission form shortcode, please follow the documentation https://docs.metabox.io/extensions/mb-frontend-submission/#shortcode-attributes.

    #19941
    Sinusite
    Participant

    Thanks. My copy-paste was the wrong.

    $form ='[mb_frontend_dashboard edit_page="494"]';

    and in ID = 494 :
    [mb_frontend_form id='projet-field-group' post_fields='title' "]

    But the bug is confirmed (it worked with 1.11.7 and not with 1.11.9).

    The Dashboard button “Add new” works but not the listing.
    -> You have 0 posts.

    #19942
    Long Nguyen
    Moderator

    Hi,

    Could you please check the meta box ID and attribute post_type of the shortcode again?

    [mb_frontend_form id='project-field-group' post_fields='title' post_type='project']

    See my short screen record https://www.loom.com/share/5b874f825fec4effa755aaf79456e2da, the dashboard shows posts after submitting as well.

    #20158
    Sinusite
    Participant

    OK correct now with add post_type arg.
    Thanks a lot for your support !

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