Multiple User Posts Dashboards based on CPT
Support › MB Frontend Submission › Multiple User Posts Dashboards based on CPT
- This topic has 8 replies, 2 voices, and was last updated 3 years, 8 months ago by
Long Nguyen.
-
AuthorPosts
-
August 12, 2021 at 2:13 PM #30188
EK
ParticipantHi.
I was searching for the best way to allow users to submit, edit and delete their custom posts generated with MB on the front end when I finally stumbled upon MB's has a solution for it. The sad part is that it is not very well documented nor very well publicised. An in-detail video would be great 🙂
Could you please suggest a solution for the following case:
2 (or more) CPTs - food, drink
Environment - Elementor Pro
User accesses the page with 2 tabs - one for the list of submitted food dishes, the other one for submitted drinks.
Each tab has a separate User Posts Dashboard where the related posts are listed with Edit and Delete buttons.Please please please assist in as much detail as you can.
Many thanks in advance 🙂
EugeneAugust 13, 2021 at 9:25 AM #30201Long Nguyen
ModeratorHi,
The extension MB Frontend Submission does not support adding more frontend submit and frontend dashboard shortcodes on a page. The functions of the plugin might not work properly. You need to add each shortcode on a page separately.
August 13, 2021 at 2:56 PM #30215EK
ParticipantThanks for your reply. Could you please clarify something for me?
In your online instructions, you say:
So, basically, all you need to do now is just create a normal WordPress page, and insert the following shortcode into the page content:
[mb_frontend_dashboard edit_page="124"]
Where 124 is the ID of the page, where you already have to let users submit posts. And when users visit this page, they'll see a dashboard...
"the page, where you already have to let users submit posts" - Which page is that?
Thanks in advance 🙂
August 13, 2021 at 9:13 PM #30231Long Nguyen
ModeratorHi,
It is the page that has the frontend submit shortcode
[mb_frontend_form]
, screenshot https://share.getcloudapp.com/Z4ujz0E8August 13, 2021 at 9:21 PM #30232EK
ParticipantSo, different CPT dashboards would need to be linked to their appropriate CPT frontend submission pages - right? These submission pages would need to be created with Meta Box - right?
August 14, 2021 at 7:47 AM #30244Long Nguyen
ModeratorHi,
Yes, the submission pages should have the frontend submit shortcode. And you should add the ID of the submission pages to the attributes
edit
of the dashboard shortcode.August 15, 2021 at 12:34 AM #30260EK
ParticipantHi again. Sorry to bother you, but having inserted the shortcode for the edit page of CPT, I get all standard WP posts listed. Not the dish CPT. Perhaps there's a CPT indicator missing?
My edit page (ID: 747) shortcode: [mb_frontend_form id='dish-group' post_fields='']
( I even tried [mb_frontend_form post_type="dish" id='dish-group' post_fields=''] )My dish dashboard page shortcode: [mb_frontend_dashboard edit_page="747"]
I can't find any helpful article about this.
Please help.
EugeneAugust 15, 2021 at 12:51 AM #30261EK
ParticipantSolved with [mb_frontend_form id='dish-group' post_fields='' post_type='dish']
🙂 ThanksPlease advise how I could change columns in the dashboard. I.e. get rid of Date and Status, and add Content and selected Custom Fields?
Many thanks in advance!
EugeneAugust 15, 2021 at 10:49 PM #30272Long Nguyen
ModeratorHi,
Currently, there is no option or filter hook to change the content of the table on the dashboard.
-
AuthorPosts
- You must be logged in to reply to this topic.