2017/04/09
固定ページ
備忘録です。
参考サイト
固定ページのパーマリンクの拡張子を .html にする方法
functions.phpに記述
/*【出力カスタマイズ】固定ページのパーマリンクの拡張子を .html にする */ add_action( 'init', 'mytheme_init' ); if ( ! function_exists( 'mytheme_init' ) ) { function mytheme_init() { global $wp_rewrite; $wp_rewrite->use_trailing_slashes = false; $wp_rewrite->page_structure = $wp_rewrite->root . '%pagename%.html'; // flush_rewrite_rules( false ); } }
パーマリンク設定を保存して終了です。
2023/06/30
神社
御朱印
2023/06/15
Mac
Linux
2023/04/16
時宗
御朱印
2023/04/14
臨済宗
御朱印
2023/04/05
寺院
御朱印