-
-
-
标签
API Backup bbPress Beta BuddyPress Bugs Cat Chinese Code Database Domain Drupal Effects Final Function Fushun Global Helix Server Language Linux Live Writer Mapping Multisite MySQL Network Pjblog Plugins RC RealPlayer Sandbox Slug Style Tags Test Theme Translate Update Upgrade vsftpd Web Wedding Windows WordPress MU WP Chinese Group WPCNG分类
- Asides (96)
- Computer Graphics (10)
- Cooking (3)
- Gallery (10)
- Streaming Media (17)
- System (13)
- Talk (118)
- WordPress (86)
- Work (33)
最新评论
-
| | | |
按标签归档:Register
在主题中增加 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 相关内容。



