disp.php
elseif(is_post_type_archive( 'car' )){
$disp = '中古原付バイク販売TOP';//falseで出力せん //single_term_titleでも同じ
//過去の出演予定判断
$sortset = (string)filter_input(INPUT_GET, 'sort');
if ( $sortset == 'newer' ) :
$disp = '中古原付バイク販売TOP|新着順';
elseif ( $sortset == 'car_price_low' ) :
$disp = '中古原付バイク販売TOP|低価格順';
elseif ( $sortset == 'car_price_high' ) :
$disp = '中古原付バイク販売TOP|高価格順';
elseif ( $sortset == 'car_km_low' ) :
$disp = '中古原付バイク販売TOP|走行距離が短い順';
elseif ( $sortset == 'car_year_new' ) :
$disp = '中古原付バイク販売TOP|年式が新しい順';
elseif ( $sortset == 'car_cc_big' ) :
$disp = '中古原付バイク販売TOP|排気量が大きい順';
elseif ( $sortset == 'car_cc_big' ) :
$disp = '中古原付バイク販売TOP|排気量が小さい順';
endif;
$description = $disp . $disp_page .' | '. $disp_base;
}
d_h_title
//カスタムポストタイプアーカイブ指定
//car TOPなら
elseif(is_post_type_archive( 'car' )):
$disp = '中古原付バイク販売TOP';
//並び替え判断
$sortset = (string)filter_input(INPUT_GET, 'sort');
if ( $sortset == 'newer' ) :
$disp = '中古原付バイク販売TOP|新着順';
elseif ( $sortset == 'car_price_low' ) :
$disp = '中古原付バイク販売TOP|低価格順';
elseif ( $sortset == 'car_price_high' ) :
$disp = '中古原付バイク販売TOP|高価格順';
elseif ( $sortset == 'car_km_low' ) :
$disp = '中古原付バイク販売TOP|走行距離が短い順';
elseif ( $sortset == 'car_year_new' ) :
$disp = '中古原付バイク販売TOP|年式が新しい順';
elseif ( $sortset == 'car_cc_big' ) :
$disp = '中古原付バイク販売TOP|排気量が大きい順';
elseif ( $sortset == 'car_cc_big' ) :
$disp = '中古原付バイク販売TOP|排気量が小さい順';
endif;
echo $disp.' | ';
FB OG が アーカイブの設定が出来ていない模様
タイトル等設定してからやる
car.css
.flickSlider .flickThumb {
width: 100%;
overflow: hidden;
margin-top: 6px;
カスタム の 車 その他 が 投稿タイプなってない
メーカー car_maker が変わらないのはcar_maker がいけない
car_maker2にすると かわらないのが治った
特にテンプレの変更箇所ない
走行距離においては
数字で入れていないので
'type' => 'DECIMAL(3,1)', //値のタイプ 数字
としなければならない
参照
https://hacknote.jp/archives/24699/
シングルいらない
<td colspan="4" class="td_titel">
<!-- <?php echo implode( ',', $names ); //ターム名区切り文字を指定 ?> -->
<?php the_title(); ?>
hihead しんぐるcar いらない
<?php elseif ( is_singular('car') ) : //--中古車販売 個ページなら--?>
<h1 class="head"><?php
if(mb_strlen($wp_title.$h1_head_min, 'utf-8') > '77'):
$h1_title = mb_substr($wp_title.$h1_head_min, 0, 77, 'utf-8') .'…';
else:
$h1_title = mb_substr($wp_title.$h1_head_min, 0, 77, 'utf-8');
endif;
echo $h1_title
?></h1>
あっても
小カテゴリがひょうじされたりおやがひょうじされたり
タイトルを直した
ブログにタクソノミーを使っていないので
簡単にis_taxで分岐
part_blog_top.phpをゲットポスト
a_blog_box2.php alt 古い
f4 int
body 下に
/*テキストリンク*/
.jirei_link a{color:@link_color; border: solid 1px @link_color; padding: 12px; display: inline-block;}
.jirei_link a:hover{text-decoration: none; color:#fff; background: @link_color;}
blog1box
cat.php がない てかやめる
ファンク追加 印と
//get_the_categoryにかわりで特定のカテゴリを除外するコードの書き方
function my_get_the_category( $id = false, $exclude = array() ) {
$cats = get_the_category( $id );
$excluded_cats = array();
foreach( $cats as $cat ) {
if ( !in_array( $cat->cat_ID, $exclude ) ) {
$excluded_cats[] = $cat;
}
}
return $excluded_cats;
}
//書き方
//$category = my_get_the_category(false, array(1, 2));