Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lfalcao/wp-gpt-content
PHP script that reviews and improve WordPress content using ChatGPT to enhance SEO
https://github.com/lfalcao/wp-gpt-content
chatgpt content-management-system gpt-4 openai php seo wordpress wp
Last synced: 13 days ago
JSON representation
PHP script that reviews and improve WordPress content using ChatGPT to enhance SEO
- Host: GitHub
- URL: https://github.com/lfalcao/wp-gpt-content
- Owner: lfalcao
- Created: 2024-08-29T15:07:00.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-29T17:44:24.000Z (3 months ago)
- Last Synced: 2024-10-11T03:42:09.368Z (about 1 month ago)
- Topics: chatgpt, content-management-system, gpt-4, openai, php, seo, wordpress, wp
- Language: PHP
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wp-gpt-content
PHP script that reviews and refines WordPress content using ChatGPT to improve SEO. It updates post content, tags, and categories to enhance readability and optimize search engine performance.
Works with OpenAi free account and tested with Wordpress version 6.6.1.
⚠️ Use at your own risk!
⚠️ Backup your data before!
## Requirements
- [wordpress](https://wordpress.org)
- [wp-cli](https://wp-cli.org)
- [openai api key](https://platform.openai.com/api-keys)## Config
Edit `$prompt`, `$api_key` and `$max_tokens` in the php file## How to Use
In the server which wp is running, execute:```sh
wp eval-file wp-gpt-content.php --allow-root --path={WP_DIR}
```For debugging, set the variable `DEBUG=1`:
```sh
DEBUG=1 wp eval-file wp-gpt-content.php --allow-root --path={WP_DIR}
```## License
MIT