WP Manifestindependent plugin directory
manifest / seo / wp-sluger

Sluger

Wordpress plugin. URL shortener & automation slug generator with DeepLX and *OpenAI API support

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/hootrix/wp-sluger/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

A WordPress plugin that automates the generation of SEO-friendly URL slugs using DeepLX and *OpenAI API.

Features

  • Automatically generate SEO-friendly slugs for posts and pages
  • Support for both DeepLX and *OpenAI API
  • Multiple language styles:
    • English Translation
    • Chinese Pinyin
    • Romanization (For non-Latin scripts)
    • Keep Original (just sanitize)
    • Custom Style with custom prompts
  • Real-time API connection testing
  • Support for custom *OpenAI models
  • Detailed error logging for troubleshooting

Slug Update Logic

  • The plugin only triggers slug generation when the post/page title is changed
  • If you modify other content without changing the title, the slug remains unchanged
  • This prevents unnecessary API calls and maintains URL stability

Installation

  1. Download the plugin zip file
  2. Go to WordPress admin panel > Plugins > Add New
  3. Click "Upload Plugin" and choose the downloaded zip file
  4. Click "Install Now" and then "Activate"

Configuration

  1. Go to Settings > WP Sluger

  2. Choose your preferred translation service:

    • DeepLX: Free and self-hosted translation service
    • *OpenAI: OpenAI's powerful language model
  3. Configure the API settings:

  4. Choose your preferred language style:

    • English Translation: Convert any language to English
    • Chinese Pinyin: Convert Chinese characters to Pinyin
    • Romanization: Convert non-Latin scripts to Latin alphabet
    • Keep Original: Just sanitize the title without translation
    • Custom Style: Use your own prompt template
  5. For Custom Style:

    • Write your own prompt template
    • Use {title} as a placeholder for the post title
    • Example prompts:
       Convert to Pinyin and create URL alias: {title}
       Example 2: Translate to English alias: {title}
       Example 3: Create URL alias using Japanese romaji: {title}

License

GPL v2 or later

Credits