front end submission dashboard with custom post type
Support › MB Frontend Submission › front end submission dashboard with custom post typeResolved
- This topic has 42 replies, 6 voices, and was last updated 3 years, 11 months ago by
Patrick Nelson.
-
AuthorPosts
-
November 3, 2020 at 8:47 AM #22681
jpascale
ParticipantHi!
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
November 3, 2020 at 10:16 AM #22684Long Nguyen
ModeratorHi,
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.
November 3, 2020 at 12:05 PM #22687jpascale
ParticipantLong, 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]November 3, 2020 at 3:36 PM #22692Long Nguyen
ModeratorHi,
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.
November 3, 2020 at 9:43 PM #22696jpascale
ParticipantLong, 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?
November 4, 2020 at 10:25 AM #22702Long Nguyen
ModeratorHi,
Please see my screen record https://share.getcloudapp.com/2NujQ1Jp. The Dashboard show the custom post type as well.
November 4, 2020 at 11:13 AM #22703jpascale
ParticipantRe 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?
November 4, 2020 at 3:29 PM #22706Long Nguyen
ModeratorHi,
Please share admin site account via this contact form https://metabox.io/contact/. I will check the Frontend Dashboard on your site.
November 5, 2020 at 1:32 AM #22710jpascale
ParticipantThank 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?
November 5, 2020 at 11:23 AM #22718Long Nguyen
ModeratorHi,
Here is steps I will do to troubleshoot the issue:
- Deactivate all plugins except Meta Box and MB extensions.
- Switch to the default theme of WordPress Twenty Twenty.
- Check the page with ID
1303
, make sure that it exists and has the shortcode Frontend Submission form. - Check the post type slug and field group (meta box) id, make sure it is assigned to attributes of the shortcode Frontend Submission form.
- Test the page with ID
1303
, make sure it runs properly with the Frontend Submission form, create the CPT as well. - Check the error log.
January 20, 2021 at 9:27 PM #24102RadoslawPiechowicz
ParticipantHi, 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,
RadekJanuary 20, 2021 at 10:03 PM #24103RadoslawPiechowicz
ParticipantI 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.
January 20, 2021 at 11:17 PM #24104Long Nguyen
ModeratorHi 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.
January 20, 2021 at 11:53 PM #24105RadoslawPiechowicz
Participantif you need access to the page, please tell me where I should send the access data.
January 21, 2021 at 10:36 AM #24109Long Nguyen
ModeratorHi,
Please share the admin site account via this contact form https://metabox.io/contact/. I will check the Frontend Dashboard on your site.
-
AuthorPosts
- You must be logged in to reply to this topic.