How can I get the page ID from inside the header.php file? $post->ID and get_the_ID() don’t work.
1 comment
Comments are closed.
How can I get the page ID from inside the header.php file? $post->ID and get_the_ID() don’t work.
Comments are closed.
The following will work: