I use CMS WordPress, version 4.7.2.
There is an arbitrary field with $key=price and some value. Tasks to display the field in a specific place on the page. My code is:
<p><?php $page_id =the_ID(); get_post_meta($page_id, 'price', true);?>aaakv</p>
page_id prints, but the actual value of the derived field is not. I tried the options with get_metadata() and also did not help. Tell me, please, what could be the problem. Thank you.