質問編集履歴

8

現在のソースコードを記載しました。

2016/11/06 09:11

投稿

t-maekawa
t-maekawa

スコア44

test CHANGED
@@ -1 +1 @@
1
- 「最下層のカテゴリジ」という記述方法知りたいです。
1
+ カテゴリがない場合に該当カテゴリに属するカスタムタクソノミリスト表示したいです。
test CHANGED
@@ -83,3 +83,75 @@
83
83
  ?>
84
84
 
85
85
  ```
86
+
87
+
88
+
89
+ 現在のソース
90
+
91
+ ```ここに言語を入力
92
+
93
+ <!親カテゴリに子カテゴリ一覧表示コード-->
94
+
95
+ <?php
96
+
97
+ //現在のカテゴリが子カテゴリを持つかどうか判定する
98
+
99
+ $children = get_category_children($cat);
100
+
101
+
102
+
103
+ //子カテゴリを持つなら、子孫カテゴリのリンクリストを表示
104
+
105
+ if ($children) : ?>
106
+
107
+ <ul>
108
+
109
+ <?php wp_list_categories('title_li=&child_of='.$cat); ?>
110
+
111
+ </ul>
112
+
113
+ <?php
114
+
115
+ //子カテゴリを持たないなら、タイトルリンクを表示
116
+
117
+ else: ?>
118
+
119
+ <ul>
120
+
121
+ <li><?php
122
+
123
+ echo get_the_term_list($post->ID ,'shop_genre', '<dd>', '</dd><dd>', '</dd>');
124
+
125
+ ?></li>
126
+
127
+
128
+
129
+
130
+
131
+ </ul>
132
+
133
+ <?php endif; ?>
134
+
135
+ <!親カテゴリに子カテゴリ一覧表示コード
136
+
137
+ ここまで-->
138
+
139
+ ```
140
+
141
+
142
+
143
+ 皆様のご協力でなんとかここまでこれましたが、
144
+
145
+ カスタムタクソノミーのリンクをクリックしましたら、確かに表示されているカテゴリーは属しているのですが、すべてのカテゴリが属する可能性のあるリンクでした。
146
+
147
+ 例)
148
+
149
+ 福岡市中央区→ショッピング→全国ショッピングのカスタムタクソノミーに属する店舗一覧
150
+
151
+
152
+
153
+ これを、最初に選択クリックした市区町村×「カスタムタクソノミー」のリスト(福岡市中央区のみのショッピング)で
154
+
155
+ 作成、表示は可能なのでしょうか?
156
+
157
+ どうかよろしくお願いいたします。

7

現在の記述分を表記しまいた。

2016/11/06 09:11

投稿

t-maekawa
t-maekawa

スコア44

test CHANGED
File without changes
test CHANGED
@@ -35,3 +35,51 @@
35
35
  <?php endif; ?>
36
36
 
37
37
  ```
38
+
39
+
40
+
41
+ 現在記述文
42
+
43
+ ```ここに言語を入力
44
+
45
+ <?php
46
+
47
+ $categories = get_categories(array('parent' => get_query_var('cat')));//子カテゴリーの情報を取得
48
+
49
+ if ($categories)//もし子カテゴリーがあったら
50
+
51
+ {
52
+
53
+ ?><p class="cat_setsumei">詳しいカテゴリを選んでください。</p>
54
+
55
+ <ul>
56
+
57
+ <?php foreach ($categories as $category)
58
+
59
+ {
60
+
61
+ ?>
62
+
63
+ <li class="cat_list" style="margin-left:15px;font-size:15px;"><a href="<?php echo get_category_link($category->cat_ID); ?>"><?php echo $category->cat_name ?></a></li>
64
+
65
+ <?php
66
+
67
+ }
68
+
69
+ ?>
70
+
71
+ </ul>
72
+
73
+ <?php
74
+
75
+ }
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+ ?>
84
+
85
+ ```

6

再度タイトル変更しました。

2016/11/06 07:53

投稿

t-maekawa
t-maekawa

スコア44

test CHANGED
@@ -1 +1 @@
1
- 最下層のカテゴリページという記述方法を知りたいです。
1
+ 最下層のカテゴリページという記述方法を知りたいです。
test CHANGED
File without changes

5

タイトル変更しました。

2016/11/06 02:55

投稿

t-maekawa
t-maekawa

スコア44

test CHANGED
@@ -1 +1 @@
1
- 最下層のカテゴリページを表示してる時に重複登録している他のカテゴリリスト表示したい。
1
+ 最下層のカテゴリページをう記述方法知りたいです
test CHANGED
File without changes

4

質問文をシンプルに問題を小分けにして書き直しました。

2016/11/06 02:54

投稿

t-maekawa
t-maekawa

スコア44

test CHANGED
File without changes
test CHANGED
@@ -1,439 +1,37 @@
1
- お世話なり
1
+ 前述の質問をシンプルしてひとつひとつ解決するようにしした
2
2
 
3
- 現在作成中サイトてご質問させていただきま
3
+ 条件分岐入力る条件で
4
4
 
5
+ 「現在ページが最下層のカテゴリーページの場合」
6
+
7
+ というのはどのように記述すればいいのでしょうか?
8
+
9
+ 下記の
10
+
11
+ archive()
12
+
5
- カテゴリーが都道府県、そ子カテゴリーとして市区町村(~市、~郡~町)作成
13
+ ()の中記述すればいいのだろう考えてはいますが、いろいろ検索して
14
+
15
+ 適切な記述方法がみつかりません。
6
16
 
7
17
 
8
18
 
9
- ジャンルと
19
+ ご存知の方いらっゃいましたら
10
20
 
11
- カスタムタクソノミーで店舗ジャンルを作成して、その中に
12
-
13
- ショッピング
14
-
15
- ・インテリア
16
-
17
- ・ファッション洋服等
18
-
19
- 飲食店
20
-
21
- ・和食
22
-
23
- ・中華
24
-
25
- ・イタリアン
26
-
27
- う感じで作成ております。
21
+ よろしくお願いたします。
28
-
29
-
30
-
31
- 都道府県をクリックした後に市区町村がでるようには、検索して
32
22
 
33
23
 
34
24
 
35
25
  ```ここに言語を入力
36
26
 
37
- <?php
27
+ <?php if ( is_archive() ) : ?>
38
28
 
39
- $categories = get_categories(array('parent' => get_query_var('cat')));//子テゴリーの情報取得
29
+ ここにアーイブペジで表示させたいものを色々と書く
40
30
 
41
- if ($categories)//もし子カテゴリーがあったら
31
+ <?php else: ?>
42
32
 
43
- {
33
+ ここにそれ以外のページの場合の文章を書く(何も表示させない場合は何も書かなくていいよ)
44
34
 
45
- ?><p class="cat_setsumei">詳しいカテゴリを選んでください。</p>
46
-
47
- <ul>
48
-
49
- <?php foreach ($categories as $category)
50
-
51
- {
52
-
53
- ?>
54
-
55
- <li class="cat_list" style="margin-left:15px;font-size:15px;"><a href="<?php echo get_category_link($category->cat_ID); ?>"><?php echo $category->cat_name ?></a></li>
56
-
57
- <?php
58
-
59
- }
60
-
61
- ?>
62
-
63
- </ul>
35
+ <?php endif; ?>
64
-
65
- <?php
66
-
67
- }
68
-
69
- ?>
70
-
71
-
72
36
 
73
37
  ```
74
-
75
- を記載しましたらうまく表示できました。
76
-
77
- 後は市区町村をクリックしたらジャンルリスト(カテゴリー)のリスト表示をしたいのです。
78
-
79
- 現在は登録している店舗(テスト作成)の一覧がジャンル関係なく並んでいます。
80
-
81
-
82
-
83
- 順番としては
84
-
85
- 都道府県
86
-
87
- →市区町村
88
-
89
- →大ジャンル
90
-
91
- →小ジャンル
92
-
93
- とクリックして最終的には、例えば
94
-
95
-
96
-
97
- 「東京都」の「港区」の「ショッピング」の「雑貨」の一覧ページが表示されるようにしたいです。
98
-
99
-
100
-
101
- 現在
102
-
103
- [http://fukudon.com/multi-taxonomy/](http://fukudon.com/multi-taxonomy/)
104
-
105
- を参考に
106
-
107
-
108
-
109
- カテゴリーページは(インテリア・家具はinterior_furniture-shoppingで作成)
110
-
111
- [http://waribikiken-saikou.com/category/hokkaido/mikasashi/?shop_genre=%22interior_furniture-shopping%22](http://waribikiken-saikou.com/category/hokkaido/mikasashi/?shop_genre=%22interior_furniture-shopping%22)
112
-
113
-
114
-
115
- となっています。(アドレス入力で表示確認済。作成というかサイトをまねてアドレス記入したら表示されました。)
116
-
117
- この状態ではインテリア・家具の一覧表示のみですので
118
-
119
- そのサイトによるとパラメータ?がshop_genreとなっているので
120
-
121
-
122
-
123
- ```ここに言語を入力
124
-
125
- <?php
126
-
127
- ////URLのパラメーター「?genre=」の値をGETして変数へ格納。
128
-
129
- $shop_genre_name = $_GET['shop_genre'];
130
-
131
- //現在のカテゴリーIDを取得して、変数へ格納。
132
-
133
- $area = get_query_var( 'cat' );
134
-
135
- //query_posts用の配列を作成
136
-
137
- $list = array(
138
-
139
- 'post_type' => array('post'),
140
-
141
- 'showposts' => 5,
142
-
143
- 'cat' => $area,
144
-
145
- 'shop_genre'=> $shop_genre_name,
146
-
147
- );
148
-
149
- ?>
150
-
151
- ```
152
-
153
-
154
-
155
- と、表示しても何も表示されません。
156
-
157
-
158
-
159
- その後に
160
-
161
- ```ここに言語を入力
162
-
163
- <?php query_posts($list); ?>
164
-
165
- <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
166
-
167
- ```
168
-
169
-
170
-
171
- と記述しましたらエラーとなります。
172
-
173
-
174
-
175
- ```ここに言語を入力
176
-
177
- Failed to load resource: the server responded with a status of 500 (Internal Server Error)
178
-
179
-
180
-
181
- ```
182
-
183
-
184
-
185
- 勉強不足で申し訳ありませんが
186
-
187
- よろしくお願いいたします。
188
-
189
-
190
-
191
- 現在arcive.phpは以下の通りとなります。
192
-
193
-
194
-
195
- ```ここに言語を入力
196
-
197
- <?php get_header(); $options = get_desing_plus_option(); ?>
198
-
199
-
200
-
201
- <div id="main_col">
202
-
203
- <?php if ( have_posts() ) : ?>
204
-
205
- <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
206
-
207
- <?php if (is_category()) { ?>
208
-
209
- <h2 class="headline1"><?php printf(__('Archive for the &#8216; %s &#8217; Category', 'tcd-w'), single_cat_title('', false)); ?></h2>
210
-
211
- <?php } elseif( is_tag() ) { ?>
212
-
213
- <h2 class="headline1"><?php printf(__('Posts Tagged &#8216; %s &#8217;', 'tcd-w'), single_tag_title('', false) ); ?></h2>
214
-
215
- <?php } elseif (is_day()) { ?>
216
-
217
- <h2 class="headline1"><?php printf(__('Archive for &#8216; %s &#8217;', 'tcd-w'), get_the_time(__('F jS, Y', 'tcd-w'))); ?></h2>
218
-
219
-
220
-
221
- <?php } elseif (is_month()) { ?>
222
-
223
- <h2 class="headline1"><?php printf(__('Archive for &#8216; %s &#8217;', 'tcd-w'), get_the_time(__('F, Y', 'tcd-w'))); ?></h2>
224
-
225
-
226
-
227
- <?php } elseif (is_year()) { ?>
228
-
229
- <h2 class="headline1"><?php printf(__('Archive for &#8216; %s &#8217;', 'tcd-w'), get_the_time(__('Y', 'tcd-w'))); ?></h2>
230
-
231
-
232
-
233
- <?php } elseif (is_author()) { ?>
234
-
235
- <?php global $wp_query; $curauth = $wp_query->get_queried_object(); //get the author info ?>
236
-
237
- <h2 class="headline1"><?php printf(__('Archive for the &#8216; %s &#8217;', 'tcd-w'), $curauth->display_name ); ?></h2>
238
-
239
-
240
-
241
- <?php } else { ?>
242
-
243
- <h2 class="headline1"><?php _e('Blog Archives', 'tcd-w'); ?></h2>
244
-
245
- <?php }; ?>
246
-
247
- <ul id="post_list" class="clearfix">
248
-
249
-
250
-
251
- <!親カテゴリに子カテゴリ一覧表示コード-->
252
-
253
- <?php
254
-
255
- $categories = get_categories(array('parent' => get_query_var('cat')));//子カテゴリーの情報を取得
256
-
257
- if ($categories)//もし子カテゴリーがあったら
258
-
259
- {
260
-
261
- ?><p class="cat_setsumei">詳しいカテゴリを選んでください。</p>
262
-
263
- <ul>
264
-
265
- <?php foreach ($categories as $category)
266
-
267
- {
268
-
269
- ?>
270
-
271
- <li class="cat_list" style="margin-left:15px;font-size:15px;"><a href="<?php echo get_category_link($category->cat_ID); ?>"><?php echo $category->cat_name ?></a></li>
272
-
273
- <?php
274
-
275
- }
276
-
277
- ?>
278
-
279
- </ul>
280
-
281
- <?php
282
-
283
- }
284
-
285
- ?>
286
-
287
-
288
-
289
-
290
-
291
- <!親カテゴリに子カテゴリ一覧表示コード
292
-
293
- ここまで-->
294
-
295
-
296
-
297
-
298
-
299
-
300
-
301
- <!都道府県にジャンル一覧表示-->
302
-
303
-
304
-
305
-
306
-
307
-
308
-
309
-
310
-
311
- <?php
312
-
313
- ////URLのパラメーター「?genre=」の値をGETして変数へ格納。
314
-
315
- $shop_genre_name = $_GET['shop_genre'];
316
-
317
- //現在のカテゴリーIDを取得して、変数へ格納。
318
-
319
- $area = get_query_var( 'cat' );
320
-
321
- //query_posts用の配列を作成
322
-
323
- $list = array(
324
-
325
- 'post_type' => array('post'),
326
-
327
- 'showposts' => 5,
328
-
329
- 'cat' => $area,
330
-
331
- 'shop_genre'=> $shop_genre_name,
332
-
333
- );
334
-
335
- ?>
336
-
337
-
338
-
339
- <!ループ?-->
340
-
341
- <?php query_posts($list); ?>
342
-
343
- <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
344
-
345
- <!ループ?-->
346
-
347
-
348
-
349
-
350
-
351
- <!都道府県にジャンル一覧表示
352
-
353
- ここまで-->
354
-
355
-
356
-
357
- <?php while ( have_posts() ) : the_post(); ?>
358
-
359
- <li class="clearfix">
360
-
361
- <div class="image_area">
362
-
363
- <a class="image" href="<?php the_permalink() ?>"><?php if ( has_post_thumbnail()) { echo the_post_thumbnail('mid_size'); } else { echo '<img src="'; bloginfo('template_url'); echo '/img/common/no_image2.jpg" alt="" title="" />'; }; ?></a>
364
-
365
- </div>
366
-
367
- <div class="info">
368
-
369
- <?php if ($options['show_date'] or $options['show_category'] or $options['show_tag'] or $options['show_comment']) { ?>
370
-
371
- <ul class="meta clearfix">
372
-
373
- <?php if ($options['show_date']) : ?><li class="date"><?php the_time('Y-n-j'); ?></li><?php endif; ?>
374
-
375
- <?php if ($options['show_category']) : ?><li class="post_category"><?php the_category(', '); ?></li><?php endif; ?>
376
-
377
- <?php if ($options['show_tag']): ?><?php the_tags('<li class="post_tag">',', ','</li>'); ?><?php endif; ?>
378
-
379
- <?php if ($options['show_comment']) : ?><li class="post_comment"><?php comments_popup_link(__('Write comment', 'tcd-w'), __('1 comment', 'tcd-w'), __('% comments', 'tcd-w')); ?></li><?php endif; ?>
380
-
381
- </ul>
382
-
383
- <?php }; ?>
384
-
385
- <h4 class="title"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h4>
386
-
387
- <div class="excerpt"><?php if (has_excerpt()) { the_excerpt(); } else { new_excerpt(110);}; ?></div>
388
-
389
- <a class="link" href="<?php the_permalink() ?>"><?php _e("Read more","tcd-w"); ?></a>
390
-
391
- <?php if($options['show_bookmark']) { include('bookmark.php'); };?>
392
-
393
- </div>
394
-
395
- </li><!-- END .post_list -->
396
-
397
- <?php endwhile; else: ?>
398
-
399
- <p class="no_post"><?php _e("There is no registered post.","tcd-w"); ?></p>
400
-
401
- <?php endif; ?>
402
-
403
- </ul>
404
-
405
-
406
-
407
- <?php include('navigation.php'); ?>
408
-
409
-
410
-
411
- </div><!-- END #main_col -->
412
-
413
-
414
-
415
- <?php include('sidebar.php'); ?>
416
-
417
-
418
-
419
- <?php get_footer(); ?>
420
-
421
- ```
422
-
423
-
424
-
425
- 現在は
426
-
427
- ```ここに言語を入力
428
-
429
- <?php query_posts($list); ?>
430
-
431
- <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
432
-
433
- ```
434
-
435
-
436
-
437
- を削除してアップしております。
438
-
439
- エラー画面はなくなりましたが、リストは表示されません。

3

リンク追加しました。

2016/11/06 02:46

投稿

t-maekawa
t-maekawa

スコア44

test CHANGED
File without changes
test CHANGED
@@ -100,7 +100,7 @@
100
100
 
101
101
  現在
102
102
 
103
- http://fukudon.com/multi-taxonomy/
103
+ [http://fukudon.com/multi-taxonomy/](http://fukudon.com/multi-taxonomy/)
104
104
 
105
105
  を参考に
106
106
 
@@ -108,7 +108,7 @@
108
108
 
109
109
  カテゴリーページは(インテリア・家具はinterior_furniture-shoppingで作成)
110
110
 
111
- http://waribikiken-saikou.com/category/hokkaido/mikasashi/?shop_genre=%22interior_furniture-shopping%22
111
+ [http://waribikiken-saikou.com/category/hokkaido/mikasashi/?shop_genre=%22interior_furniture-shopping%22](http://waribikiken-saikou.com/category/hokkaido/mikasashi/?shop_genre=%22interior_furniture-shopping%22)
112
112
 
113
113
 
114
114
 

2

削除部分

2016/11/02 22:13

投稿

t-maekawa
t-maekawa

スコア44

test CHANGED
File without changes
test CHANGED
@@ -419,3 +419,21 @@
419
419
  <?php get_footer(); ?>
420
420
 
421
421
  ```
422
+
423
+
424
+
425
+ 現在は
426
+
427
+ ```ここに言語を入力
428
+
429
+ <?php query_posts($list); ?>
430
+
431
+ <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
432
+
433
+ ```
434
+
435
+
436
+
437
+ を削除してアップしております。
438
+
439
+ エラー画面はなくなりましたが、リストは表示されません。

1

arcive\.php記載しました。

2016/10/27 03:57

投稿

t-maekawa
t-maekawa

スコア44

test CHANGED
File without changes
test CHANGED
@@ -185,3 +185,237 @@
185
185
  勉強不足で申し訳ありませんが
186
186
 
187
187
  よろしくお願いいたします。
188
+
189
+
190
+
191
+ 現在arcive.phpは以下の通りとなります。
192
+
193
+
194
+
195
+ ```ここに言語を入力
196
+
197
+ <?php get_header(); $options = get_desing_plus_option(); ?>
198
+
199
+
200
+
201
+ <div id="main_col">
202
+
203
+ <?php if ( have_posts() ) : ?>
204
+
205
+ <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
206
+
207
+ <?php if (is_category()) { ?>
208
+
209
+ <h2 class="headline1"><?php printf(__('Archive for the &#8216; %s &#8217; Category', 'tcd-w'), single_cat_title('', false)); ?></h2>
210
+
211
+ <?php } elseif( is_tag() ) { ?>
212
+
213
+ <h2 class="headline1"><?php printf(__('Posts Tagged &#8216; %s &#8217;', 'tcd-w'), single_tag_title('', false) ); ?></h2>
214
+
215
+ <?php } elseif (is_day()) { ?>
216
+
217
+ <h2 class="headline1"><?php printf(__('Archive for &#8216; %s &#8217;', 'tcd-w'), get_the_time(__('F jS, Y', 'tcd-w'))); ?></h2>
218
+
219
+
220
+
221
+ <?php } elseif (is_month()) { ?>
222
+
223
+ <h2 class="headline1"><?php printf(__('Archive for &#8216; %s &#8217;', 'tcd-w'), get_the_time(__('F, Y', 'tcd-w'))); ?></h2>
224
+
225
+
226
+
227
+ <?php } elseif (is_year()) { ?>
228
+
229
+ <h2 class="headline1"><?php printf(__('Archive for &#8216; %s &#8217;', 'tcd-w'), get_the_time(__('Y', 'tcd-w'))); ?></h2>
230
+
231
+
232
+
233
+ <?php } elseif (is_author()) { ?>
234
+
235
+ <?php global $wp_query; $curauth = $wp_query->get_queried_object(); //get the author info ?>
236
+
237
+ <h2 class="headline1"><?php printf(__('Archive for the &#8216; %s &#8217;', 'tcd-w'), $curauth->display_name ); ?></h2>
238
+
239
+
240
+
241
+ <?php } else { ?>
242
+
243
+ <h2 class="headline1"><?php _e('Blog Archives', 'tcd-w'); ?></h2>
244
+
245
+ <?php }; ?>
246
+
247
+ <ul id="post_list" class="clearfix">
248
+
249
+
250
+
251
+ <!親カテゴリに子カテゴリ一覧表示コード-->
252
+
253
+ <?php
254
+
255
+ $categories = get_categories(array('parent' => get_query_var('cat')));//子カテゴリーの情報を取得
256
+
257
+ if ($categories)//もし子カテゴリーがあったら
258
+
259
+ {
260
+
261
+ ?><p class="cat_setsumei">詳しいカテゴリを選んでください。</p>
262
+
263
+ <ul>
264
+
265
+ <?php foreach ($categories as $category)
266
+
267
+ {
268
+
269
+ ?>
270
+
271
+ <li class="cat_list" style="margin-left:15px;font-size:15px;"><a href="<?php echo get_category_link($category->cat_ID); ?>"><?php echo $category->cat_name ?></a></li>
272
+
273
+ <?php
274
+
275
+ }
276
+
277
+ ?>
278
+
279
+ </ul>
280
+
281
+ <?php
282
+
283
+ }
284
+
285
+ ?>
286
+
287
+
288
+
289
+
290
+
291
+ <!親カテゴリに子カテゴリ一覧表示コード
292
+
293
+ ここまで-->
294
+
295
+
296
+
297
+
298
+
299
+
300
+
301
+ <!都道府県にジャンル一覧表示-->
302
+
303
+
304
+
305
+
306
+
307
+
308
+
309
+
310
+
311
+ <?php
312
+
313
+ ////URLのパラメーター「?genre=」の値をGETして変数へ格納。
314
+
315
+ $shop_genre_name = $_GET['shop_genre'];
316
+
317
+ //現在のカテゴリーIDを取得して、変数へ格納。
318
+
319
+ $area = get_query_var( 'cat' );
320
+
321
+ //query_posts用の配列を作成
322
+
323
+ $list = array(
324
+
325
+ 'post_type' => array('post'),
326
+
327
+ 'showposts' => 5,
328
+
329
+ 'cat' => $area,
330
+
331
+ 'shop_genre'=> $shop_genre_name,
332
+
333
+ );
334
+
335
+ ?>
336
+
337
+
338
+
339
+ <!ループ?-->
340
+
341
+ <?php query_posts($list); ?>
342
+
343
+ <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
344
+
345
+ <!ループ?-->
346
+
347
+
348
+
349
+
350
+
351
+ <!都道府県にジャンル一覧表示
352
+
353
+ ここまで-->
354
+
355
+
356
+
357
+ <?php while ( have_posts() ) : the_post(); ?>
358
+
359
+ <li class="clearfix">
360
+
361
+ <div class="image_area">
362
+
363
+ <a class="image" href="<?php the_permalink() ?>"><?php if ( has_post_thumbnail()) { echo the_post_thumbnail('mid_size'); } else { echo '<img src="'; bloginfo('template_url'); echo '/img/common/no_image2.jpg" alt="" title="" />'; }; ?></a>
364
+
365
+ </div>
366
+
367
+ <div class="info">
368
+
369
+ <?php if ($options['show_date'] or $options['show_category'] or $options['show_tag'] or $options['show_comment']) { ?>
370
+
371
+ <ul class="meta clearfix">
372
+
373
+ <?php if ($options['show_date']) : ?><li class="date"><?php the_time('Y-n-j'); ?></li><?php endif; ?>
374
+
375
+ <?php if ($options['show_category']) : ?><li class="post_category"><?php the_category(', '); ?></li><?php endif; ?>
376
+
377
+ <?php if ($options['show_tag']): ?><?php the_tags('<li class="post_tag">',', ','</li>'); ?><?php endif; ?>
378
+
379
+ <?php if ($options['show_comment']) : ?><li class="post_comment"><?php comments_popup_link(__('Write comment', 'tcd-w'), __('1 comment', 'tcd-w'), __('% comments', 'tcd-w')); ?></li><?php endif; ?>
380
+
381
+ </ul>
382
+
383
+ <?php }; ?>
384
+
385
+ <h4 class="title"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h4>
386
+
387
+ <div class="excerpt"><?php if (has_excerpt()) { the_excerpt(); } else { new_excerpt(110);}; ?></div>
388
+
389
+ <a class="link" href="<?php the_permalink() ?>"><?php _e("Read more","tcd-w"); ?></a>
390
+
391
+ <?php if($options['show_bookmark']) { include('bookmark.php'); };?>
392
+
393
+ </div>
394
+
395
+ </li><!-- END .post_list -->
396
+
397
+ <?php endwhile; else: ?>
398
+
399
+ <p class="no_post"><?php _e("There is no registered post.","tcd-w"); ?></p>
400
+
401
+ <?php endif; ?>
402
+
403
+ </ul>
404
+
405
+
406
+
407
+ <?php include('navigation.php'); ?>
408
+
409
+
410
+
411
+ </div><!-- END #main_col -->
412
+
413
+
414
+
415
+ <?php include('sidebar.php'); ?>
416
+
417
+
418
+
419
+ <?php get_footer(); ?>
420
+
421
+ ```