The client
PolitiFact is a Pulitzer Prize-winning fact-checking website that rates the accuracy of claims by elected officials, candidates and others in American politics on its Truth-O-Meter. Started in 2007 by the St. Petersburg Times (now the Tampa Bay Times), it has been part of the Poynter Institute, a nonprofit journalism school in St. Petersburg, Florida, since 2018, and publishes in English and Spanish.
The challenge
PolitiFact ran on a custom CMS built with Django and PostgreSQL. The Poynter team wanted to move the site to WordPress without readers noticing any difference. That meant:
- Years of journalism to move. About 50,000 stories, fact-checks, promises and videos, each with its own taxonomies and relationships, had to come across intact.
- Every feature rebuilt. Everything readers and editors used on politifact.com had to work on WordPress.
- Old problems left behind. Known issues in the custom CMS had to stay behind instead of following the site to its new platform.
- A heavy codebase. The original implementation was large and hard to maintain.
The solution
As a full stack developer at Ideamaker, I did the entire migration myself. Over about a year and a half, I rebuilt everything on politifact.com as a custom WordPress theme backed by several plugins, and moved the site’s data from PostgreSQL to WordPress’s MySQL database.
- Content model: rebuilt the CMS’s content types (stories, fact-checks, promises and videos) as WordPress custom post types, along with their taxonomies.
- Data migration: migrated all 50,000 publications from PostgreSQL to MySQL and adapted them to WordPress, so each one matched the original.
- Features: reimplemented every feature of the old site in PHP, fixing the custom CMS’s issues and polishing each feature along the way.
- Search: adapted the site’s search to WordPress.
- Admin tools: built new administrative tools so the team can manage its content from the WordPress admin.
- Performance: optimized the new codebase throughout.
- Launch and support: deployed the new site to production and kept supporting the team after launch.
Technologies
- WordPress and PHP: a custom theme and several custom plugins
- MySQL, the new WordPress database
- Django and PostgreSQL, the original site and database
- WordPress custom post types and taxonomies
Results
PolitiFact launched on WordPress with every feature and publication intact:
- 50,000 publications migrated, each one matching the original site.
- Half the code. The new codebase is about half the size of the original, so the site is easier to maintain.
- A newsroom on WordPress. The Poynter team now runs its fact-checking day to day in WordPress, with admin tools built around how it works.