<?php
/*
google seach
*/
?>
<?php get_header(); ?>
<p>
<p>   Google自定义搜寻代码   var match = location.search.match(/s=([^&]*)(&|$)/);//正则传参
if(match && match[1]){
var search = decodeURIComponent(match[1]);
customSearchControl.execute(search);
}
});
</script>
<link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" />
</p>
</p>
<?php get_footer(); ?>
以上就是安达网络工作室关于《WordPress添加并整合Google自定义搜索实现步骤及代码》的一些看法。更多内容请查看本栏目更多内容!
前言 最近在应用WordPress的时分遇到了一些谬误提醒,置信大家在应用wordpress建设网站的时分,都会遇到一些...
flush_rewrite_rules() 函数用来删除而后依据现有的条件重写伪动态规定,也就是刷新一次伪动态规定了。 先来...
post_class() post_class 是 WordPress 内置的一个用于显示文章 class 称号的函数,该函数通常会为每一篇文...
很长工夫没有动过wordpress里的规划了,进过许久策动,明天决议扭转一下规划了。然而郁闷的事件随之而来,当...
本文实例讲述了WordPress分类与标签等存档页完成置顶的办法。分享给大家供大家参考。详细剖析如下: 在word...
query posts是一个十分好用的调用文章函数,能够做到同页面内显示多种特定范畴的文章,例如能够调用某分类、...