F
F
freeman02042017-10-09 00:08:24
PHP
freeman0204, 2017-10-09 00:08:24

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

1 answer(s)
A
Alexander Aksentiev, 2017-10-09
@freeman0204

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 question

Ask a Question

731 491 924 answers to any question