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

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

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. Update, 21st May 2013: The new favicon system – based on what is described below – [...]

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

Skype Status (Text or Image) with WordPress Shortcode

skype-logo

Skype is increasingly becoming a cost-effective means of business communication. As a business, it lessons the barriers associated with first contact and, as a consumer, it provides a safe and cost-effective alternative to traditional landline and cellular services. Apart from the personal and professional reasons I use Skype, I’m finding that I’m using it more [...]

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

PageRank API and WordPress PageRank Shortcode

page-rank

PageRank is one of those topics that’s grossly misunderstood by almost all of those that talk about it… mainly because the specifics of Google’s algorithm is a closely guarded secret. What we do know, however, is that links to your webpage from popular websites contributes towards a higher PageRank score. Incoming links to your website [...]

Get YouTube Views with PHP or WordPress Shortcode

youtube-views

Like everything Google, there’s very little that the YouTube API doesn’t offer. However, the following PHP function (and WordPress shortcode) will do nothing other than retrieve the view count given a video ID. Having just built a cool YouTube application I’ll be sure to post some code sometime in the future. YouTube Video Count Shortcode [...]

Get the IP Address of a Visitor with PHP

ip-address

There are hundreds of functions found over the web that can be used to find the real IP address of a visitor. Here’s one function that works well for me. The function searches environmental variables, validates a likely IP against PHP5′s filter_var() function and then returns the value. function get_ip_address() { foreach (array('HTTP_CLIENT_IP', 'HTTP_X_FORWARDED_FOR', 'HTTP_X_FORWARDED', [...]