WordPress has embraced the mobile revolution from the first moment. We have apps for iOS or Android and all the WordPress blogs can be accessed in iPad format. We also have in WordPress core a variable to detect if the user is visiting the site using an iPhone device. In this tutorial we will learn how to apply a class using WordPress’ body_class based in that variable.
You surely ran into this sometime: you’ve a hierarchical taxonomy in WordPress like Categories, you check the child terms and leave the parent terms unchecked. Next time you save the post, the hierarchical structure is broken and child items are positioned on top of parent items, like the image above on the left. In this tutorial we’re going to see how to fix this for WordPress categories and any hierarchical custom taxonomy so that the terms are displayed like the right box in the image above.
While developing a WordPress theme for a sites network where the built-in calendar widget would be ocassionally included, a special background needed to be applied for the widgets area when the calendar was active, so I needed to detect if the calendar widget was active or not. In this tutorial we will learn how to detect which widgets are active in each sidebar.
If you ever found strange that you could edit the terms of a custom taxonomy for a custom post type using the Quick Edit link but you couldn’t see the terms applied in the columns, you’re not alone. That’s why in this tutorial we will learn how to display those terms in the list view for our custom post types.
Read more
This is the last roundup from content published on 2010 on ILC and it’s dedicated to WordPress. During 2010 WordPress reached version 3.0 gaining custom post types, menus, shortlinks and custom backgrounds and headers, as well as the merge of WordPress MU and WordPress. 2011 is awaiting the release of 3.1 with some other great features so this will definitely be an exciting year for WordPress and developers community.
Permalinks are one essential part of any WordPress installation to have a example.com/nice-url/ instead of example.com/?p=378.The translation of the ugly looking URL into the cute URL is performed by the Apache server instructed by the rewrite rules in the .htaccess file. Even though WordPress can write the proper rules, there are some rules that are said to optimize the redirection and thus the page loading time.
Read more
The excerpt is great for magazine sites where only a small bunch of words can be displayed on the home page. However, the lack of a character counting functionality for the field makes it hard to know how many you already typed in. In this tutorial we will learn how to easily add a character counter for the excerpt.
Read more
A friend asked the other day how to create a featured posts section without using plugins, since most of WordPress plugins that you can find to create featured posts are a bit bloated, which isn’t neccesarily bad, since plugins authors try to address almost every situation in order to provide a more useful plugin. The drawback (with plugins in general) is that you end up with a lot of options that you seldom use. In this post we will learn how to create a featured posts section, using WordPress sticky posts and how to integrate them in a slider, using jQuery Cycle.
Read more
Just in time for thanksgiving, WordPress makes version 3.1 available for download. The new version has some awesome enhancements such as Post Formats, a new dialog for link creation, Admin Bar, faster password reset, multi-taxonomy queries in the core and index pages for custom post types.