Quick Tip – Convert WordPress Post to Page, Custom Post-types & Vice-versa


Quick Tip - Convert WordPress Post to Page & Vice-versa

This is a simple tip hence this article will be short and succinct.WordPress treats post and pages as the same - both are stored in the wp_posts table.The table column post_type is what distinguishes them.Posts have a post_type column value of post while Pages - page.To convert a post with say ID 73, run the SQL query below.[sql] UPDATE database_name.wp_posts SET post_type = 'page' WHERE wp_posts.ID = 73; [/sql]To … [Continue reading]

How to Setup PHP Code Sniffer in Phpstorm on a Windows Machine


Installing PEAR package manager

I have heard and read so many positive reviews on PhpStorm IDE in the past. I didn't bother giving it a try as I was a long time and satisfied user of Aptana Studio. I recently stopped using Aptana for PHP development because I got tired waiting for an update to support PHP 5.4 and later.At last, a chance to try out PhpStorm. So far, I am quite satisfied and happy with it hence I purchased an academic License to continue using it after the … [Continue reading]

How to Change WordPress to a New Domain without SEO loss


How to Change WordPress to a New Domain without SEO loss

I recently changed, renamed or move my blog to a new domain. I was afraid my blog traffic and search engine ranking would be adversely affected by the domain name change. It's now over a week and so far, my blog SEO ranking and traffic wasn't affected.In this article, I will show us how to change a WordPress powered site to a new domain without losing SEO.Before you begin the process of changing WordPress domain name, ensure the new … [Continue reading]

Why i Renamed my Blog to w3guy.com


w3guy.png

I was a 17-year-old boy when I started blogging. I chose the domain name Tech4sky.com for this blog because i wanted to write about all things technology. Tech - Technology. 4sky - Derived from my nickname collizo4sky from secondary school (high-school).As God would have it, my focus shifted to web development and programming hence a need for a change of name.My blog articles are web development related except for a few reviews on … [Continue reading]

Client-Side Form Validation with HTML5


When building web applications, it is important you take security seriously, especially when it has to do with collecting data from users. It is a common maxim in security to trust nobody, hence never trust the user to enter correct or valid form values. For example, in an email form field, instead of entering a valid email address, the user might enter an invalid one or malicious data obviously ignoring the intent of the request.When it … [Continue reading]

A look at Hooks in Genesis Framework


wordpress-plugins-for-genesis

Hooks are provided by WordPress to allow your plugin or theme to 'hook into' the rest of WordPress. With hooks, you could execute code snippet in a given area of WordPress core in order to modify, change and remove certain operations in WordPress. There are two kinds of hooks: the Action and Filter. The former execute codes in a PHP function at specific points throughout the WordPress Core while the latter replace specific data (such as a … [Continue reading]

Hurry – Get a .Com, .Net, .Org Domain name for just $1


Media Temple a trusted hosting company by designers and developers are celebrating the first anniversary of their CloudTech Premium Support services. For today only, register a .com, .org, and .net domains for just $1 only. Click here to get your domain for just a dollar. Promo code is Domain1 Looking for a hosting company that doesn't suck? join me and other Happy developers, designers and bloggers using Media Temple hosting. … [Continue reading]

World Cup 2014 Match Fixtures WordPress Widget


FIFA World Cup 2014

While reading Hacker News, I stumbled upon an API for the World Cup that scrapes current match results and outputs match data as JSON.You can get the following World Cup data from this API:All match data, updated every minute Today’s matches Tomorrow’s matches Matches for any country by entering their FIFA Code The current match if a match is happening, otherwise nothing. Results for group stage (wins, losses, draws, goals_for, … [Continue reading]