WPGet
WPGet is a script that is designed to allow you to include a short summary of your recent blog posts on your website. Specifically, it works with WordPress and is great for integrating a WordPress blog into a site that isn’t completely powered by the WP platform.
You can see a great example of WPGet in action on the sidebar on the right. It shows you the most recent posts, with a brief summary of each; it’s an easy way to see what’s new on my blog. That is, in essence, what WPGet is designed for (although it is fully customisable for what you want to do).
It was originally going to be just for this site, however, I thought the project had use for other sites as well, so I decided to open it up to the wider world.
This is dual-licensed, under the GPL version 3 and the LGPL, making it free software and/or open source software, whatever you want to call it.
If you do want to use WPGet in a way which the licences don’t allow, get in contact.
If you find WPGet particulary useful, use it in a commercial setting, or you’re just feeling generous, you are more than welcome to make a donation via PayPal:
Need install help? Run the installer!
Download
The best way to get WPGet is to use the Installer right here, but if you prefer to download a copy to run on your machine, you can do so below:
Download .tar.bz2
Download .tar.gz
Download .zip
Credit is due to mr at bbp dot biz and Chris Shiflett for a couple of functions in the script (neither gave any licence terms, if your function included here is a problem let me know!)
Any suggestions, patches, problems, or if you want to contribute, drop me a line and hopefully we can all make WPGet better. Anyone who’s successfully done a WPGet implementation — I’d love to hear from you.
Documentation
Some limited documentation and install information can be found on the documentation wiki.
WPGet on phpclasses.org
On the 13th September 2006, WPGet was accepted into phpclasses.org. Check out its page there. Thanks!
On the 1st October 2006, I was notified that WPGet was nominated for a PHP Classes innovation award. W00t!
WPGet on hotscripts.com
Changelog
Oops — should have logged the changes from the start. For the sake of consistency, I’ll call the first recorded version 0.2 and we’ll go from there.
- 1.0 — PHP 4 support dropped, switched over to Perl regular expressions for forwards compatibility, ability to show posts only in a specified date range, ability to show posts only matching a certain search term, support for stripping links from WPGet’s output. Bump to version 1.0!
- 0.8 — updated to support WordPress Categories in the new format (2.3.x, 2.5.x and up) and also support WordPress Tags since 2.3 or later. Fully tested with WordPress 2.5.1. Minor updates to Installer.
- 0.7 — reworked Installer, multiple performance improvements, single post support, mature category mode, WordPress 2.2 and 2.3 support
- 0.6 — major new version! New one-click Config Tool, less copying and pasting, new date format and credit controls plus a (beta) category-controlled mode
- 0.5.2 — PHP 4 support – now no longer causes an error when running in a PHP 4 environment
- 0.5.1 — update to the usability of the config tool to make it clear about what exactly you need to copy and paste. Perhaps it wasn’t so ‘Easy!’ after all...
- 0.5 — major new features and functionality. We now have the option of stripping images, embeds and JavaScript and a new Config Tool to generate all the code for you. Easy!
- 0.4 — minor fix to the image and embed stripping code - now it will remove images and embeds from posts even if the image/embed isn't at the start of the post. The cause was a slightly wrong regex.
- 0.3 — fixed an issue where if you drafted a post, subsequently published a different post, then published the draft one, the posts would appear in the wrong order (changed the order of results fetched from MySQL to post_date not ID)
- 0.2 — first recorded version, newly added image and embed stripping and a link back to me at the end of the output (optional of course!)