-
Tags
API Backup bbPress Beta BuddyPress Bugs Cat Chinese Cinema 4D Code Database Dog Domain Drupal Effects Egg Tarts Final Fushun Global Helix Server Invites K2 Lighting Linux Live Writer Mapping Maya Pjblog Plugins RC RealPlayer Sandbox Slug Tags Test Theme Translate Update vsftpd Web Wedding Windows WordPress MU WP Chinese Group WPCNGCategories
- Asides (86)
- Computer Graphics (10)
- Cooking (3)
- Gallery (10)
- Streaming Media (17)
- System (13)
- Talk (116)
- WordPress (71)
- Work (33)
-
Recent Comments
- jaycn on WordPress MU 2.9.2 简体中文语言包发布
- Dreamcolor on bbPress 后台字体美化
- WORDPRESS & BBPRESS 中文社区 on bbPress 后台字体美化
- Flint on BuddyPress 1.2 简体中文语言包发布
- Dreamcolor on BuddyPress 1.2 简体中文语言包发布
- Flint on BuddyPress 1.2 简体中文语言包发布
- Dreamcolor on BuddyPress 1.2 简体中文语言包发布
- Dreamcolor on BuddyPress 简体中文语言包
- bbPress 介绍,安装和中文包 | TechTrack on bbPress 后台美化插件测试中……
- 张君子Dean on BuddyPress 简体中文语言包
- LV on BuddyPress 1.2 简体中文语言包发布
- Flint on BuddyPress 1.2 简体中文语言包发布
- 〃凊慡橙芯 » 完善 WordPress 的 Gallery 页面 on 让您当前的主题支持 WordPress 2.5 的相册功能
- BuddyPress 1.2 简体中文语言包发布 | WordPress 中文团队 on BuddyPress 简体中文语言包
- Dreamcolor on WordPress MU 2.9.1 简体中文语言包发布
-
| | | |
Tag Archives: Logout
在主题中增加 WordPress MU 登录入口
当我们把一款 WordPress 的主题应用在 WordPress MU 上的时候。也许您想让用户可以直接在所使用的主题中直接可以注册或登录。而大部分 WordPress 主题并没有预留登录入口。那么,我们可以自行对主题文件进行更改。
编辑主题的“header.php”文件,并加入以下“登录/注销”的选项。
<a href="http://blogs.sitename.com/">blogs.sitename.com</a>
<?php wp_register(' ' , ' '); ?>
<?php wp_loginout(); ?>
以上代码,也可以加到主题其他的位置。例如,也可以加到“footer.php”文件中。让登录和注册的功能显示在页面的下方。
本文代码参考 WPMU 的 Codex 相关内容。

