回答編集履歴
1
追記
test
CHANGED
@@ -17,3 +17,31 @@
|
|
17
17
|
add_filter( 'gettext', 'remove_category' );
|
18
18
|
|
19
19
|
```
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
**追記**
|
24
|
+
|
25
|
+
そんなとこに影響が及ぶのですね…
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
では別解で。
|
30
|
+
|
31
|
+
```
|
32
|
+
|
33
|
+
function remove_category_title( $title ) {
|
34
|
+
|
35
|
+
if ( is_category() ) {
|
36
|
+
|
37
|
+
$title = single_cat_title( '', false );
|
38
|
+
|
39
|
+
}
|
40
|
+
|
41
|
+
return $title;
|
42
|
+
|
43
|
+
}
|
44
|
+
|
45
|
+
add_filter( 'get_the_archive_title', 'remove_category_title' );
|
46
|
+
|
47
|
+
```
|