Key Features
-
Instant Title Generation: Automatically outputs 20 catchy headline variations from a database of 25 proven title templates.
-
Seamless AJAX Performance: Generates results instantly without reloading the page.
-
Modern & Responsive UI: Built-in gradient card design with smooth focus transitions, hover states, and clear feedback messages.
-
Built-in Security: Secured with WordPress Nonces (
wp_create_nonce) and input sanitization (sanitize_text_field) to prevent unauthorized origin requests. -
Zero External Dependencies: Built using native WordPress actions, functions, and pure CSS/JavaScript.
Ideal For
-
Bloggers & Content Creators: Quickly overcome writer’s block and discover new article angles.
-
Copywriters & Marketers: Craft high-converting headlines for landing pages, emails, and social media posts.
-
SEO Specialists: Identify engaging title formulas to boost Click-Through Rates (CTR) on Search Engine Result Pages (SERPs).
-
Membership & Tools Websites: Add a free, value-adding interactive tool for site visitors.
Key Benefits
-
Boosts Audience Engagement: Helps you write headlines that draw readers in.
-
Saves Content Planning Time: Instantly generates dozens of ideas in seconds instead of manual brainstorming.
-
Lightweight & Fast: Minimal memory footprint; won’t slow down your website performance.
Installation Guide
You can set up this snippet in a few simple steps:
Method 1: Using the Code Snippets Plugin (Recommended)
-
Install and activate the free Code Snippets plugin from the WordPress repository.
-
Go to Snippets → Add New in your WordPress dashboard.
-
Paste the provided PHP code into the code editor.
-
Set the code type to PHP Snippet.
-
Click Save Changes and Activate.
Method 2: Via Theme functions.php
-
Go to Appearance → Theme File Editor (or access your server via FTP/cPanel).
-
Open your active child theme’s
functions.phpfile. -
Paste the PHP code at the end of the file.
-
Save the file.
How to Display the Tool on Your Site:
Add the following shortcode to any Page, Post, or Custom Post Type:
[title_generator]Compatibility
-
WordPress Version: Compatible with WordPress 5.0 and higher (including WP 6.x).
-
PHP Version: Requires PHP 7.4 or higher (PHP 8.0+ supported).
-
Browser Compatibility: Fully functional on all modern web browsers (Chrome, Edge, Firefox, Safari) and mobile devices.
-
Theme / Plugin Compatibility: Works seamlessly with Block Editor (Gutenberg), Elementor, Divi, and standard classic editors.
What You Will Get
-
Clean PHP & AJAX Engine: Complete front-end form rendering and back-end processing code.
-
Embedded CSS Styling: Beautiful UI out of the box with zero additional style setup needed.
-
Dynamic Shortcode: A simple
[title_generator]shortcode ready to embed anywhere on your site.
FAQ (Frequently Asked Questions)
-
Q: Do I need an API key (like OpenAI) for this plugin to work?
-
A: No, the tool uses a built-in library of structured title patterns, so it runs completely offline without any paid API keys or external services.
-
-
Q: Can I change the number of generated titles?
-
A: Yes. In the PHP code function
tg_make_titles, you can adjust thearray_slice($en, 0, 20)number to display more or fewer titles.
-
-
Q: Is it safe for guest visitors to use?
-
A: Yes,
wp_ajax_nopriv_tg_generate_titlesallows non-logged-in visitors to generate titles safely, protected by nonce validation.
-
Disclaimers & Notes
-
Text Input Limit: The input field enforces a maximum length of 120 characters to prevent spam or malformed queries.
-
Language Support: The default title templates are written in English. You can manually edit the
$enarray in thetg_make_titles()function to translate or customize the templates to your preferred language.
Preview








Reviews
There are no reviews yet.