Snippets

How to show multiple pages on one page

code How to show multiple pages on one pageAs we know, query_posts is awesome. We are not only be able to retrieve posts but also pages by specifying its IDs on your theme templates. However if we want to multiple pages by using query_posts,the first thing we guess won’t work but here how to achieve it.

Read more

How to limit the characters on post title

thumb How to limit the characters on post titleSometime, especially news type of contents, titles of post can be long and mess your neat layout. This is how to limit the post titles.
Read more

How to exclude specific categories from the_category()

code How to exclude specific categories from the category()The templates tag, the_category(), is very handy to output all categories to which a post belongs. However, sometimes, we don’t want to show the all cateogries when we use some categories for admin purposes. For example, the popular plugin, Featured Content Gallery requires you to specify a category for the featured content and you don’t want to show the featured content category in the list, and so on.

Read more