elliot. Thanks indeed lacked id_post the same post.
Unable to get the id of the functions.php post using the function
$ postid = get_the_ID ();
I used the form below and it worked:
$ url = explode (‘?’., ‘http://’ $ _SERVER [“HTTP_HOST”] $ _SERVER [“REQUEST_URI”].);
$ Id = url_to_postid ($ url [0]);
A big hug to everyone
Thank you!