回答編集履歴
1
コードを追記
test
CHANGED
@@ -7,3 +7,21 @@
|
|
7
7
|
<a href="https://twitter.com/hashtag/<?php echo $keyword; ?>?src=hash">#地震に関するツイート</a>
|
8
8
|
|
9
9
|
```
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
--
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
**追記**
|
18
|
+
|
19
|
+
```PHP
|
20
|
+
|
21
|
+
<?php $keyword = urlencode('地震'); ?>
|
22
|
+
|
23
|
+
<a class="twitter-timeline" href="https://twitter.com/search?q=<?php echo $keyword; ?>" data-widget-id="863354650778492928">#地震に関するツイート</a>
|
24
|
+
|
25
|
+
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
|
26
|
+
|
27
|
+
```
|