Blog

Posts by William Tam

APIs, WordPress Tips and Tricks

Taking Control of the WordPress Scheduler — The Basics

The WordPress scheduler is a tricky beast. ‘WP-Cron‘ as configured by default can alternately fail spectacularly with a ‘missed schedule’ error on a post you were depending on publishing at a specific time, or slow down your server to a crawl. On the other hand, with proper configuration on the server end and clever development in your plugins, the scheduler […]

Read More

APIs, Inside IEG

PBS Logins on Thirteen.org = THIRTEEN Passport

The smart people at the Public Broadcasting Service have built a system to provide video-on-demand for members of PBS stations on PBS.org. We call this system ‘Passport‘ — since it’s a benefit for members of individual PBS stations, we refer to it at WNET/Thirteen as ‘THIRTEEN Passport’, while another station such as Oregon Public Broadcasting calls it ‘OPB Passport’. This […]

Read More

APIs, WordPress Tips and Tricks

A Guide to Custom WordPress Admin Columns

I recently setup a custom post type (CPT) to manage ‘Pledge Premiums’ – IEG’s primary work is for public television (particularly for New York, New Jersey and Long Island), and the premiums are the thank-you gifts that our members get for making a pledge. I wanted the list of premiums that appears in the WordPress admin to display custom columns […]

Read More

APIs

Setting up an AWS S3 bucket for read-only web access

We recently needed to setup a podcast hosting solution with our own hostname, and we chose to use an AWS S3 bucket. It was much harder than we expected, mostly because the documentation was confusing and scattered. What we wanted was an S3 bucket that would be available at a specific hostname – lets call it ‘files.xyz.com’ – where a […]

Read More

APIs, WordPress Tips and Tricks

Using oAuth in WordPress Plugins, Part 2: Persistence!

In my previous post we setup a basic oAuth connection between our plugin and Google. Within a post, you could log into Google and get info about a YouTube video to import into your post. Unfortunately, this means that every time you want to do anything with YouTube you have to log in again. What if you want to schedule […]

Read More

APIs, WordPress Tips and Tricks

Using oAuth in WordPress Plugins, Part 1: The Basics

[UPDATE: — part 2 of this post is here.] WordPress is pretty good at making it easy to talk to outside web services. For instance, oEmbed lets you drop a link to a YouTube video onto your post and viola! there’s your video player dynamically rendered. But what if I wanted to manage my YouTube videos from within my WordPress […]

Read More

APIs, SEO and Content Marketing, Talking Tech

Using Google Tag Manager for Custom Event Tracking

Google Tag Manager (GTM) can be a very powerful tool for managing analytics code, tracking bugs, and custom event tracking such as transaction progress. Instead of dropping separate codeblocks for Google Analytics, other analytics providers, or tracking JavaScript on every page, you can use a single GTM codeblock on every page of your website (easily done if using any sort […]

Read More

WordPress Tips and Tricks

Using WordPress Transients to Fail Gracefully

A long-standing mantra for web developers has been to ‘fail gracefully’ – if you have some feature on your website that doesn’t work in an old browser, make sure the visitor can still read your text; if network congestion prevents images from loading, etc. WordPress websites often depend outside services like Disqus for comments, Twitter for feeds, AddThis/Sharethis for sharing […]

Read More