26 Comments
RSS feed for comments on this post.
Trackbacks on this post
Links to this post will be listed here. You an add your own by linking to the TrackBack URL
- Show posts with a specific custom field - Fun with WordPress
[...] How to Only Show Posts With a Specific Custom Field. [...]
- Ten Useful WordPress Loop Hacks
[...] How to Only Show Posts With a Specific Custom Field [...]
- 10个非常实用的WordPress Loop技巧 | 鹏博客
[...] How to Only Show Posts With a Specific Custom Field [...]
- » Blog Archive » 10 Useful WordPress Loop Hacks
[...] How to Only Show Posts With a Specific Custom Field [...]
- 10 Useful WordPress Loop Hacks | Army-Men.us Blog
[...] How to Only Show Posts With a Specific Custom Field [...]
- 10 Useful WordPress Loop Hacks - Myfreepedia.com
[...] How to Only Show Posts With a Specific Custom Field [...]
- 10 Useful WordPress Loop Hacks
[...] How to Only Show Posts With a Specific Custom Field [...]
- SEDW.org / Useful WordPress Loop Hacks
[...] How to Only Show Posts With a Specific Custom Field [...]
- 40+ Awesome Tutorials and Techniques For WordPress Theme Developers | tripwire magazine
[...] Only Show Posts With a specific Custom Field Value [...]
- 40+ Awesome Tutorials and Techniques For WordPress Theme Developers | huibit05.com
[...] Only Show Posts With a specific Custom Field Value [...]
- 10 WordPress ‘HOW-TO’ to Give it the Quality it Deserves
[...] Source: Only Show Posts With a Specific Custom Field [...]
- 10 WordPress ‘HOW-TO’ to Give Your Blog the Quality it Deserves | huibit05.com
[...] Source: Only Show Posts With a Specific Custom Field [...]
- 10 WordPress ‘HOW-TO’ to Give Your Blog the Quality it Deserves | SeanBurdick
[...] Source: Only Show Posts With a Specific Custom Field [...]
- Blog – Velagapati - 300+ Resources to Help You Become a WordPress Expert
[...] How to Only Show Posts With a Specific Custom Field – A quick tutorial for showing posts with content in a specific custom field. [...]
- 20+ Tutorials For WordPress Theme Developers | oOrch Blog
[...] 16.Only Show Posts With a specific Custom Field Value [...]
- The Ultimate Wordpress Developer Toolbox | tripwire magazine
[...] Only Show Posts With a specific Custom Field Value [...]
- WordPress 300+ Collection of Amazing Resources | Amazing and Inspiring Design
[...] How to Only Show Posts With a Specific Custom Field – A quick tutorial for showing posts with content in a specific custom field. [...]
- Get Posts With A Specific Custom Field And Specific Value
[...] Code explanation. Definitely nothing hard here. To get only posts with a specific custom field and specific value, you have to use the query_posts() function with the meta_key and meta_value parameters. The meta_key value is the name of the desired custom field, and meta_value is the desired value. Credit To : http://www.johnkolbert.com/wordpress/how-to-only-show-posts-with-a-specific-custom-field/ [...]
- FAQPAL Blog
[...] Source… [...]
- 300+ Resources to Help You Become a WordPress Expert | LeVoltz - iPhone Games, Engineering Projects, Wordpress Themes
[...] How to Only Show Posts With a Specific Custom Field – A quick tutorial for showing posts with content in a specific custom field. [...]
- Le petit journal de Wordpress #1 -- css 4 design
[...] des champs personnalisés (Custom fields) à l’extérieur de The Loop ou bien n’afficher que les billets avec un champs personnalisé spécifique, et bien plus [...]
- 300多种可帮你成为WordPress专家的资源 | 上海网站建设,上海网络公司
[...] How to Only Show Posts With a Specific Custom Field (如何只显示具有特殊自定义字段的文章) – 快速教程:只显示在特殊自定义字段内的文章。 [...]





Tomas Buteler said:
Just followed here from Wp-Recipes…
This is a great function, thanks for sharing!
Just a heads-up, though, which you can correct me if I’m wrong: I tried to use it a while back and found out that it wasn’t good for the type of Custom Field I had created (I figured instead of doing ‘yes’ or ‘no’ meta values for my fields, I use the classic binary ‘0′ and ‘1′), only to find out that calling ‘meta_key=whatever&meta_value=0′ completely ignores the second parameter…
If you need to fetch custom fields whose value needs to be ‘0′, you’ll have to use a Custom SELECT query, instead.
Cheers!
on May 6, 2009 at 3:30 am
Jerry said:
John,
I’ve tested this code and it works great … however I would like to be able to sort the order of the posts as they appear on the page … i have a meta_key called “player-jersey-number” that I would like to sort the entries as they are displayed by the player’s number, not when post created.
on July 23, 2009 at 11:29 am
justgage said:
Think you just saved my bacon =D
on August 26, 2009 at 3:32 pm
pete said:
Hi John… almost what i was looking for. How would would this be updated if I only want to show posts that I’ve added 2 or 3 specific custom fields to
thanks
Pete
on October 2, 2009 at 2:03 pm