wordpress
u011206991
这个作者很懒,什么都没留下…
展开
-
wordpress 链接优化插件
pinyinSEO原创 2016-04-08 15:04:51 · 324 阅读 · 0 评论 -
add_theme_support
这个函数必须在主题的 functions.php 文件中去调用,如果想通过 hook 调用,则必须使用 after_setup_theme 这个 hook,因为 init hook 对于一些功能来说,已经太迟了。用法 add_theme_support($feature);?>参数$feature(string) (required) 要添加的主题功能的名称。目原创 2016-04-08 15:13:30 · 665 阅读 · 0 评论 -
wordpress bloginfo(’stylesheet_url’) – 调用 style.css 文件所在的路径
" type="text/css" media="screen" />转载 2016-04-08 15:49:51 · 2644 阅读 · 0 评论 -
register_nav_menus()注册一个菜单
register_nav_menus() 函数用来注册一个菜单,菜单指的是 WordPress 3.0+ 的菜单管理器,注册之后用户就可以在菜单管理器里拖动生成导航菜单了。用法1register_nav_menus($locations);参数$locations(数组)(必须)原创 2016-04-08 15:14:34 · 653 阅读 · 0 评论 -
wordpress get_stylesheet_directory_uri()返回样式目录
/images/favicon.ico" type="image/x-icon"> http://localhost/wordpress/wp-content/themes/shop1-->原创 2016-04-08 15:29:24 · 1772 阅读 · 0 评论 -
wp_head()函数
在wp-includes\general-template.phpfunction wp_head() { /** * Print scripts or data in the head tag on the front end. * * @since 1.5.0 */ do_action( 'wp_head' );}转载 2016-04-08 15:10:49 · 2957 阅读 · 0 评论 -
wordpress wp_get_theme()主题函数
获取当前主题名字:123echo wp_get_theme();?>获取其它主题名字:12345$my_theme= wp_get_theme('twentyten');if($my_theme->exists())echo$my_theme;?>获取当前原创 2016-04-08 15:35:47 · 660 阅读 · 0 评论 -
wordpress时间函数the_time的用法
wordpress时间函数the_time的用法 分享| 2015-03-26 14:02纬泊 | 浏览 93 次 PHPword软件应用$posttitle .= '' . the_time() ."" . "" . $title_content . '3 comments' . "" . ' ';这个输出的时候为什么时间字符串总是输出到这个标签的前面?下面是输出的ht原创 2016-04-08 15:53:11 · 566 阅读 · 0 评论 -
查询在表1中存在,在表2中不存在的记录,将其插入表2
$q="insert into wp_2_postmeta select * from wp_postmeta where not exists(select * from wp_2_postmeta where wp_postmeta.meta_id=wp_2_postmeta.meta_id )"; $r=$wpdb->get_results($q);原创 2016-04-14 17:31:39 · 640 阅读 · 0 评论 -
wordpress add_filter('show_admin_bar', '__return_false'); //删除最顶部的管理横条
add_filter('show_admin_bar', '__return_false'); //删除最顶部的管理横条原创 2016-04-08 15:12:04 · 962 阅读 · 0 评论