This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this function gets staff data from a staff database and displays it. | |
// front-end wise we will get a sweet "select post" box in the admin gui. from here we select the staff member and that person is displayed on this page. | |
// And yes. the values could be imported a lot prettier. You do it! | |
$staff_selectors = simple_fields_get_post_group_values(get_the_id(), "Personallistning", true, 1); | |
$staff_count = 1; | |
foreach ($staff_selectors as $staff) { | |
foreach($staff as $staffmember) { |