Skip to content

Instantly share code, notes, and snippets.

View bonny's full-sized avatar
🇺🇦
StandWithUkraine

Pär Thernström bonny

🇺🇦
StandWithUkraine
View GitHub Profile
@bonny
bonny / gist:3830056
Created October 3, 2012 21:42
example: simple_fields_get_post_value
<?
/**
* get all values or just the from a field in a field group
* @param $post_id
* @param $field_name_or_id name as string or field group id and field id as array.
* for example array(3,2) to fetch field 2 from field group 3
* @param $single bool return a single (the first) value or all values (as array)
* @return string or array
*/
@bonny
bonny / dabblet.css
Created December 17, 2011 21:58
This is my dabblet!
/**
* This is my dabblet!
*/
background: red;
#background: linear-gradient(45deg, #f06, yellow);
min-height:100%;