Uploaded May 2013 | Updated November 2026, 6 hours ago
Let's start filling out our widget class.
What's this series about?
This series will walk you through creating a basic Wordpress widget from scratch. The widget will loop through and grab posts based on view count. View count functionality was added to our theme in Part 20 of the Wordpress Theme Tutorial series. If you just want the functionality, you can download a plugin that I put together that uses the same method.
AwfulMedia's channel publishes web development video tutorials on HTML, CSS, WordPress, and more. Be sure to subscribe to AwfulMedia for more goodies!
View Count functionality tutorial:
youtube.com/watch?v=QRU3TU7Fm_A
Download the AM Post Views Plugin:
awfulmedia.com/downloads/plugins/am-post-views.rar
Wordpress Codex:
codex.wordpress.org/Widgets_API
Good resources for understanding PHP Classes:
PHP Manual:
php.net/manual/en/keyword.class.php
Stackoverflow:
stackoverflow.com/questions/2206387/what-is-a-class-in-php
Edrackham:
edrackham.com/php/php-class-tutorial
---
Twitter:
twitter.com/AwfulMedia
Facebook:
facebook.com/AwfulMedia
Website:
awfulmedia.com
Let's start filling out our widget class.
What's this series about?
This series will walk you through creating a basic Wordpress widget from scratch. The widget will loop through and grab posts based on view count. View count functionality was added to our theme in Part 20 of the Wordpress Theme Tutorial series. If you just want the functionality, you can download a plugin that I put together that uses the same method.
AwfulMedia's channel publishes web development video tutorials on HTML, CSS, WordPress, and more. Be sure to subscribe to AwfulMedia for more goodies!
View Count functionality tutorial:
youtube.com/watch?v=QRU3TU7Fm_A
Download the AM Post Views Plugin:
awfulmedia.com/downloads/plugins/am-post-views.rar
Wordpress Codex:
codex.wordpress.org/Widgets_API
Good resources for understanding PHP Classes:
PHP Manual:
php.net/manual/en/keyword.class.php
Stackoverflow:
stackoverflow.com/questions/2206387/what-is-a-class-in-php
Edrackham:
edrackham.com/php/php-class-tutorial
---
Twitter:
twitter.com/AwfulMedia
Facebook:
facebook.com/AwfulMedia
Website:
awfulmedia.com





![Unity C# Beginner Tutorial - Creating a Class and Variable (Part 02)
Learn how to create a class and initialize a variable in part two of Introduction to C# in Unity.
Introduction to C# in Unity is a series that aims to teach newcomers, or maybe even those not-so-new, C# in the Unity environment. In this series well not be creating the next blockbuster mobile game or an MMO, but well be learning the fundamentals so that we can create awesome games using Unity.
All serious developers had to learn the fundamentals and I bet theyre wishing they had a simple way, such as this series. If youre serious about game development, especially in Unity, this is where you start. Game development isnt easy, though, so make sure youre ready to do some work!
Unity gives you the power to create games that are restricted only by your imagination, but even cooler than that, you can port them anywhere! With support for PC, Linux, Mac, Android, iOS, Windows devices, Xbox, Wii U, PS3, and more still on the way.
Please take a second to answer three questions and give feedback for the future of this series.
http://goo.gl/6DVm5d [Google Forms]
Download Unity: [FREE]
http://unity3d.com/unity/download
Unity information:
http://unity3d.com/unity
Follow me on Google+ and Twitter!
https://plus.google.com/+AustinGregory
https://twitter.com/AwfulMedia Unity C# Beginner Tutorial - Creating a Class and Variable (Part 02)](https://i.ytimg.com/vi/qArKtZLwoA4/mqdefault.jpg)




