Wordpress カスタムポストタイプ(投稿タイプ)

Wp カスタム投稿フィールド グーグルマップ自動設置機能 めも

/*-----カスタムフィールド 方法 2 --------*/ /*-----カスタムフィールド 方法 2 --------*/ // 固定カスタムフィールドボックスfunction add_shrine_fields() { //add_meta_box(表示される入力ボックスのHTMLのID, ラベル, 表示する内容を作成する関数名, …

Wordpress カスタム投稿タイプ ② functions.php と テンプレート.phpで設定

// カスタムポストタイプ 02function my_post_type02(){ register_post_type( 'a_shrine', array( 'label' => '神社', 'description' => '神社の情報', 'hierarchical' => false, 'public' => true, 'has_archive' => true, 'supports' => array( 'title', #…

Wordpress カスタム投稿タイプ 出力 ①

single.php ------- ○カスタム投稿タイプ、キー、値出力 <table> $value) : ?> <tr> <th></th> <td></td> </tr></table>