WP Prompts Lib
A WordPress Plugin to create a library of prompts for use in LLMs. Prompts can be made public or not.
★ 1stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/palomnik/wppromptlib/archive/refs/heads/main.zipWP Prompts Lib - User Guide
Overview
WP Prompts Lib is a WordPress plugin designed to create and manage AI prompts with associated metadata, categories, and tags.
Installation
- Download the plugin file (
wp-prompts-lib.php) - Upload to your WordPress site's
/wp-content/plugins/directory - Activate the plugin through the WordPress admin panel
- Go to Settings > Permalinks and click "Save Changes" to refresh permalink structure
Main Features
- Create and manage AI prompts
- Categorize and tag prompts
- Display prompts in a searchable, filterable grid
- Export prompts to CSV
- Copy prompt content to clipboard
Creating Prompts
To Add a New Prompt:
- In WordPress admin, go to "WP Prompts" > "Add New"
- Fill in the following fields:
- Title: Name of your prompt
- Output/Format: Expected output format
- Prompt: The main prompt text
- Contexts (optional): Any contextual information
- Reasoning Chain (optional): Step-by-step reasoning
- Best LLM: Recommended language model
- Add categories and tags as needed
- Click "Publish" to save
Field Descriptions:
- Output/Format: Specify the desired output format (e.g., "JSON", "Markdown", "List")
- Prompt: The main prompt text
- Contexts: Additional context or background information
- Reasoning Chain: Step-by-step breakdown of the reasoning process
- Best LLM: Recommended language model (e.g., "GPT-4", "Claude", "PaLM")
Displaying Prompts
Using the Shortcode
Add the prompts display to any page using the shortcode:
[display_prompts]
Shortcode Options:
[display_prompts posts_per_page="20" category="your-category" orderby="date" order="DESC"]
Parameters:
posts_per_page: Number of prompts to display (default: 20)category: Filter by category slugorderby: Sort by 'date' or 'title'order: 'ASC' or 'DESC'
Features Available on the Prompts Display Page
Search and Filter:
- Use the search box to find specific prompts
- Filter by category using the dropdown
- Sort by:
- Newest First
- Oldest First
- Title A-Z
- Title Z-A
Export Feature:
- Must be logged in to see the export button
- Click "Export to CSV" to download all prompts
- CSV includes:
- Title
- Output/Format
- Prompt
- Contexts
- Reasoning Chain
- Best LLM
- Categories
- Tags
- Date Created
Individual Prompt View
When viewing a single prompt:
- All fields are displayed in organized sections
- "Copy to Clipboard" button available
- Copying includes:
- Contexts (if present)
- Prompt
- Reasoning Chain (if present)
Categories and Tags
Managing Categories:
- Go to WP Prompts > Categories
- Add new categories
- Edit existing categories
- Categories can have hierarchical structure
Managing Tags:
- Add tags when creating/editing prompts
- Tags are non-hierarchical
- Use for flexible organization
Best Practices
Creating Effective Prompts:
- Use clear, descriptive titles
- Fill in all relevant fields
- Use categories for broad classification
- Use tags for specific attributes
- Include detailed context when needed
Organization:
- Create a consistent category structure
- Use meaningful tags
- Keep prompts updated
- Document best practices in contexts
Troubleshooting
Common Issues:
-
404 Errors:
- Go to Settings > Permalinks
- Click "Save Changes"
-
Export Not Working:
- Verify you're logged in
- Check file permissions
- Try a smaller export first
-
Copy Button Not Working:
- Check browser permissions
- Try a different browser
Security Notes
-
Only logged-in users can:
- Export prompts to CSV
- Create new prompts
- Edit existing prompts
-
Public users can:
- View prompts
- Search and filter
- Copy prompt content
Support and Updates
For support or questions:
- Contact: https://johnsimmonshypertext.com/get-help-now/
- Documentation: This file is it
- Updates: Check WordPress plugins page for updates
Technical Requirements
- WordPress 5.0 or higher
- PHP 7.4 or higher
- Modern web browser
- JavaScript enabled