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 [...]

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 [...]

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 [...]

Create a Gmail RSS Feed with PHP

gmail-logo

This cool PHP function will create an RSS feed from the email in your Gmail inbox. It’s a good way of including your mail with all the other content you aggregate in your RSS reader. The PHP Function Rather than copy the following code, you should download the code below. <?php function checkGmail($username, $password) { [...]

Twitter Style Time: “Posted n Seconds/Minutes/Hours/Days Ago” (and WordPress Shortcode to Reference Other Posts)

twitter-clock

The Twitter and Facebook style of referencing time since a post was published is becoming increasingly popular. Basically, instead of a standard date and time, both platforms will display a post timestamp in simple language (example: Posted 5 hours ago, Posted 2 days ago, Posted 15 seconds ago… and so on). This timestamp functionality is [...]