回答編集履歴

4

デッドリンクの修正

2018/11/05 06:31

投稿

FKM
FKM

スコア3640

test CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- - [anspress の日本語化とか使い方を本気で書いてみる①](https://pro-- answer.com/adminblog/wordpress/anspress-1/])
5
+ - [anspress の日本語化とか使い方を本気で書いてみる①](https://pro-- answer.com/adminblog/wordpress/anspress-1/)
6
6
 
7
7
  - [EASY PIE CHARTの使い方](http://www.electric-fruits.com/creator-blog/easy-pie-chart201507/)
8
8
 
@@ -10,7 +10,9 @@
10
10
 
11
11
  ここで、以下のPHP関数オブジェクトを記述するだけで、回答率などの数値を得ることができるので、
12
12
 
13
+ `<?php echo ap_total_posts_count( 'question', false, $UID )->total; ?> //総数`
14
+
13
- `<?php echo ap_total_posts_count( 'answer', false )->total; ?>`
15
+ `<?php echo ap_total_posts_count( 'answer', false )->total; ?> //回答率`
14
16
 
15
17
 
16
18
 

3

数値を具体的に明示

2018/11/05 06:30

投稿

FKM
FKM

スコア3640

test CHANGED
@@ -8,13 +8,13 @@
8
8
 
9
9
 
10
10
 
11
- ここで、以下の出力を記述するだけで、回答率などを得ることができるので、
11
+ ここで、以下のPHP関数オブジェクトを記述するだけで、回答率などの数値を得ることができるので、
12
12
 
13
13
  `<?php echo ap_total_posts_count( 'answer', false )->total; ?>`
14
14
 
15
15
 
16
16
 
17
- これをeasyPieChartに代入するだけです。
17
+ これをeasyPieChartのpercentクラスの値に代入するだけです。もし、回答率が70%ならば、70という値が入るので、円グラフは70%を指すことになります。
18
18
 
19
19
  ```PHP
20
20
 

2

%制御

2018/11/05 06:21

投稿

FKM
FKM

スコア3640

test CHANGED
@@ -2,21 +2,15 @@
2
2
 
3
3
 
4
4
 
5
- - anspress の日本語化とか使い方を本気で書いてみる①
5
+ - [anspress の日本語化とか使い方を本気で書いてみる①](https://pro-- answer.com/adminblog/wordpress/anspress-1/])
6
6
 
7
- [https://pro-answer.com/adminblog/wordpress/anspress-1/]
8
-
9
-
10
-
11
- - EASY PIE CHARTの使い方
12
-
13
- [http://www.electric-fruits.com/creator-blog/easy-pie-chart201507/]
7
+ - [EASY PIE CHARTの使い方](http://www.electric-fruits.com/creator-blog/easy-pie-chart201507/)
14
8
 
15
9
 
16
10
 
17
11
  ここで、以下の出力を記述するだけで、回答率などを得ることができるので、
18
12
 
19
- <?php echo ap_total_posts_count( 'answer', false )->total; ?>
13
+ `<?php echo ap_total_posts_count( 'answer', false )->total; ?>`
20
14
 
21
15
 
22
16
 
@@ -24,7 +18,7 @@
24
18
 
25
19
  ```PHP
26
20
 
27
- <div class="chart" data-percent="90">
21
+ <div class="chart" data-percent="<?php echo ap_total_posts_count( 'answer', false )->total; ?>">
28
22
 
29
23
  <p class="percent"><?php echo ap_total_posts_count( 'answer', false )->total; ?></p>
30
24
 

1

リンク修正

2018/11/05 06:19

投稿

FKM
FKM

スコア3640

test CHANGED
@@ -6,9 +6,11 @@
6
6
 
7
7
  [https://pro-answer.com/adminblog/wordpress/anspress-1/]
8
8
 
9
+
10
+
9
11
  - EASY PIE CHARTの使い方
10
12
 
11
- http://www.electric-fruits.com/creator-blog/easy-pie-chart201507/
13
+ [http://www.electric-fruits.com/creator-blog/easy-pie-chart201507/]
12
14
 
13
15
 
14
16