Forums

Using WordPress users in main site (1 post)

  1. cdnchris
    Member
    Posted 2 years ago #

    I'm actually hoping someone might just point me to an article or possible control. I've tried searching various search engines and all I can find are articles on how to customize templates for login pages, which is not what I want at the moment.

    I'm currently working on a site that will contain WordPress in a sub folder. The rest of the site is a simple data driven PHP site that will feature various articles that registered users can then comment on. So people don't have to have two accounts (one for the WordPress blog and another for the rest of the site) I'm using the WordPress user table as the basis and then I built a sorta wrapper around it to work with the rest of the site.

    That aspect of it works fine and "WordPress users" can post comments on the non-WordPress portions of the site. My issue is I want to create a panel that will appear on other pages of the non-WordPress portion of the site that users can use to quickly login without having to go to the WordPress login screen. I don't want to rewrite a login function but would just like to use WordPresses built in functionality for logging in users, getting the session/cookie/whatever, etc. so I don't miss something and then I'm sure the user can move between the two portions of the site without issue. I've been looking through the code and playing around with it and I'm obviously not finding what I need.

    I'm sure I'm not the first to need to do this and I'm hoping someone more knowledgable in WordPress (I'm fairly new to it) may be able to direct me to an article or example that's related to what I need. Any help would be most appreciated!

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags