Skip to content

Instantly share code, notes, and snippets.

@lunaluna
Created June 11, 2019 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lunaluna/72ad0ea595e6665a7edaaf9eff14198e to your computer and use it in GitHub Desktop.
Save lunaluna/72ad0ea595e6665a7edaaf9eff14198e to your computer and use it in GitHub Desktop.
WordPressのフロントページに設定したページのIDを取得
<?php
$front_page_id = get_option( 'page_on_front' );
@lunaluna
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment