Jeffri Hong

keaglez

Hi! I'm Jeffri Hong, also known as keaglez, a 20 years old geek who love the web and comic.

Sort by latest post for wp_list_categories

Posted on Programming, Wordpress and tagged with , , ,

One of my developer friend asked me if we could sort by last post using wp_list_categories function for WordPress. By default, wp_list_categories accept arguments for order by ID, name, slug, count or term_group. Order by latest post is not possible by default, but with a little of tweak using filter hook, we can. :)

First, we’ll looking at the function wp_list_categories. This function made call to get_categories to get the list of categories, which made another call to get_terms. Categories in WordPress is basically terms with category taxonomy. Finally, looking on the get_terms function, we will find some delicious filter hook that suitable for our customization.

Read more…

Happy Chinese New Year

Posted on Art, Uncategorized

Woah, long time I didn’t write anything. Well, just drop for a second to wish everyone a Happy Chinese New Year! Gong Xi Fa Cai!

View larger resolution on my Deviant Art

Blog successfully updated to WordPress 3.2

Posted on Wordpress and tagged with ,

Here is another major update from WordPress. Now, this blog has been successfully updated to 3.2. Thanksfully, nothing need to be changed in the theme. :)

A lot of changes has been made for this version, and one that is noticeable is the new look and layout for the administration area. It looks a little better. The sidebar is changed. The color of the boxes also changed a bit, it is more light. Some fonts are also changed. Overall, I liked the new look. ;)

There’s no yet compatibility issue so far is all that I can tell.

Yet another year passed

Posted on Uncategorized

Today is a mark of another year passed, I’m now 20 years old. :)

It’s a mark of another step closer to my dream, a mark where I’ll held more responsibilities and a mark of improvement to be an even better person.

Thank you every one for every single support you gave me, especially some of my precious clients which grow together with me all these times, all of my friends from all communities I participated in, my family with their never ending supports, and every one around me – thank you all. I sincerely apologies for any disappointment I have caused – if I ever.

I hope I will get better this year and I hope for all your supports again in future. :)

For this moment, I also want to specially thank a good friend from Kaskus W3 Community, idiotnesia. He created my birthday thread in Kaskus last year, but it’s so sad that he passed away later that year due to his illness. His contribution to the community is priceless, as well as the good time the community had at that time – me included. I specially thank you from the deep bottom of my heart, you will be remembered forever my friend.

Thank you.

WordPress Snippets part 1

Posted on Programming, Wordpress and tagged with , ,

Well, this will be a short list of WordPress snippets that we could use. This snippets is collected from my daily work on WordPress and should be useful for daily basis.

WordPress mail snippets

WordPress has its own improved function for sending email, it is wp_mail. We should always use this function if we wanted to send email within WordPress. With this function, we don’t need to worry much about the mail header and stuff. More over, there is plenty of filter we can use to customize it.

Read more…

Proudly powered by Wordpress