Carla Izumi Bamford - Designer & Developer

How to use UTF-8 on XAMPP

How to enable UTF-8 charset on XAMPP.

08/11/2014

WordPress Meetup Tokyo 2014

WordBench Tokyo 2014

I finally went to my first WordPress meetup.

I have always been rather curious about Wordcamp and events related to WordPress. I’ve known WordPress for 5 or 6 years but it exists for more than a decade. And started using WordPress a lot more recent, and all those years I missed my chances to go.

But then I found an upcoming event for WordBench Tokyo. I am still trying to figure out the difference between WordCamp and WordBench. Both are official but I think WordBench is only in Japan. Both are very similar because people gather to the community because they are interested in WordPress.

(more…)

07/07/2014

WordPress custom query with pagination

query_posts() for WordPress can be very handy when you want to control the contents. There is the posts_nav_link() links that works just fine, but the paginated function works great when you have quite a few posts to pull. So to start with the generic query code.

So there is the custom query and the main query loop in the start. And by default, WordPress uses the main query to determine pagination, and when you use a custom query, you create a new and entirely separate query.

And what happens is that even though you have paginated links, the link just loops to the same page. The solution was rather simple for this. Passing correct parameter for pages to the custom query like shown here:

At the end of the query, add wp_reset_query(); to make sure to reset the loop.

///Tested on Version 3.9.1

29/05/2014