Understand WordPress tags

WordPress template tags

Like most newbie, before I start develop WordPress theme from scratch, I started with getting a framework from others, and apply design to it. Though it saved a few hours of my time cracking my head knowing how the tags works. Until the day I found and understand how understand WordPress tags from its template tags page, I keep referring back from time to time.

WordPress tags
At first, I was quite confused with all the writing and PHP array it has in there. After a long time, it is actually quite simple to understand and apply. Read on the page, it will explain how each array means and how it work.

It may be confusing when it written:

<? php $defaults = array( 'menu'=>'Main Menu', 'container'=>'div', 'container_class'=>, 'container_id'=>, 'menu_class'=>'menu', 'menu_id'=>, 'echo'=>true, 'fallback_cb'=>'wp_page_menu', 'before'=>'<span>', 'after'=>'</span>', 'link_before'=>'<span>', 'link_after'=>'</span>', 'depth'=>0, 'walker'=>, 'theme_location'=>'theme'); ?>

Scroll down the page, it will explain everything in details :) Just slow and easy, don’t get too rush or you may get frustrated.

Like all CMS may have – Limitation. Unless you are building your own CMS system, you may have some obstacle when you want some function that doesn’t have in WordPress. Of course, before you think about plugins, you may consider looking into their function reference. There are lots of way to twist a function to fit your need.

HTML5, CSS3?

It is all about the latest and best code for the web developer. Nowadays, all web developers are talking about HTML5 or CSS3 and then more… I was and still wondering, do I need to take action onto them yet?

HTML

So far, I haven’t really thought about going in depth with both of them. I would rather spend time on rack card printing on promotion and marketing the business instead :P

HTML5 is not fully ready yet. It will be fully support only on 2022. 2022 is a long time, I am already 38 year old by that time, and I probably not venturing on my seat anymore.

In this 4000+ days, all web designers and developers are screaming and praying very very hard for the disappearance of IE6, and if it doesn’t, we will go through this same situation today, again.

Browsers

I believe due to the unstable of HTML5 and CSS3 rendering, most browsers don’t dare to go further than the already-been-applied CSS3. Not much browsers are taking risk on this one. Oh, by the way, Apple recently launch a HTML5 demo page Looking good, like the rest of the browsers, too. No risk :)

How WordPress 3.0 menu helps

WordPress 3.0 “Thelonious” has just hit the Internet few days ago. I did not upgrade yet, because it seems unnecessary for me at the moment. But somehow, I made the upgrade on all localhost, to test and to built better framework for myself.

There are, a few features that saved my time to work on and to explain. Here are them…

Menu ordering

WordPress 3.0 menu

I’m sure one of the most talked about features in WordPress 3.0 is the menu. I’ve just made some learning on it. Though it may give me headache (multi-multilevel dropdown menu for some newbie) on how many level to do with.

Page redirection

WordPress 3.0 custom linkThis is related to the menu function. Previously, if you notice, many theme comes with an instruction telling you how to use custom field to do re-direction. Key in “redirect” for name then key in the address in value, change the page template. Well, no biggy now, just a link and name of the link it can be up in your menu by your order.

Now I know why woothemes become so huge with just a WordPress theme :)

Page attributes

WordPress page attributesSince you can actually order your menu and place any page as parent and child page. You don’t really need the page attribute.

Unless you want to make it easier for you to not use “search” and go straight to clicking the page, you now don’t need to even care about the “Parent” or “Order”, they are just unnecessary in WordPress 3.0. The only thing I can think of using them is… Neatness.

If each major release can help so much, I think it worth the upgrade time. Beside, it only takes about 3 to 6 months for a minor upgrade :)

Lifestyle is keep changing

Recently I just got another wedding invitations from a friend. It is normal that at the age of 25 to 30, it is time to get married, at least that is how it used to work.

Wedding

But it no longer running that way. Some with my age are still in college. Don’t get me wrong, it has nothing wrong to be in college or university on my age today, in this time. Because it is just a lifestyle.

Lifestyle

Having a baby or not is also a lifestyle now.

We started to be taught under the tree, then a small room, to an organization to handle a whole building for our studies, then we have online study. That is a changes of lifestyle and how we behave too.

We revolve to a creature from time to time, that is so far, the revolution I know, but not the ape to man concept.

Human evolution

Now balik Malaysia?

I remember back few years, when I was browsing through YouTube, I saw a video about a minister telling another minister “Sini Malaysia, lu tak suka, lu balik China“.

While it was very clear that more than 300,000 are leaving Malaysia, now it is time to “fix” all the wrong thing. Not an outer banks foreclosures, but to not even give a cent for similar plan to go on.

Ministers agreed to keep all top students in Malaysia, so they don’t “taste” the oversea water and won’t stay there and don’t come back (I take that they forgot about how easily any talent can get a job in Singapore). The reason? To sharpen up local universities.

Yellow color

Erm… Wait… If it is yellow color, it will still be a yellow color doesn’t matter how many liter are you placing yellow color in the bucket.

Now it is very obvious the minister is saying…

Anyone who want better education, fork your own money, we government has no money already.

On the other hand…

Hm… Oh… It never change a thing since before… It’s not like you get their scholarship at all too!