Theme

Inside of WordPress are several of JavaScript libraries available, you can use them easily and you don't need an extra Theme or Plugins. Also, this is the recommended approach to enable libraries , so they won't be loaded more than once. Some notes on these two topics can be found in the article Use JavaScript Libraries In And Of WordPress.

But from time to time you need something specific, so I have some code snippets for you in this post now. And I particularly want to show some examples with jQuery. Many Themes and Plugins using jQuery and it is pretty easy to work with jQuery. In principle, these hooks and calls also apply to your own scripts and other libraries.Continue reading …

Sometimes you just need a list of all child categories only and nothing else. The requirements of projects can be very diverse, as the solution can, and in my case it is a small code snippet that takes care of the output of Subcategories. Something for you to play, improve and expand. Enjoy!Continue reading …

There is a lot talking about Flattr and the idea certainly is worth a try. That's why I wanted to test and integrate Flattr in our blog. However, I don't really like the Plugin and that's why I created a small little function, which integrates the button as you can see right under the tweets of each post.Continue reading …

Those who have wanted to create their Theme for WordPress quite flexible, and loves the modularization, had always to involve the path to the template. With WordPress 3.0, this will be different and it is possible to use a function, which makes it easy to load the template.

WordPress is primarily a blog platform. Not infrequently it is used as a CMS. But not just static pages play a role, but also posts, because they are giving more opportunities, having better performance and be published in feeds. Therefore, I prefer to use, in the context of WP as a CMS, posts more than the static pages. From time to time are the wishes of a navigation layout very extra odinary. And so was it in my recent project, the requirement to list the posts from each category in the navigation.
This is unusual as in the long run, you will have many posts, and the navigation will be very confusing - still, in this project it made sense, since we won't have many posts.

The small function lists the category and below the posts. There is a parameter that restricts the output of the posts, so that in extreme cases, not too many will be listed, only the last posts - $mylimit. The value -1 for this parameter provides all posts. The function itself belongs to the functions.php of the theme or in a Plugin. An exemplary use can be found below the function.Continue reading …