Ever needed to be able to access your WordPress data and run a loop OUTSIDE of your WP install? Here’s a code snippet which allow you to run a WordPress loop on any PHP file, even outside of your WordPress install.
Do you need to exclude a particular category of posts from display on the WordPress loop? If yes, here is a handy code snippet to do so.
If you want to be able to easily display only the first X characters of your post title, I git something in store that might interest you. Just read this recipe and enjoy!
By default, the loop is the easiest way to display WordPress posts. Though, we can create a shortcode that will make post displaying ven simpler. Perfect for sites who are using WordPress as a CMS!
When working with WordPress queries, it may be very useful to be able to clone, store and restore $wp_query. This is exactly what we’re going to see in this recipe.
Custom fields are definitely very useful and are used on many WordPress-powered blogs. In this recipe, I’m going to show you how to easily get custom fields values outside the loop.
WordPress loop is very powerful, as well as the query_posts() function, which allow you to specify some parameters for the loop to retrieve posts. Though, there’s no built-in function or parameter to get posts between two dates. Let’s solve that.
Most WordPress users are using custom fields to display thumbs on their blog homepage. It is a good idea, but do you know that with a simple php function, you can grab the first image from the post, and display it. Just read on.
Do you ever wished to be able to use WordPress to list future events? This can be very useful for exemple if you’re using WordPress for a band website and like to list your future shows.
Two days ago, I told you how you can easily get a list of posts having a certain custom field. One of my readers, csseur3, asked how to get a list of post having a specific custom field + a specific value. Here’s how to do it.