回答編集履歴
1
情報の追加。
test
CHANGED
@@ -7,3 +7,77 @@
|
|
7
7
|
$sql = "SELECT sum(volume) FROM mtraffics";
|
8
8
|
|
9
9
|
```
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
---
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
**追記:**
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
jQuery を2重で呼び出しても多分失敗するはず。また読み込みたいjsがどこに配置されているかはわかりませんが、フルパスで記述する必要があります。
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
```PHP
|
36
|
+
|
37
|
+
wp_enqueue_script( 'circliful', get_template_directory_uri().'/js/jquery.circliful.js', array( 'jquery' ), '20161226', true ); // 最後の「true 」は wp_footer 部分にスクリプトを読み込む指定
|
38
|
+
|
39
|
+
```
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
(以下参考)
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
【WordPress で jQuery を使う時の注意点 | EastCoder;】
|
48
|
+
|
49
|
+
[http://eastcoder.com/2014/07/using-jquery-with-wordpress/comment-page-1/](http://eastcoder.com/2014/07/using-jquery-with-wordpress/comment-page-1/)
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
【wordpressでjqueryを使う時の推奨方法まとめ】
|
54
|
+
|
55
|
+
[http://kiyotatsu.com/web44/](http://kiyotatsu.com/web44/)
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
【get_stylesheet_directory_uri:WordPress私的マニュアル】
|
60
|
+
|
61
|
+
[http://elearn.jp/wpman/function/get_stylesheet_directory_uri.html](http://elearn.jp/wpman/function/get_stylesheet_directory_uri.html)
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
【WordPress » Javascriptファイルをロードする | MORILOG】
|
66
|
+
|
67
|
+
[http://morilog.com/wordpress/js/wp_enqueue_script/](http://morilog.com/wordpress/js/wp_enqueue_script/)
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
【functions.phpでJSやCSSを一元管理する| WordPressテックラボ | [Smart]】
|
72
|
+
|
73
|
+
[http://rfs.jp/sb/wordpress/wp-lab/wp_enqueue_script.html](http://rfs.jp/sb/wordpress/wp-lab/wp_enqueue_script.html)
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|