質問編集履歴

1

コード追記

2018/03/13 05:41

投稿

satoshickkk
satoshickkk

スコア53

test CHANGED
File without changes
test CHANGED
@@ -19,3 +19,105 @@
19
19
  このwp_list_comments('callback=gtcn_basic_callback')以外で番号が表示できる記述お分かりになられませんでしょうか?
20
20
 
21
21
  宜しくお願い致します。
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+ ###03月13日追記
30
+
31
+ ```css
32
+
33
+ body {
34
+
35
+ counter-reset: section; /* section のカウンタを 0 にセット */
36
+
37
+ }
38
+
39
+ h1:before {
40
+
41
+ counter-increment: section; /* section カウンタを増加 */
42
+
43
+ content: "Section " counter(section) ": "; /* カウンタを表示 */
44
+
45
+ }
46
+
47
+
48
+
49
+ ol {
50
+
51
+ counter-reset: section; /* 各 ol 要素に新しいインスタンスの section カウンタを生成 */
52
+
53
+ list-style-type: none;
54
+
55
+ }
56
+
57
+ li:before {
58
+
59
+ counter-increment: section; /* section カウンタのこのインスタンスのみ増加 */
60
+
61
+ content: counters(section, ".") " "; /* "." で区切られた section カウンタのインスタンスの値を付加 */
62
+
63
+ }
64
+
65
+ ```
66
+
67
+
68
+
69
+
70
+
71
+ ```php
72
+
73
+ function mytheme_comment($comment, $args, $depth) {
74
+
75
+ $GLOBALS['comment'] = $comment; ?>
76
+
77
+ <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
78
+
79
+ <div id="comment-<?php comment_ID(); ?>">
80
+
81
+
82
+
83
+ <div class="comment-listCon">
84
+
85
+ <div class="comment-info">
86
+
87
+
88
+
89
+ <?php printf(__('<cite class="fn comment-author">%s<span class="admin"></span></a></cite> '), get_comment_author_link()) ?>
90
+
91
+ <?php printf(__('%1$s at %2$s'), get_comment_date('Y/m/d(D)'), get_comment_time('H:i')) ?>
92
+
93
+ <?php edit_comment_link(__('Edit'),' ','') ?>
94
+
95
+ </div>
96
+
97
+ <?php if ($comment->comment_approved == '0') : ?>
98
+
99
+ <em><?php _e('Your comment is awaiting moderation.') ?></em>
100
+
101
+ <?php endif; ?>
102
+
103
+ <div class="come_te">
104
+
105
+ <?php comment_text() ?>
106
+
107
+ </div>
108
+
109
+ <div class="reply">
110
+
111
+ <?php comment_reply_link( array_merge( $args, array( 'add_below' => $add_below, 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
112
+
113
+ </div>
114
+
115
+ </div>
116
+
117
+ </div>
118
+
119
+ <?php
120
+
121
+ }
122
+
123
+ ```