Custom Fields
Re-Envisioned
Support MB Frontend Submission How to get the post ID from a url

  • Creator
    Topic
  • #21101
    Resolved Jon San Roman
    Participant

    Hi I’m trying to create a grid of properties with an “edit” button.

    The idea is that when I click on the button it opens the MB frontend module and I can edit that post’s content. How can i get the post id of that post to add it to the MB post_id field?

    Thanks

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #21107
    Long Nguyen
    Moderator

    Hi Jon,

    In the loop, we can use the function get_the_ID() to get the post ID then pass it to the URL of editing form.

    http://site.com/mb-frontend-submission-page/?rwmb_frontend_field_post_id=POST_ID

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.