PHP

  • Infinite next and previous post looping in WordPress

    It has happened to me several times in my career as a WordPress freelancer to be in need of a infinite next and previous post looping in WordPress. And I have a solution for that.

  • Access an object as an array in PHP

    Have you ever been in that position when you are working with an PHP object and you need only one single peace of the data it contains and you want to skip all that iteration part and access that data directly. I have.

  • Without a Plugin: Display Recent Comments

    This post was originally published on April 9, 2009 and is now being being republished as it has been entirely revised. The original method is removed and now replaced by a new one. WordPress ships with a Recent Comments widget, which is very handy, but on the other hand does not give you much freedom in…

  • Easy PHP II: Variables

    In the previous introductory PHP tutorial we talked about what PHP looks like and in what kind of environment it runs. To sum up, we said that we write PHP code between tags that look like this: “<?php … ?>” and we end every command line must and in semicolon (;). We use “echo” or…

  • How to Limit Content in WordPress

    This is an old article describing old-fashioned ways of limiting content. I’m publishing a new article on this topic very soon so make sure you subscribe below. Have you seen those cool magazine style WordPress themes around this days? They are just cool. You might have noticed that they sometimes show a few words of…

  • Easy PHP I: Introduction

    I’ve been involved with PHP since I got into the web design and development world. This is because since in my beginnings I chose to use WordPress as a CMS to build websites with and since that day I have been needing PHP to build WordPress themes (and plug-ins lately). I have learned a lot…

  • How to Install XAMPP on Ubuntu

    Introduction If you are a Linux (or Ubuntu) web developer or even a web designer with interest in CMS systems like WordPress, Drupal, Joomla etc., you are for sure in need of a web development environment on your work computer to test websites or themes that you built for any CMS. If you have not…

  • How to remove nofollow attribute from your WordPress blog

    As you may already know, WordPress the rel=”nofollow” attribute in comments. That makes any comment with a link on it have no significance for Google when they ranks websites. Getting rid of the rel=”nofollow” attribute is one of the tactics that many WordPress bloggers follow to get more people comment on their blogs. And in…

  • WordPress Bug: Tags do not appear under WP_Query

    WordPress has been perfect and bug-free for me. However, I discovered one lately. Firstly I came across this bug when I was developing an Gawker-style WordPress theme for a client of mine. I used custom WP_Query loops several times there and I was asked to display tags inside them too, the way Gawker does. This…