WordPress

Overview

The UniSignIn plugin connects a WordPress site to your UniSignIn account. It:

  • adds the UniSignIn tag to every page, so your experiences, such as access walls and sign-in buttons, show on the site;
  • keeps protected posts on your site until a reader has access, with Protected Content;
  • adds a Live Blog to the posts you choose;
  • shows UniSignIn Comments under your posts;
  • recommends more articles to read after each post;
  • logs readers who log in to WordPress into UniSignIn, and lets WordPress be your login page;
  • suggests titles and tags in the post editor, from Transfon Studio.

Install and activate the plugin, then open UniSignIn in the WordPress admin menu. The page has three tabs:

  • Home: turn on live blogs, comments, recommended articles and AI tools, and open UniSignIn features such as access walls, newsletters, content lists and segments.
  • Settings: connect your site and enter keys, once.
  • Support: documentation, email support and answers to common questions.

Start with Connection on the Settings tab.

Connection

On the Settings tab:

SettingWhere to find it
LicenceYour project's licence, in its tag code.
Tag domainYour UniSignIn subdomain, or secure.signinservice.com.
API secret keyConnect > API Keys, see API Keys. Needed for AI titles and tags.

Once the licence and tag domain are saved, the tag loads on every page. You don't need to add it to your theme.

Protected posts

Protected posts show everyone the first paragraphs, and at most half of a short post. The rest stays on your site and is only sent to readers who have access, through Protected Content. It isn't in the page, your feeds or the WordPress REST API.

  1. Create an Access Wall, for example a sign-up wall or a paywall, with Access set to Hard and Withhold the text on the server set to Yes.
  2. Show it on every protected post with an Orchestration whose condition is Meta property unisignin:protected equals yes. The plugin adds this to every protected post.
  3. In UniSignIn, go to Connect > Protected Content, and enter the address shown under Protected Content secret on the plugin's Settings tab.
  4. Copy the secret from Connect > Protected Content into Protected Content secret on the plugin's Settings tab, and set Paragraphs shown to how many paragraphs everyone can read. In posts written with the block editor, each block counts, such as an image or a heading.
  5. When editing a post or page, tick Protected in the UniSignIn box.

Readers see the wall where the text is cut, and the rest of the post once they have access. WordPress users who can edit a post always see it in full.

Posts marked Membership Only in version 1 of the plugin are protected in the same way.

Live blogs

Turn any post into a Live Blog for breaking news, matches and events.

  1. On the plugin's Home tab, turn on Live blogs.
  2. When editing the post, tick Live blog in the UniSignIn box, and choose a Layout: List or Cards.
  3. Update the post. The live feed shows after the post's text. To show it elsewhere in the post, put [unisignin_liveblog] there, with a Shortcode block in the block editor.
  4. Give each person who will post the Editor role in UniSignIn: go to Data Management > User Data, open their profile, click the edit icon and set Roles to Editor for the project, then save.
  5. The editor opens the post on your site, signed in to UniSignIn, and writes posts in the editor panel above the feed.

With WordPress logins turned on, editors who are logged in to WordPress are already signed in to UniSignIn on the post.

To show ads between live blog posts, set First ad after post and Then an ad every under Live blogs on the plugin's Settings tab, for example 3 and 5. Leave them empty for no ads. See Ads in Live Blog, Comments and Stories.

On a protected post, the live feed is visible to every reader; only the post's text is protected.

Comments

UniSignIn comments replace WordPress comments on your posts. Readers comment with their UniSignIn account, and you moderate in UniSignIn, see Comments. Keep Allow comments on for the post in WordPress: many themes only show their comments area, where UniSignIn comments and recommended articles go, when comments are allowed.

  1. On the plugin's Home tab, turn on Comments. Comments show under every post, where your theme shows its comments.
  2. To turn them off for one post, untick Comments in the post's UniSignIn box.

Where UniSignIn comments show, WordPress's own comment form and comments are hidden, so readers see one comment section. Posts with UniSignIn comments turned off keep their WordPress comments.

The comments work as they are. To set your own title, community guidelines or layout, create a Comment experience in UniSignIn and enter its ID as Comment experience ID on the plugin's Settings tab.

Show a compact list of articles picked for each reader just above the comments, so they keep reading.

  1. Connect Transfon Studio for the project in UniSignIn.
  2. On the plugin's Home tab, turn on Recommended articles.

To show the list inside a post or page instead, put [unisignin_recommendations] where you want it, with a Shortcode block in the block editor. That post then shows it only there.

On a protected post, keep [unisignin_liveblog] and [unisignin_recommendations] in the paragraphs everyone can read.

Transfon Studio picks up each post when readers view it on your site's domain. It needs the post's title, image and published date: the plugin adds these tags when no SEO plugin such as Yoast does. Give each post a featured image, or set a site icon in WordPress, so every post has an image.

The list works as it is. To set its title, layout or number of articles, create a Recommendation experience in UniSignIn and enter its ID as Recommendation experience ID on the plugin's Settings tab.

WordPress logins

If your readers log in to WordPress, for example through a membership plugin, the plugin can log them into UniSignIn too. Their profile, segments and experiences then follow their WordPress account.

  1. In UniSignIn, create an SSO key pair in Connect > SSO Token.
  2. On the plugin's Settings tab, turn on Log WordPress users into UniSignIn and enter the SSO public key and SSO private key.

Readers are logged into UniSignIn on the next page they open, and logged out of it when they log out of WordPress. Their email, first name, last name and registration date are sent to UniSignIn.

Use WordPress as your login page

To send the login and sign-up buttons of your experiences to WordPress instead of the UniSignIn popup:

  1. Copy the address the plugin shows under the SSO keys, for example https://www.example.com/?unis_login=1.
  2. In UniSignIn, go to Features > Account Center > Authentication, and under Login set Log in with to Your own login page, and enter that address as Login page URL. This needs a Super Administrator.

A reader who clicks Log in on an access wall goes to the WordPress login, and comes back to the article logged in. See Login options.

AI titles and tags

With Transfon Studio connected in UniSignIn, the plugin can suggest titles and tags while you write.

  1. In UniSignIn, connect Transfon Studio for the project and turn on Enable AI Title and Enable AI Tag, see Transfon Studio.
  2. Enter the API secret key on the plugin's Settings tab, and turn on AI titles and AI tags on its Home tab.

The buttons are in the UniSignIn AI box of the post editor, in both the classic and the block editor:

  • Suggest titles lists titles for the post. Click one to use it.
  • Add tags adds suggested tags to the post.

Both use the post's title and text, so write a title first.

Stay ahead in first-party data

Identity, consent, audience, and subscription insights for publishers. A few emails a month, no spam.

By subscribing you agree to our privacy policy.