PraisonAI Git Posts

توسط

PraisonAI Git Posts is a revolutionary WordPress plugin that enables file-based content management with Git version control integration. Store your posts, pages, and custom post types as Markdown files while maintaining full WordPress compatibility.

Key Features

  • File-Based Content Management – Store all content as Markdown files
  • No Database Writes – Pure read-only approach for content
  • Git Version Control – Track changes with full Git integration
  • Dynamic Post Type Discovery – Automatically registers post types from directory structure
  • Custom URL Routing – Beautiful URLs for any post type (e.g., /recipes/song-name)
  • YAML Front Matter – Rich metadata support
  • Caching System – Built-in performance optimization
  • Auto-Update Detection – Content updates automatically when files change
  • WordPress Compatible – Works with themes, plugins, and filters
  • Developer Friendly – Clean, extensible architecture

Perfect For

  • Developers who prefer Git workflows
  • Teams collaborating on content
  • Sites requiring version control
  • Static site generators transitioning to WordPress
  • Content stored in version control repositories

How It Works

  1. Create a content/ directory at your WordPress root
  2. Add Markdown files with YAML front matter
  3. Plugin automatically discovers and loads content
  4. Create new post types by simply adding directories

Example Post

`markdown

title: “My Post Title”
slug: “my-post-slug”
author: “admin”
date: “2024-10-31 12:00:00”
status: “publish”
categories:
– “General”
tags:

– “example”

Your content here

Write your content in Markdown format.
`

Requirements

  • WordPress 5.0 or higher
  • PHP 7.4 or higher
  • Git (optional, for version control features)

External Services

This plugin connects to external services for certain features:

GitHub API

What it is: GitHub’s REST API (https://api.github.com) is used for version control and collaboration features.

When it’s used: The plugin connects to GitHub API when you:
– Enable GitHub OAuth authentication
– Create or manage pull requests
– Sync content with a GitHub repository
– View pull request details and changes

What data is sent:
– Repository information (owner, name)
– Authentication tokens (OAuth)
– Commit messages and file changes
– Pull request data

User consent: GitHub features are optional and only activated when you configure GitHub integration in the plugin settings. No data is sent to GitHub unless you explicitly enable and configure GitHub features.

Service information:
– Service provider: GitHub, Inc.
– Terms of service: https://docs.github.com/en/site-policy/github-terms/github-terms-of-service
– Privacy policy: https://docs.github.com/en/site-policy/privacy-policies/github-privacy-statement

Development

  • GitHub Repository: https://github.com/MervinPraison/PraisonAI-Git-Posts
  • Report Issues: https://github.com/MervinPraison/PraisonAI-Git-Posts/issues
  • Author Website: https://mer.vin

Credits

Developed by MervinPraison

Automatic Installation

  1. Go to Plugins > Add New
  2. Search for “PraisonAI Git Posts”
  3. Click “Install Now”
  4. Activate the plugin

Manual Installation

  1. Download the plugin ZIP file
  2. Go to Plugins > Add New > Upload Plugin
  3. Choose the downloaded ZIP file
  4. Click “Install Now”
  5. Activate the plugin

After Installation

  1. Create a content/ directory at your WordPress root level
  2. Create subdirectories for post types (e.g., content/posts/, content/pages/)
  3. Add Markdown files with YAML front matter
  4. View your content on the frontend

Configuration

The plugin works out of the box with default settings. To customize the content directory location, add to wp-config.php:

define('PRAISON_CONTENT_DIR', '/custom/path/to/content');

Or use a filter:

add_filter('praison_content_dir', function($dir) {
    return '/custom/path/to/content';
});

سوالات متداول

Does this replace the WordPress database?

No. The WordPress database is still required for WordPress core functionality, user management, settings, etc. This plugin only replaces content storage (posts, pages) with file-based content.

Can I use this with my existing WordPress site?

Yes! The plugin works alongside existing database-based content. You can mix file-based and database-based content.

What file formats are supported?

Currently, Markdown (.md) files with YAML front matter are supported.

How do I create a custom post type?

Simply create a new directory in your content folder. For example, creating content/recipes/ automatically registers a “recipes” post type.

Does it work with WordPress themes?

Yes! File-based posts work exactly like regular WordPress posts with all template tags and filters.

Can I use WordPress plugins with this?

Yes! The content is loaded as proper WP_Post objects, so plugins that modify content (like SEO plugins) work normally.

How does caching work?

The plugin uses WordPress transients for caching. Cache automatically invalidates when files are modified.

How do I clear the cache?

Go to PraisonAI Git Posts Clear Cache in the WordPress admin, or use the top admin bar menu.

Is Git required?

No, Git is optional. The plugin works without Git, but version control features require Git to be installed.

How do I track version history?

The plugin includes Git integration. If Git is installed, file changes are automatically tracked. View history in PraisonAI Git Posts Version History.

Can I rollback to previous versions?

Yes, if Git is available, you can rollback any file to a previous version from the Version History page.

تصویری برای این آیتم موجود نیست.
نظری برای این آیتم موجود نیست.
0 0 رای ها
امتیازدهی
اشتراک در
اطلاع از
0 نظرات
قدیمی‌ترین
تازه‌ترین بیشترین رأی
هیچ نسخه‌ای برای این آیتم موجود نیست.
بدون امتیاز

قیمت:

رایگان

نگارش

آخرین انتشار

17 اردیبهشت 1405

آخرین بروزرسانی

3 ماه پیش

نصب های فعال

-

نگارش وردپرس

وردپرس 5.0+

تست شده از نسخه

وردپرس 6.9.4

نگارش PHP

PHP 7.4+

نسخه ها

0 نسخه