Post Formats – More Creative Ways For A Theme


First day of our Advent Calendar we show tiny code snippets and brief informations for the Post Formats from WordPress version 3.1.

Some theme authors wanted more defined formats - they wanted the feature "post formats". This new functionality will be available in WordPress 3.1 and displays an additional meta-information. The Codex for this functionality is available already, and now it's up to the theme authors to use this new feature.
Continue reading …

Memory Size of xxx Bytes Exhausted – It’s Really Annoying


Since the release of version 3.0 of WordPress more people are seeking for help because of this problem: My memory limit is exhausted! I also had some problems while testing my Plugin Codestyling Localization with the new version when it was editing a large Plugins or WordPress itself.

So I started to research the problem, read other articles about this topic, made some tests and found out some surprising results.
Continue reading …

Custom Post Type and Permalink

Since WordPress 3.0 you can use Custom Post Types and you can define your own types of content - it's more like pages than posts! Thereby you can use automatically the Permalink structure of your WordPress installation. That means, if you create a new post type, you can use Permalinks.

But the Permalinks only work if you recreate the Rewrite Rules of WordPress - that's why many users initially have problems with it. If you create a new post type you probably get a 404 if you open this page because WordPress doesn't know the URL-structure in your Permalinks since you didn't create the Rewrite Rules again.

The easiest way is to safe the Permalink structure in your settings again. Alternatively you can include in your Plugin or Theme the function flush_rewrite_rules(). This enables to create the Rewrite Rules again. Important: Flush rules only on activation or deactivation. Don't do it on any other hook.