Function: is_category()

4 posts

Customizing the post layout (content, thumbnail) in post lists

Following the excellent javascript snippet from Rocco describing how to change the order of the content and the thumbnail, I’ll describe here the PHP way to hook into the property handling the post layout in post lists (archives, search results, …) and set new custom values, including mobile viewport detection.   By […]

Displaying a slider in your category pages

By default, the slider can be displayed before posts or pages in the Customizr theme but you might want to display a slider for a specific category (or for all). The following snippet allows you to do so in two simple steps 1 First, create a slider and grab its […]

Recent posts widget : how to display only the posts of the current category ?

If you want to display the recent posts of the current category archive, there is a simple solution. You have to filter the query of the WordPress recent post widget. (one of the built-in widgets). The filter takes one parameter : the query arguments array.   Here is the workflow : […]