<?php get_header(); ?>
5 j; a7 J z: R, P% n <div id="container">9 g9 S0 S; a* q
<div id="content" role="main">
- [) o9 Z) N4 ~ R/ ^& c, o<?php
9 O% R. [' k/ m if ( have_posts() )8 R# b/ H8 t( [; T5 w: t$ M
the_post();
" y/ y/ S6 F* R6 y?>
; W g2 g' ]( h4 u7 b; T: r8 o( J$ F8 Q
<h1 class="page-title">) d9 H! p( p3 l9 p9 N
<?php if ( is_day() ) : ?>
3 k R, Z. [( [) {3 T) Z7 l <?php printf( __( 'Daily Archives: <span>%s</span>',
: l* \% S' B* T! S& f! u. p& U3 g3 `8 H }- ~3 b3 h3 X
1 j) J5 J4 i; ~- W6 y& l ]'Regal' ), get_the_date() ); ?>
, X3 D2 V2 y: G# F5 \<?php elseif ( is_month() ) : ?>, g! v3 @- o7 ^7 F) A3 _- t
<?php printf( __( 'Monthly Archives: <span>
0 m3 g# B2 \5 @% P/ A
/ H6 ~! A9 I1 K+ e' V( ~# q0 @
" `" f; |3 H6 Q: i%s</span>', 'Regal' ), get_the_date('F Y') ); ?>1 E+ n2 t- `" | F
<?php elseif ( is_year() ) : ?>. {, K. n Y3 E9 K% ~8 a
<?php printf( __( 'Yearly Archives: <span>%s</span>',
z( x3 \/ A- S5 ~$ w" P* M% e5 V' T* q# ~/ p3 M
9 U6 j; @3 D5 t+ v
'Regal' ), get_the_date('Y') ); ?>
9 S F' E# t- o2 u2 Z1 Q<?php else : ?>
1 w$ C' c- M7 u! g; W2 y <?php _e( 'Blog Archives', 'Regal' ); ?>0 Z& E Q9 F U& `* E! {
<?php endif; ?>
8 a$ N# u6 c/ F2 h5 F </h1>
+ c8 J6 e9 z2 B- Z* I# H7 d% `9 E
應該是把紅色字體部分代碼去掉就可以吧?試了一下還是不行
* M; s- h6 a- }% S( W4 [0 @1 ~+ T8 g* w6 E8 j/ b0 I$ D
+ g4 p2 w( g: Z' X4 p3 t# m& g
) Q' ?$ r. V* r, L
; j* I2 t6 z% S" a
|