Home › Forums › Front-end Issues › questions about get_field › Reply To: questions about get_field
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!
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.