Created
May 18, 2018 20:20
-
-
Save csymlstd/768cc09411010c39bf0b152a763ed5c8 to your computer and use it in GitHub Desktop.
wp index.php - get current page id instead of first post
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$post = get_queried_object(); | |
$index_id = $post->ID; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment