Support Forum
Support › MB Frontend Submission › front end submission dashboard with custom post typeResolved
Hi!
1) I have been able to create a front end submission dashboard with non-custom posts.
2) I have been a create a front end submission form for custom posts.
3) I have not been able to create a front end submission dashboard that will list the custom posts.
I couldn't find documentation for the [mb_frontend_dashboard] shortcode that explains how to use it with custom posts.
Thanks, James
Hi,
To create the Frontend Dashboard for the post type, we have to add the attribute post_type
to the Frontend Form shortcode.
[mb_frontend_form post_fields="title,content" post_type="post-type-slug"]
For more information, please follow the documentation https://docs.metabox.io/extensions/mb-frontend-submission/#shortcode-attributes.
Long, thanks.
I've done that & it works great for creating the custom post.
Please see:
This shortcode is in page "scrapecreateform3"
[mb_frontend_form id="scrapecreatefromfg"
post_type="scrapecreateform" post_fields="title"]
However, the dashboard does not show the custom posts; it only shows the standard posts.
I've tried both:
[mb_frontend_dashboard post_type="scrapecreateform" edit_page="scrapecreateform3"]
&
[mb_frontend_dashboard edit_page="scrapecreateform3"]
To repeat, it looks like the problem is with the
shortcode [mb_frontend_dashboard]
Hi,
The value of the attribute edit_page
must be the page ID which has Frontend Form shortcode. We can get the page ID in the URL when editing the page, see my screenshot https://share.getcloudapp.com/JrugZwkA.
The shortcode for the Frontend Dashboard should be: [mb_frontend_dashboard edit_page="1925"]
See more in the documentation https://docs.metabox.io/extensions/mb-frontend-submission/#user-posts-dashboard.
Long, thanks.
So I've changed the shortcode to:
[mb_frontend_dashboard edit_page="1303"].
It still doesn't work.
It lists the standard posts.
It looks like the [mb_frontend_dashboard] shortcode does grab the correct fields & custom fields from the [mb_frontend_form] shortcode, but it does not grab the correct post type.
Have you tested this with a custom post?
Hi,
Please see my screen record https://share.getcloudapp.com/2NujQ1Jp. The Dashboard show the custom post type as well.
Re your screen record:
Isn’t that exactly what I’ve done & documented above?
You’re telling me it works for you;
I’m showing you that I’m following your instructions & it’s not working for me.
Can you please tell me what is incorrect in the short codes that I’ve documented above?
Hi,
Please share admin site account via this contact form https://metabox.io/contact/. I will check the Frontend Dashboard on your site.
Thank you for offering to check it for me.
However,
this is the Frontend Dashboard code on my site: [mb_frontend_dashboard edit_page=”1303″].
What else are you interested in checking?
If you have a plan for checking other items, why not tell me what you're considering & that way I can learn too?
By the way, this is a multisite installation. Could that make a difference?
Hi,
Here is steps I will do to troubleshoot the issue:
1303
, make sure that it exists and has the shortcode Frontend Submission form.1303
, make sure it runs properly with the Frontend Submission form, create the CPT as well.Hi, I'm trying to achieve the following:
I would like to have 2 different forms and dashboards for 2 different post types. But no matter what I do, every dashboard always shows all posts. it quickly becomes unclear. Hence the separation. I enter the corresponding page id in the dashboard shortcode, but all dashboards still show all posts.
What am I doing wrong?
Best regards,
Radek
I think it`s the same problem jpascale has. I testet a lot of times, but the dashboard still shows only standard post types. Submission is no problem. Just the dashboard.
Hi Radoslaw,
Please share some screenshots (full screen) when editing the page (frontend submit and frontend dashboard) and shortcodes that you are using. I've tested the frontend dashboard with two post types but not see any issue.
if you need access to the page, please tell me where I should send the access data.
Hi,
Please share the admin site account via this contact form https://metabox.io/contact/. I will check the Frontend Dashboard on your site.