Article Feed

Category Wordpress

{0}

Number to text function, to render the number in words

Simply put, this function displays the total comments in your blog in words instead of a number. All you have to do is to copy the funtion below into your functions.php file.
{3}

Reverse Order in comments

Most wordpress themes (nearly all of them) display comments in an ascending order. That is the first comment is on top and the latest at the bottom of the page. If you are anything like me and want to dig into the latest comment right away, you would prefer a reverse ordering of comments. This is a preferred approach in popular blogs, as otherwise you have to literally scroll down zillions of comments, to finally reach the latest..

onetwothree

While achieving this in PHP is childs play, accessing a couple of functions in WP took some hunt and peck approach. I finally managed to locate the important functions that would get us the desired look.

{0}

Get Path

One cannot call an image directly in wordpress in your theme files. For instance I cannot actually place an image with the command this is an image When the page is displayed, nothing happens. This is because of WP taking into account the complete URL and not just referential paths. By providing the correct URL, it would make the task simple. The function getpath(); gets the full base path using the builtin wordpress "TEMPLATEPATH" function. It then substitutes the base path with the URL.
{0}

Random Anything

Do you like the idea of flipping pictures? I do. I think it creates a nice feeling of freshness without too much investment in creating actual content. Its actually very easy to implement.. Without much ado, lets dig in..
{0}

Organizing your theme folder

Hello, its wednesday again.. Happy Halloween.! Today, I shall be giving out a tip on how to organize your theme folder, in wordpress so as to get a grip on what you are doing. This is not so much wordpress, as more of a best practice..
{1}

Managing state in wordpress

Sometimes we want to display a different button for when you are logged-in (logged-in state) and another for when you are not.. (See pictures) loginbtnlogoutbtn
{0}

Is your site i-phone ready?

In an ideal web world, all websites should display the same in any media or device.. (screen, printer, mobile, speech synthesiser etc. etc.) This actually helps a lot of readers recieve the website in a manner that is correct for them. What do I mean? The sight impaired can either recieve a site in a braille friendly manner or listen to the site read out to them in an audio format. (text to speech.).
{3}

Selective Content in Wordpress

I was reading David Airey's post called "What are your favourite creative quotes" and having a good laugh at the "You cant polish turd" quote, when I came upon his concern about including quotes in every footer. He definetely expressed a bloggers genuine nightmare of too many outgoing links. I started to type my tip in his comments page, when I figured that the larger population may benefit with this tip. The solution is very simple, and which I have used quite a bit in the Chilligavva site design.