Display Testimonials or Quotes from an XML File with WordPress Shortcode

testimonial-image

Our finance website – managed by my brother, Jason – formerly used WordPress posts (in their own category) to showcase individual customer testimonials. The creation of the individual posts for each each testimonial was a grossly inefficient solution because a visitor would have to navigate multiple pages to read individual endorsements. Of course, there’s easier [...]

Insert YouTube Subscriber Count or Video Views in WordPress with Shortcode

YouTubeStats

We’ve previously looked at how to include YouTube video views into your WordPress post or page with shortcode; this post will show you how to include your channel’s total video view and/or subscriber count into your WordPress website. Accessing the YouTube API via the below address will reveal numerous pieces of data pertaining to your [...]

Automate WordPress Posts to Twitter (with hastags, truncation and a short URL)

wordpress-twitter-oauth

Some time back I posted some basic code that would enable a message to be posted to Twitter using their oAuth platform. The naked code isn’t overly functional because it was always intended to be used from within another PHP application. This article is for those people that have emailed me asking how the code [...]

Add Thumbnail Image (Links) from a YouTube RSS Feed to WordPress with Shortcode

youtube-thumbnails

I’ve got a YouTube channel associated with one of my aviation websites that isn’t – or at least wasn’t – tied to our website in any way. It adds to the fractional nature of a website that already has a disconnected reach. Since we’re currently embarking on various projects that’ll give video a huge emphasis, [...]

Why You Should NEVER Post Your Email to Twitter

twitter-robot

In my quest to understand spammers, I’ve recently educated myself on a large number of techniques that they employ to search and extract emails (and other personal details) from various locations. Most disturbing is the prevalence of spammers that use various types of automated bots to pull email addresses from Twitter. This post will demonstrate [...]

Resolve Short URLs To Their Destination URL with PHP (such as T.co, bit.ly & tinyurl.com)

scissors

In a few projects I’ve worked on recently, I’ve had to resolve short URLs to their destination URL. This post will show you how to: Resolve a single URL one level deep. Resolve a URL in a PHP loop until we reach a page that we deem to be the destination. Resolve multiple links obtained [...]

Add Your Latest Google Plus Post(s) to Your WordPress Blog (or Generate a Google+ RSS Feed)

google-plus-logo

Google Plus is an awesome platform but it’s lacking in terms of the API offerings. Simply adding something such as your last post to your WordPress blog is somewhat of a chore. This post will detail how to include your latest Google+ post titles to your page using (previously provided) WordPress shortcode. Alternatively, you might [...]

The favicon and WordPress Link Icon Shortcode (and an Online Image to Icon Converter)

faviconIcon

The favicon was introduced by Microsoft in 1999 as part of Internet Explorer 5. Uploaded to the root directory of a website, the small 16×16 image (or .ico file), would render in the favorites menu and URL address bar. Since its introduction, the favicon is being used more and more by third party applications to [...]

Determine the Status of a Remote Webpage and Retrieve the HTTP Status Code

http-header-curl

The purpose of this post is to show you how to determine the status (primarily online or offline) of a remote webpage using cURL (and other methods). This post is a precursor to the article that follows, titled “Resolve Short URLs To Their Destination URL with PHP“. For the sake of it, a small WordPress [...]

Create a WordPress Author Bio with Custom Social Links

wordpress-author-profile

The WordPress platform comes with all the user options to build a small bio on each author but it doesn’t provide the functionality to include it by default. Instead, it is up to those that build themes to incorporate these features. They often don’t. This post will show you how to include a small author [...]

Post a Form with CURL (and How Spammers Automate Spam Comments to WordPress)

wordpress-curl-form

I hate spammers. More than you. However, in order to understand them, one must learn their trade. The following code is about as basic as it gets when it comes to submitting spam comments to WordPress… but it’s interesting nonetheless (and has countless legitimate application). Don’t worry, I’m not posting anything our spamming friends don’t [...]