Web Developers Corner A site for developers and designers
Today (March 3rd 2013) I noticed my webpage was suddenly down, of course I thought the problem was on my server, especially since I just updated some things on it. I couldn’t find anything out of the order, and I checked some of the other sites I run on the server, they were ok. Then […]
Have you tried validating your WordPress site using the W3C validator thinking your site was up to par with today's standards? Only to see a long list of errors on your site? Don't worry, we all have been there, well most of us at least. And there is only one thing to do about the problems, fix them. If your site is using html5, then you probably have a lot of errors complaining about a bad value for your rel attributes (rel="category tag")
There is a special if/else functionality available that not many programmers know how to utilize that I now want to share with you. This function is called a Ternary operation. The ternary operation takes 3 arguments, The first which is the conditional expression, the second is what get returned if the conditional expression is true, the third if it returns false.
Sometimes you want to send mail from your php code, maybe you want to send a mail to yourself on an event or send a message to your users or subscribers, don’t fear this is not a hard task to accomplish, and as usual in programming, there is many paths to the same goal, some are not as safe […]
WordPress has built-in functionality for parsing RSS files from other sources, this means that you can fetch the latest blog posts or articles from another site and display them on your own site. We will use this to fetch a feed from an external site and display it on our site.
Today Google Play stopped providing their users with the ability to download and install Flash on their Android devices. This means Android now longer will support Flash, the number one advantage they had over iOS. This will also give HTML5 a boost in popularity.
Ancient history Nowadays many web developers around the world underestimate the impact page size has on their sites performance. Back in the days before broadband was considered a standard, people was sitting on slow internet connection with their modems. Back then web developers had to make their pages small enough for those modem users, the […]
The first major thing an invading country should do is to take down twitter to disrupt communication and spread panic amongst the population. This is common knowledge. Today I tried logging in to twitter, but I could not connect to the server, all other webpages worked as a charm, so I was sure this only […]
WordPress has a functionality called shortcodes which gives you the ability to insert generated elements into your posts just by typing in a shortcode in the text. All you need to do to make this work is to define a function in your theme’s functions.php file, and hook this funcion to a shortcode using WordPress API for shorcodes.