function to retrieve posts with common meta value

source : wp-hackers digest # 67,12,2.

$post_type
(string) (optional)
The type of post to show.

Available options are :
post - Default
page
attachment
any - all post types
Default : post

$meta_key and $meta_value
( string ) ( optional ) Only show posts that contain a meta (custom) field with this key and value. Both parameters must be defined, or neither will work.
 
 
Creative Commons License
This work by maniac.vardhan is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
 
 

0 comments :: function to retrieve posts with common meta value

Post a Comment