This helper class helps you accessing WordPress functions to post the feed easily.
You can also check out the main.php and the PHP file which is in the src folder to know more details.
You can see the main.php to know more details about using this classes.
main.php: The main functionality to call the calsses fromsrcfolder.Valid.php: The class is to validate the post id and image id.Post.phpis to post the feed via WordPress functions.UploadImg.php: The class is to upload the images via WordPress functions.
- using ssh to login your VPS or shared hosting server.
cd /path/to/your-wodpress-root-installation.- using the
git clone https://github.com/peter279k/wp-postto clone this repo. - In
main.php, modify the title and content on line 27. - using the
php main.phpto test the posting feed and uploading images.