質問編集履歴
1
追加質問
title
CHANGED
File without changes
|
body
CHANGED
@@ -47,4 +47,23 @@
|
|
47
47
|
|
48
48
|
<div id="search-result-count">該当件数:<?php echo $count->count; ?>件</div>
|
49
49
|
の($count)の部分が間違っているのでしょうか?
|
50
|
-
そのほかにも間違っているところがあればご教授いただければ幸いです。
|
50
|
+
そのほかにも間違っているところがあればご教授いただければ幸いです。
|
51
|
+
|
52
|
+
修正箇所(function.php)
|
53
|
+
```PHP
|
54
|
+
#変更前$tags = get_terms( array( 'taxonomy'=>'post_tag', 'get'=>'all' ) );
|
55
|
+
|
56
|
+
$args = array(
|
57
|
+
'get' => 'all',
|
58
|
+
'orderby' => 'count',
|
59
|
+
);
|
60
|
+
$terms = get_tags($args);
|
61
|
+
echo $terms;
|
62
|
+
```
|
63
|
+
修正箇所(searchform.php)
|
64
|
+
```php
|
65
|
+
#変更前 <div id="search-result-count">該当件数:<?php echo $count->count; ?>件</div>
|
66
|
+
|
67
|
+
<div id="search-result-count">該当件数:<span></span>件</div>
|
68
|
+
|
69
|
+
```
|