Created
August 7, 2015 12:01
-
-
Save kostiantyn-petlia/b4259605e8926ef47037 to your computer and use it in GitHub Desktop.
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
//WordPress has a few useful options, you can get the homepage ID by using the following: | |
$frontpage_ID = get_option('page_on_front'); | |
//or the Blog ID by using: | |
$blog_ID = get_option('page_for_posts'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment