Tag Archives: code

List pages in wordpress into a PHP Array

April 10th, 2008

Update: Thanks to Joost in the comments for suggesting the use of get_pages() to accomplish the same thing as what I posted below. He posted the example:

$pages = get_pages(‘child_of’ => [[THE PARENT ID]], ’sort_order’ => ‘ASC’);
foreach ($pages as $page) {
// Do your thang
}

This seems much better than what I had previously used, …read more

Automatic wordpress backups to Amazon S3

October 25th, 2007

I use wordpress for many sites, and its really important for me to be able to automatically perform nightly backups of not just the database, but all files including uploads, themes, plugins and the basic wordpress files. I need the ability to revert any file back to a previous version.
I found a variety of …read more