Dashboard doesn't display custom post type
Support › MB Frontend Submission › Dashboard doesn't display custom post typeResolved
- This topic has 4 replies, 2 voices, and was last updated 3 years, 9 months ago by
Philip Faderl.
-
AuthorPosts
-
December 27, 2021 at 6:59 PM #32877
Philip Faderl
ParticipantHi everyone!
I'm started using MB some weeks ago and am facing currently the following issue:I'm using a frontend submission form (which works perfectly fine) for a custom post type and wanted to display a dashboard where users can edit and delete their posts. However: the dashboard seems to ignore the custom post type. I tried several page IDs in the shortcode, but either just the usual posts of my blog are displayed, or none at all. I was playing around with some other attributes within both shortcodes (like post_type) but nothing helped...
My Shortcodes as they currently are:
[mb_frontend_form id='gleichgesinnte' post_type="29132" confirmation="Vielen Dank! Dein Formular wurde abgeschickt und Deine Anzeige wurde kreiiert. Wenn Du noch weitere Fragen hast, schicke mir gerne eine Mail (siehe unten auf der Homepage). Vielen Dank und liebe Grüße, Philip" edit="true" allow_delete="true"]
[mb_frontend_dashboard id='gleichgesinnte' edit_page="28970"]I think the problem is quite similar to this problem, however when the ID is set on the page where the form is submitted, my usual blog posts are displayed (in admin - others did not contribute).
metabox.io/support/topic/dashboard-cant-get-submitted-custom-posts-stored-in-custom-table/Would be amazing if you could help!
Best regards from Germany,
PhilipDecember 27, 2021 at 9:44 PM #32880Long Nguyen
ModeratorHi Philip,
If you are using the builder to create the custom post type, the post type slug should be a string instead of all numbers like this
29132, I think. Can you please share some screenshots of your post type slug?December 27, 2021 at 10:31 PM #32881Philip Faderl
ParticipantHi! I jumped back and forth in regards to that and tried different (strings, numbers) solutions. I tried again with the slug (gleichgesinnte), but doesn't work either way.. I don't exactly understand exactly what my screenshot should show? It would be great if you could specify!
Best regards!December 28, 2021 at 12:39 PM #32889Long Nguyen
ModeratorHi,
You can see the post type slug in the URL, screenshot https://share.getcloudapp.com/llu6vzy5
then the frontend submission shortcode should be
[mb_frontend_form post_fields='title,content' post_type='job']January 14, 2022 at 12:09 AM #33213Philip Faderl
ParticipantIt seems like I have found the mistake! I wasn't aware that post type is not the same as id. So I had the same value for both. I changed the posttype now and now it works fine! 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.