Skip to main content

Integration method - Connected WP/XF users

This will link a forum user to a WordPress user, allowing users to log in to WordPress and post comments to the forum.

Configuring

There are two options available for how to connect WordPress and XenForo accounts together, with the “Connected User Method” setting. The “Oauth / XenForo connected account” option requires Article and Forum Connect Plus.

  • If you use the “Login Credentials” option, a login form will appear in the comments section to authenticate with a XenForo user and link it to the WordPress user. No additional configuration is required for this opinion.
  • If you use the “Oauth / XenForo connected account” option, you will need to set up an OAuth client in WordPress.
  1. First, install the free WP Oauth plugin
  2. Go to OAuth Server in the sidebar > Settings, enable the “Enable OAuth Server” option, and save
  3. Go to OAuth Server > Clients > Add New Client
  4. Enter a name
  5. For the Redirect URI setting, enter your XenForo forum URL followed by “/connected_account.php”. For example, if your forum URL was www.domain.com, enter www.domain.com/connected_account.php, or if your forum URL was www.domain.com/forums, enter www.domain.com/forums/connected_account.php
  6. Save the form
  7. You will now see a Client ID and Client Secret
  8. In the XenForo ACP, go to Setup > Connected Accounts > WordPress, and enter the Client ID and Client Secret into these fields
  9. You will now have a new option under the Connected Accounts section in XenForo, allowing users to connect their WordPress accounts

If you are using Article and Forum Connect Plus, you will be able to select the “Use native WordPress comments” option, to pull comments natively from WordPress. For this to work, you will also need to enable the setting in XenForo to create WordPress comments from forum posts, which can be found at Setup > Options > WordPress Forum Connect.

Creating an API key

In the XenForo ACP, go to Setup > API Keys > Add API key. Enter a title, select “Super user key” as the type, and select the following scopes: auth, node:read, thread:read, thread:write. Make sure the API key is set to active, and then save.

Go back to Settings > Article and Forum Connect: XenForo and WP in WordPress, and enter the API you just created in XenForo to the “XenForo API key” field.