https://github.com/webdad/wp2txt
Gets Posts from your Workdpress Page and post it to your twtxt.txt
https://github.com/webdad/wp2txt
Last synced: about 1 month ago
JSON representation
Gets Posts from your Workdpress Page and post it to your twtxt.txt
- Host: GitHub
- URL: https://github.com/webdad/wp2txt
- Owner: WebDaD
- Created: 2019-06-08T12:29:34.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-07T18:36:36.000Z (almost 7 years ago)
- Last Synced: 2025-12-12T23:40:10.170Z (6 months ago)
- Language: PHP
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Wordpress 2 twtxt
Gets Posts from your Workdpress Page and post it to your twtxt.txt
You may add it as a cronjob.
To prevent misuse, you may add a token to the file. Then you should call the cron.php with this token as argument, like cron.php?token=TOKEN
## Config
Just check out the first lines of cron.php:
- $wp_site: Base URL to your Wordpress
- $twtxt: Path to File
- $log: Where to log the actions to
- $token: Your Access-Token
- $days_back: How many Days of Posts should be pulled in.
If you dont already have a twtxt.txt-File, consider using the template from this project and fill out the blanks.
Also you may need to edit your _.htaccess_-File, vor example like this:
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteRule ^wp2twtxt\.php$ - [L]
RewriteRule ^twtxt\.txt$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
## What is twtxt
[twtxt is a decentralised, minimalist microblogging service for hackers.](https://github.com/buckket/twtxt)