How to use Thread comments

The Thread comments feature adds the ability to create and connect threads to individual posts. With XFtoWP’s plugin settings you can customize the comments template, setup message filters, and other actions.

Thread comments settings

Let’s walk through the Thread comments settings panel.

Comments display

You can insert thread comments into posts with various display settings. Choose between:

  • Show after WP comments
  • Replace WP comments
  • Show tabs + WP comments

XFtoWP will load the forum comments into the post layout according to your selection. Tip: if you select the tabs layout whichever comments type has more total replies will show first.

Comments style

The comments style option allows you to toggle between the familiar Thread view or the minimal Comments view template. Both templates will blend well into your theme and suit different styles well.

Hide pinned post after thread gets reply

When a new thread has no replies yet you can choose to show the first “Pinned” post. Once the first post is made, remove the original post.

Refresh interval (minutes)

Set the amount of time before each post should refresh the thread replies. All comment refreshes happen behind the scenes and are only performed once every X minutes you set here.

Replies per page

How many replies to show before showing the “load more comments” button. This is the amount of replies that will be reloaded per load. Note: as of version 1.0 only the first page of posts can be shown in thread comments.

Comment length

To shorten long replies you can set the character limit before showing the “click to expand” toggle button.

Filter messages

This is a handy option you can use to filter the content that displays in comments. For example, you can replace images and code snippets with a placeholder and even remove avatars to save extra HTTP requests.

Thread comments > Create thread

Clicking the “Create thread” tab brings us to the default title and messages screen. Use dynamic variables and your own custom text to use as a template for every thread you create from the posts editor.

Creating new threads

Once you have configured your settings you can begin connecting and creating threads from posts and pages.

On the Edit Post screen look to the right sidebar for the XenForo meta box. Here are your controls to connect a thread by ID, or create a new thread and post to a forum (setup from the XFtoWP admin settings).

You can attach one thread per post either by linking to an existing thread ID or creating an entirely new thread. You will see that you can again override the thread content if it does not fit with your default template.

Once a thread is connected there is no need for further configuration. You can disconnect the the thread at any time from the same meta box at any time.

For your convenience, you can see a log of all connected threads from the Thread comments admin panel:

WordPress user syncing is almost ready! See what’s new in XFtoWP 1.2