Meta Box
Support Forum
Support › Meta Box Builder › Post IDResolved
How would I output the post ID within a custom field?
Hi Steve,
Could you please clarify the question? Or let me know the purpose of this.
You can show the post ID by function the_ID() in the loop or get_queried_object_id() in a single post/page. https://developer.wordpress.org/reference/functions/the_id/ https://developer.wordpress.org/reference/functions/get_queried_object_id/
the_ID()
get_queried_object_id()
Instead of the Post ID I used the SKU, which outputted the Post ID so I am good.