Timeline for Why does get_post() return the latest post inside template_include before doing anything
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 11, 2022 at 18:55 | comment | added | Tom J Nowell♦ | I'm not sure what you mean, can you give an example of when those two situations might not be the same? | |
Aug 11, 2022 at 18:22 | comment | added | Obed Parlapiano | That's a fantastic answer, thank you! Is there a way to differentiate if the $post is coming from the initialized query or if the request is actually for that post? | |
Aug 11, 2022 at 18:21 | vote | accept | Obed Parlapiano | ||
Aug 11, 2022 at 17:48 | history | answered | Tom J Nowell♦ | CC BY-SA 4.0 |