// 記事内で任意のPHPファイルを読み込むショートコード function Include_my_php($params = array()) { extract(shortcode_atts(array( 'file' => 'default' // デフォルトファイル名 ), $params)); // 読み込むパスを組み立て $file_path = get_theme_root() . '/' . get_template() . '/include-' . $file . '.php'; if ( file_exists($file_path) ) { ob_start(); include($file_path); return ob_get_clean(); } else { return '

指定ファイルが見つかりません: ' . esc_html($file_path) . '

'; } } add_shortcode('my_include_php', 'Include_my_php'); サイトマップ新横浜・川崎障害年金相談センター

サイトマップ

障害年金無料診断キャンペーン

LINEで障害年金のご相談

漫画でわかる障害年金

相談事例

無料障害年金勉強会開催中

     
お問い合わせ

ご相談のご予約

営業時間 : 8:30~17:30
但し受付は24時間対応
(原則翌営業日にご連絡)
045-594-8864 メールは24時間受付中