DocsPopular
Genarate WordPress Docs Easily With This Plugin
by Shamim Hasan · github.com/shamimbdpro/docspopular · website
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/shamimbdpro/docspopular/archive/refs/heads/main.zipDocsPopular - WordPress Documentation Plugin
A beautiful and minimal documentation system for WordPress themes and plugins.
Features
- 📚 Custom Post Type for documentation pages
- 🗂️ Category system for organizing docs by theme/plugin
- 🎨 Gorgeous minimal design
- 📱 Fully responsive layout
- 🔍 Built-in search functionality
- ⌨️ Keyboard navigation support
- 🎯 Shortcode for displaying category grid
- 📄 Custom page template
- ⚡ Performance optimized - Assets only load on documentation pages
Installation
- Upload the
docspopularfolder to/wp-content/plugins/ - Activate the plugin through the 'Plugins' menu in WordPress
- You'll see a new "DocsPopular" menu item in your admin panel
Usage
Creating Documentation
- Go to DocsPopular > Add New in your WordPress admin
- Create your documentation page with title and content
- Assign it to a Doc Category (create categories under DocsPopular > Categories)
- Publish your documentation
Creating Categories
- Go to DocsPopular > Categories
- Add a new category (e.g., "My Theme", "My Plugin")
- Optionally add a description
- Save the category
Displaying Documentation
Method 1: Using Shortcode
Add this shortcode to any page or post to display all documentation categories:
[docspopular_categories]
Method 2: Using Page Template
- Create a new page (e.g., "Documentation")
- In the page editor, select Template > DocsPopular from the page attributes
- Add your content and shortcode if desired
- Publish the page
Category Archive Pages
When users click on a category from the grid, they'll see:
- Left Sidebar: List of all documentation pages in that category
- Right Content Area: The actual documentation content
The interface includes:
- Smooth navigation between docs
- Search functionality
- Keyboard navigation (↑↓ arrow keys)
- Clean, readable design
Shortcode Options
The [docspopular_categories] shortcode supports these parameters:
orderby- Sort categories by name, count, etc. (default: 'name')order- ASC or DESC (default: 'ASC')
Example:
[docspopular_categories orderby="count" order="DESC"]
Customization
Styling
All styles are in /assets/css/docspopular.css. You can override these in your theme's CSS file:
:root {
--docspopular-primary: #4F46E5; /* Change primary color */
--docspopular-text-dark: #1F2937; /* Change text color */
}
Template Customization
You can override the plugin templates by copying them to your theme:
- Copy
/wp-content/plugins/docspopular/templates/taxonomy-docspopular_category.php - Paste to
/wp-content/themes/your-theme/docspopular/taxonomy-docspopular_category.php - Customize as needed
Performance Optimization
DocsPopular is built with performance in mind. CSS and JavaScript files are only loaded on:
- Single documentation pages
- Documentation category archives
- Pages using the DocsPopular template
- Pages/posts containing the
[docspopular_categories]shortcode
This means your other pages remain lightning fast! ⚡
Tips
- Use the Order field in page attributes to control the order of docs in the sidebar
- Add featured images to make your documentation more visual
- Use categories to separate documentation for different products
- The search box in the sidebar helps users find specific docs quickly
Support
For issues or feature requests, please contact the plugin author.
License
GPL v2 or later
Version: 1.0.0
Author: DocsPopular Team