Getting the wrong page ID
I am developing a theme and I need to get the actual page ID, when I do: global $post; $thePostID = $post->ID; I get the wrong ID. I tried get_the_ID() and I get the same ID that in the code above, but both are wrong. I also tried to do wp_reset_query() before getting the ID … Read more