如果不使用WordPress cms,可以从我的html页面注册吗

时间:2012-12-07 作者:Rama raju dantuluri

有什么方法可以注册吗wordpress 我的html页面中的站点。

所以注册的用户详细信息必须公平地添加到数据库表中。

我的意思是行动必须similarprocess how we generally signup to wordpress cms.

非常感谢。

1 个回复
SO网友:RRikesh

我不确定这是否是你想要的,但我从How to display Wordpress User Registration Form in front-end of the website?Quick Tip: Making a Fancy WordPress Register Form from Scratch from Tutplus:

<?php
//add this to use wordpress functions outside wordpress
define( \'WP_USE_THEMES\', false );        
require(\'wp-blog-header.php\');           
?>

<html>
  <head></head>
  <body>
    <div id="register-form">  
        <div class="title">  
            <h1>Register your Account</h1>  
            <span>Sign Up with us and Enjoy!</span>  
        </div>  
            <form action="<?php echo site_url(\'wp-login.php?action=register\', \'login_post\') ?>" method="post">  
            <input type="text" name="user_login" value="Username" id="user_login" class="input" />  
            <input type="text" name="user_email" value="E-Mail" id="user_email" class="input"  />  
                <?php do_action(\'register_form\'); ?>  
                <input type="submit" value="Register" id="register" />  
            </form>  
        </div>  
  </body>
</html>

结束

相关推荐

List latest posts in WP-Admin

我运行了一个多作者网站,并在wp admin中创建了一个插件,作者可以在其中相互连接和协作。为了增强它,我想显示一个最新帖子的列表,该列表应如下所示:如图所示,该列表应包含最新的10篇帖子,其中包含用户名、链接的帖子标题以及发布时间(发布时间或发布时间)。用于此的HTML应为:<table class=\"widefat\"> <thead><tr><th scope=\"col\">User</th>&