groups

name language licence
To detect if a plugin is installed... PHP Other
Creating a Multiple Script File JAVA PHP Other
Styling Images in WordPress PHP Other
Displaying Custom Fields PHP Other
Getting Custom Fields PHP Other
PostMeta Functions PHP Other
Add Social Network Links to Any Page Without a Plug-In PHP Other
Blueprint to Wordpress PHP Other

< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 >



language: PHP
licence: Other

Getting Custom Fields

options: view full snippetsend to code collector
To fetch meta values use the get_post_meta() function:

 get_post_meta($post_id, $key, $single);

    * $post_id is the ID of the post you want the meta values for. Use $post->ID to get a post's ID.
    * $key is a string containing the name of the meta value you want.
    * $single can either be true or false. If set to true then the function will return a single result, as a string. If false, or not set, then the function returns an array of the custom fields. 
	
(Continues...)