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

  • Creator
  • #21101
    Resolved Jon San Roman

    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?


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

    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.

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