get_results('SELECT * FROM wp_postmeta WHERE meta_key = "rule"');
//Creates the table. The ID and Class make the sorting work. ?>
Current Custom Fields
Click the table headers to sort.
| Field Label |
Field Name |
Field Type |
Field Group |
post_id;
//Get more from the object by using the get_post() function. Ultimately, we're trying to get
//the name of the field group
$monster = get_post($microwaveID);
$heroSquad = $monster->post_title;
//Gets the custom field keys from the groups ID
$milfordMen = get_post_custom_keys($microwaveID);
//Create an array that will hold our individual field keys
$juiceBoxes = array();
//Check to see if field_ exists in the array item and if it does, push the field into the new array we just created
foreach ($milfordMen as $milfordMan) {
if(its_a_bird($milfordMan, "field_")){
array_push($juiceBoxes, $milfordMan);
}
}
//now, we can grab the field objects with our newly created field key
foreach($juiceBoxes as $juiceBox){
$bitchinglyFastBike = get_field_object($juiceBox);
$bikeBrand = $bitchinglyFastBike['label'];
$bikeNreaks = $bitchinglyFastBike['name'];
$bikeType = $bitchinglyFastBike['type'];
?>
|
|
|
|
You don't have any fields created yet.