Uncategorized

Conditional Comments in Javascript

Using the @ sign in javascript comments can cause an error in Internet explorer. A very good description of the so called conditional compilation of javascript can be found here.


Wordpress Problem with to long custom post type names

When using many different custom post types in Wordpress, for example when having to deal with big amounts of structured data, custom post type names can get quite long. I imported some data and automatically had them assigned to different custom post types. When wanting to output post contents, nothing could be shown. A look at the database revealed, that by default in Wordpress the post_type field in the posts table is a varchar(20)…

You have two solutions now, either change the post_type field size or use shorter custom post type names, if you can.