Jon Kristian

Mixing Business with Pleasure since 1999

Category: Code (page 2 of 2)

How to Disable ipv6 for Bind on Debian

Reading Time: < 1 minute

For those of you that doesn’t use ipv6 yet there’s a chance it’s still enabled in your system. This isn’t really a bad thing but the log files might get some extra unnecessary cruft in them.

Continue reading

WordPress jquery form plugin, json parsing and IE

Reading Time: < 1 minute

I have just recently written a Web Shop plugin for some clients, but after upgrading one of their sites to WordPress 3.2.1 it made my checkout code flip backwards in ie7 and ie8.

Continue reading

wpshell & debugging wordpress

Reading Time: < 1 minute

I came across this handy little shell tool yesterday while I was looking up a WordPress function.

Continue reading

Using custom fields to sort posts

Reading Time: 2 minutes

Recently I’ve been working with a client that wanted me to create a way to sort recipes into different types of food and under different types of dishes. This had me thinking about custom fields where you have meta_key and meta_value for each key. The client also wanted to use this in other scenarios so basically i started thinking it should be sorted on categories as well. The function takes one argument which is the category slug, it will then loop through meta_keys belonging to that category, secondly the meta_values and third each posts matching that specific value.

Continue reading

Newer posts »

© 2020 Jon Kristian

Theme by Anders NorenUp ↑