这是我的搜索代码链接我的标签上的其他网站的搜索
<div id="search">
<form method="get" action="http://www.other-website.com/search">
<input type="hidden" name="f" value="">
<input type="text" placeholder="Temukan informasi, komunitas & produk yang kamu cari disini" accesskey="s" name="q">
<input type="submit" value="Search">
</form>
</div>
这是标记代码(仅显示文本“不链接”)
<?php
$posttags = get_the_tags();
if ($posttags) {
foreach($posttags as $tag) {
echo $tag->name . ' ';
}
}
?>
的代码可以很好的适用该网站,但我必须输入文字进行搜索。我只想把我的标签放在搜索文字上
所以我的问题是 如何让固定词(我的标签)自动放在搜索上或我必须放置标签码的地方,搜索结果是mytag链接在@ www.other-website.com/search因此用户不必输入?我想搜索其他网站上搜索我的标签
我不明白你在说什么。 – transilvlad