black friday sale

Custom Fields
Re-Envisioned
Support MB Frontend Submission front end submission dashboard with custom post type

  • Creator
    Topic
  • #22681
    Resolved jpascale
    Participant

    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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Author
    Replies
  • #22684
    Long Nguyen
    Moderator

    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.

    #22687
    jpascale
    Participant

    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]

    #22692
    Long Nguyen
    Moderator

    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.

    #22696
    jpascale
    Participant

    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?

    #22702
    Long Nguyen
    Moderator

    Hi,

    Please see my screen record https://share.getcloudapp.com/2NujQ1Jp. The Dashboard show the custom post type as well.

    #22703
    jpascale
    Participant

    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?

    #22706
    Long Nguyen
    Moderator

    Hi,

    Please share admin site account via this contact form https://metabox.io/contact/. I will check the Frontend Dashboard on your site.

    #22710
    jpascale
    Participant

    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?

    #22718
    Long Nguyen
    Moderator

    Hi,

    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.
Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.