Answer the question
In order to leave comments, you need to log in
Why does the_title function and ACF fields work without a loop on single.php?
I display on the main goods in a cycle, a picture title and fields. And then I display without a cycle just the title the_title and the price field the_field('price') without specifying the post id. And when you switch to any product, everything is shown correctly on the single, the title and price of a particular post. But how can all this work without a cycle. I understand that single.php is the output of a full article, and the cycle is not appropriate there, but still?
Answer the question
In order to leave comments, you need to log in
https://core.trac.wordpress.org/browser/tags/4.8.1...
https://core.trac.wordpress.org/browser/tags/4.8.1...
https://core. trac.wordpress.org/browser/tags/4.8/s...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question