I used the example shortcode [mb_frontend_dashboard edit_page="124"] and update the ID for my front end form which is working but for some reason the page is showing no posts even though the author has written one post. I made sure that the right post type is define in my shortcode which is this: [mb_frontend_dashboard edit_page="19" post_type="individual"]
Any thoughts on why this isn't working? I know this author has posts.
I figured it out. It is because my shortcode didn't include post_type="cpt-slug". Might want to add that in documentation.
This is happening again but it isn't related to the post_type="cpt-slug". I am signed in a the post author and I have two posts that I have submitted and that are published. I can't see them using the following shortcode
[mb_frontend_dashboard edit_page="62" post_type="individual"].
Also, is there no way for this shortcode to work without adding the page ID? My forms are dynamically shown which seems to be breaking this shortcode.
Just to clarify that the attribute
post_type needs to add to the shortcode frontend submission, not the shortcode frontend dashboard.
[mb_frontend_form id="meta-box-id" post_fields="title,content" post_type="individual"]
The page ID is required to add to the frontend dashboard shortcode, it will get the shortcode info from the frontend submission page to show the corresponding post type.
You can use the PHP code to pass the page ID dynamically.
$form = '[mb_frontend_dashboard edit_page="$page_id"'; echo do_shortcode( $form );
I think I know what the issue is. The code I'm using on the submit page doesn't show the form (since we are limiting entries) as part of the membership offering.
Since this is the way MB Frontend works is there a way to set a limit on how many total posts (in our case from three different post types) can be submitted? This would fix the issue because we could leave the form unprotected and visible for editing existing posts and just keep users from creating more than our set amount of posts. Let me know what you think.
If you want to limit submitted posts by something, please follow this topic on WP.org https://wordpress.org/support/topic/limit-post-creation-count-by-author-or-role/
and refer to the extension's filter https://docs.metabox.io/extensions/mb-frontend-submission/#post-data-filters