Getting Started with Git to WordPress Importer
Welcome to the Git to WordPress Importer! This tool makes it incredibly easy to import your Markdown content from Git repositories directly into your WordPress site.
Why Use This Tool?
If you’re a developer or technical writer who prefers writing in Markdown and storing content in Git, this tool bridges the gap between your preferred workflow and WordPress publishing.
Key Benefits
- Write in Markdown – Use your favorite text editor
- Version Control – Keep your content in Git
- Automatic Sync – Set it and forget it
- Preserve Metadata – Categories, tags, dates all maintained
How It Works
The importer follows a simple process:
Git Repository → Parse Markdown → Create WordPress Posts
Installation Steps
# Install dependencies
pip install -r requirements.txt
# Configure
cp config.template.yaml config.yaml
# Import
python run.py --import
Markdown Features
The importer supports all standard Markdown features:
- Bold text
- Italic text
inline code- Links
- Lists (like this one!)
Code Blocks
def hello_wordpress():
print("Hello from Git!")
Tables
| Feature | Supported |
|---|---|
| Posts | ✓ |
| Pages | ✓ |
| Categories | ✓ |
| Tags | ✓ |
Advanced Features
Watch Mode
Enable continuous synchronization:
python run.py --watch
Now whenever you push new posts to your repository, they’ll automatically appear on your WordPress site!
Custom Directory Structure
Configure custom paths in config.yaml:
import:
posts_directory: "articles"
pages_directory: "site-pages"
Conclusion
The Git to WordPress Importer streamlines your content publishing workflow. Try it today and experience the power of Git-backed WordPress publishing!
Happy blogging! 🚀
