get_post() returns last post id for a not found url
Question
For a 404 url the get_post() always returns the last post.
or when I prints the get_the_ID()response it gives me the post id of the last post.
0
8 months
2022-06-06T04:34:57-05:00
2022-06-06T04:34:57-05:00 0 Answers
0 views
0
Leave an answer