heading

How to Only Retrieve Posts With Custom Fields

One question I come across a lot regarding custom fields is how to only retrieve posts based on a custom field. For example, if a post has a custom field of “MyData”, someone might want to only retrieve that particular post. The WordPress Codex has a technique for retrieving posts based on custom fields, which consists of writing your own query and going through the results. The technique in the Codex is good, but I’ve found a re-usable way one can retrieve only posts with certain custom fields. The technique I use makes use of two custom functions placed in a theme’s “functions.php” and a custom WordPress Loop. Let’s get started — The “functions.php” file First, let’s place the two custom functions in the “functions.php” file. This file should be in your theme directory, but if it isn’t there, you can create one using any text editor. Here are the […]

[Continue Reading...]

heading
by on
April 13th, 2008
in

The people over at Viddler have released a new plugin compatible with WordPress 2.5. The plugin is at version 1.1 Beta 1 and is still undergoing testing. Here are a few things you can expect from this new plugin: Dashboard widget You can now watch, and help promote, our daily featured videos right from within the WordPress administration dashboard. There is a preference in the options panel to turn this off. Viddler videos in Add Media pop-up One of WordPress 2.5’s flagship features is the new “Add media” pop-up window when writing posts and pages. Now, you can add Viddler videos in several ways. Featured videos Like on the dashboard widget, you are now able to embed featured videos quickly. Your videos One quick search for your username, and you can page through every public video you have on Viddler and embed them in your posts. SearchThe search features lets […]

[Continue Reading...]

by on
April 13th, 2008
in

We all know what the WordPress Loop is right? If not, there are many great tutorials around the web that explain the WordPress Loop. One of the easiest ways to navigate and manipulate the loop is to use the function called query_posts. Nathan Rice calls it a WordPress developers best friend. When you use query_posts, however, you risk the following: Potential to interfere with plugins which make use of the Loop. Potential to invalidate WordPress conditional tags. Having to deal with resetting, rewinding, offsetting… I say skip query_posts. In a way you’ll still be using it, but the better (and sometimes easier) technique is to instantiate your own WP_Query object and create your own loop. Creating Your Own Loop With WP_Query The first step is to instantiate your own variable using the WP_Query class. What we’ll be doing in this example is creating a common feature on blogs, which is […]

[Continue Reading...]

Julien of Webinventif has created a shortcode generator for WordPress. Shortcode is like BBcode in that it provides the ability to use shortcuts to execute a block of code, rather than having to write out the block of code time and time again. Julien has made use of the new API calls within WordPress and with his shortcode generator, makes it easy as 1,2,3 to create your own custom shortcode. Although everything has been written in French, this generator looks promising. If anyone could translate this generator into English, I think there would be many WordPresser’s who would be grateful. Here is a screencast showcasing the generator in action. Shortcode generator from WebInventif.fr on Vimeo

[Continue Reading...]

by on
April 12th, 2008
in

Load Javascript With Your WordPress Plugin: Sage advice from a seasoned and proven plugin developer for WordPress. Ozh talks about some neat javacript loading options and dos and don’t s for plugin developers who need to load various javascript libraries. If you use javascript in your plugin and are not aware of wp_enqueue_script, you need to head over to Ozh’s post.

[Continue Reading...]

Two Column Themes Colourise Colourise is a two column theme which is made up of dark colors, it sports a gray colored text on a dark background. The theme comes built in with recents posts and comments listing in the footer area. Colourise Theme WP Brown WP Brown is a two column widget ready page with valid XHTML and CSS. The theme is largely made up of brown colors. WP Brown Theme Three Column Themes Grunge Style Grunge Style is a three column theme with in built support for flickr, pagenavi support, custom field options, related posts and recent comments. The theme sports a wooden background with a grunge unique style. Grunge Style Theme Blue Jeans Blue Jeans is a three column theme which is based on the popular denim. It sports the material in the background and also has trendy buttons in the sidebar headers. If you are a […]

[Continue Reading...]

I came across this blog header generator via TechWack.com Big Huge Labs is the company behind this header generator which takes an image from either your local machine, Flickr, Photobucket or a linked image and creates a custom header image for you to use on the Kubrick WordPress theme. The generator provides options to align the visible part of the image in case it needs to be cropped. You can also choose whether to add credit to the image or not. Linking to an image I found on a quick Google image search, this is what I was able to come up with. Click on the image to see the full size. Big Huge Labs allows you to edit your result, save the image or share it through links or email. You can also elect to start over if you choose. Although I hate seeing Kubrick being used all over […]

[Continue Reading...]

by on
April 9th, 2008
in

Although the FAQ on WordPress 2.5 did an excellent job of answering a ton of frequently asked questions, users chipped in via their comments and ended up asking even more questions. This post will try to highlight a few of the questions brought up in that post and explain the answers in more detail. Q. Is there a way to see a count on the number of comments you have total? A. I’ve looked around for that particular detail and it has been omitted from WordPress 2.5. However, the good news is that a ticket has already been made (Ticket #6471) According to the change history, it looks like this will be one of those things that will come along with 2.6 and not WordPress 2.5.1. Q. What happens if i don’t upgrade to WP 2.5? A. This is open to opinion but I’ll point out the obvious. If you […]

[Continue Reading...]

by on
April 8th, 2008
in

Linux.com on The new WordPress How do I like WordPress 2.5? In a word, “wow.” Thanks Chris

[Continue Reading...]

Obviously Powered by WordPress. © 2003-2013

css.php