Category: think about
-
Theme folder clean up: story continues
Published: On Saturday, August 4, 2007
I know I have written on this topic twice before, I know it must be annoying! :-) But I feel that the moment of perfection is coming closer and closer and at the end I will have in my hand the final vision of ideal theme directory structure. -
Theme folder needs cleaning, right?
Published: On Friday, July 20, 2007
Today I want to say a few words about the files located in typical theme folder. Before all I think that after opening this folder, you will see just a mess, mass of non-ordered files, the pile of randomly sorted files. The more often I work in template folder (what's actually almost always if I work with WP), the more I don't like this view. -
Boolean or Integer?
Published: On Wednesday, June 6, 2007
I solved a puzzle today where figured before all thewp_list_categories()
function. When I looked at the parameters one thing attracted my mind. Look at the call from default Kubrick template in WP 2.2.< ?php wp_list_categories ('show_count=1&title_li=<h2>Categories'); ?>
This code I had before my eyes and thought about the first parameter.
show_count=1
. „What does it mean?“ – I asked myself. „What's the sense in showing the only category, why not to show all of them? But… I looks like it's not woking through.“ Then I got it, you know.1
fromshow_count
parameter means a boolean value, not a count, not a number of something. The „1“ doesn't mean one as a number, the „1“ means „yes“, „true“.