Configuration
Configuration Guide
Step 1: Create a Mastodon Access Token
- Register an account on https://social.5th.ro
- Go to Preferences → Development
- Click New Application
- Fill in the application details:
- Application name: 5th Social Bot
- Website: Your WordPress site URL
- Redirect URI: Leave empty
- Scopes: Check
write:statusesandread:accounts
- Click Submit
- Copy the Your access token value
Step 2: Configure the Plugin
- Go to Settings → 5th Social Bot in WordPress admin
- Paste your access token in the Mastodon Access Token field (field is blurred for security, with show/hide toggle)
- The username will be automatically retrieved from the token
- Configure other settings as needed:
- Enable auto-posting for posts and/or pages
- Set post template (default:
{text}\n{tags}\n{url}) - Use the emoji picker (over 2000 Unicode emojis available)
- Choose status visibility (public, unlisted, private, direct)
- Set post language (default: Romanian, ISO 639-1/639-2)
- Enable Debug Mode for detailed logging (optional)
- Click Save Settings
- Use the Send test post to Mastodon button to verify configuration
Template Placeholders
The post template supports the following placeholders:
{text}- excerpt/preview of content (automatically trimmed to 500 characters){tags}- hashtags generated from WordPress tags (spaces and special characters removed, # prefix added){readmore_text}- short call-to-action text (you can add multiple variants, one per line, randomly chosen){url}- permalink to post or page
Newlines support: You can write the template on multiple lines in the textarea, or use \n in the template (converted to real newlines).
Automatic trimming: If the post exceeds 500 characters (Mastodon limit), the plugin tries to shorten only the {text} part first, then uses a minimal variant …. {readmore_text} {url} if needed.
Step 3: Profile Verification (Optional)
- Enable Profile Verification in settings
- Go to your Mastodon account Preferences → Public profile → Verification
- Add your WordPress site domain to the whitelist
- The plugin will automatically add the verification code to your site header