Meta Box
Support › MB Frontend Submission › Issue dashboard - MB 1.11.9Resolved
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').
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.
[mb_frontend_dashboard]
[mb_frontend_form]
post_type
To set more attributes for submission form shortcode, please follow the documentation https://docs.metabox.io/extensions/mb-frontend-submission/#shortcode-attributes.
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' "]
[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.
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.
OK correct now with add post_type arg. Thanks a lot for your support !