WordPRESS single.php
// カスタムポストタイプ 02function my_post_type02(){ register_post_type( 'a_shrine', array( 'label' => '神社', 'description' => '神社の情報', 'hierarchical' => false, 'public' => true, 'has_archive' => true, 'supports' => array( 'title', #…
single.php ------- ○カスタム投稿タイプ、キー、値出力 <table> $value) : ?> <tr> <th></th> <td></td> </tr></table>
'post', 'post_per_page' => '4', 'post__not_in' => array($post->ID), // 表示中の記事は出力対象から除外するため 'orderby' …
css .VideoWrapper { position: relative; padding-bottom: 56.25%; /* 16:9 */ padding-top: 25px; height: 0; } .VideoWrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } ----- single.php など ----- <div class="VideoWrapper"> </div>
<nav class="postNavi"> <span class="prev"> </span> <span class="next"> </span> </nav>
<div class="container"> <div class="content"> <article<?php post_class('kiji'); ?>> <h1></h1><div class="sub-header"> <div class="bread"> <ol> <li></li></ol></div></div></article<?php></div></div>
<div class="container"> <div class="content"> <article<?php post_class('kiji'); ?>> <h1></h1> </article> </div> </div>