The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
| /*---------------------------------------------------*/ | |
| /* Flexible Single Pages */ | |
| /*---------------------------------------------------*/ | |
| if( function_exists('acf_add_local_field_group') ): | |
| acf_add_local_field_group(array ( | |
| 'key' => 'group_550f4c3fb623b', | |
| 'title' => 'Flexible Content', | |
| 'fields' => array ( |
| <?php | |
| /** | |
| * Genesis Framework. | |
| * | |
| * WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances. | |
| * Please do all modifications in the form of a child theme. | |
| * | |
| * @package Genesis\Templates | |
| * @author StudioPress | |
| * @license GPL-2.0+ |
| <?php | |
| class acf_ms_taxonomy extends acf_field | |
| { | |
| /* | |
| * __construct | |
| * | |
| * This function will setup the field type data | |
| * |
| <?php | |
| class acf_ms_taxonomy extends acf_field | |
| { | |
| var $defaults; | |
| /* | |
| * __construct |
| add_action( 'genesis_before_comments', 'sk_related_posts', 12 ); | |
| /** | |
| * Outputs related posts with thumbnail | |
| * | |
| * @author Nick the Geek | |
| * @url http://designsbynickthegeek.com/tutorials/related-posts-genesis | |
| * @global object $post | |
| */ | |
| function sk_related_posts() { |
| //* Program Locations | |
| $program_locations = get_field( 'program_locations' ); | |
| if ( $program_locations ) { | |
| echo '<section class="location-widget widget widget_text"><div class="wrap widget-wrap">'; | |
| echo '<h4 class="widget-title widgettitle">Program Locations</h4>'; | |
| $field = get_field_object('program_locations'); |
| //* Program Faculty | |
| $faculty = get_field('faculty_listing'); | |
| if( have_rows('faculty_listing') ) : | |
| echo '<section class="row" id="faculty"><div class="wrap"><h4>Faculty</h4><div class="faculty">'; | |
| while( have_rows('faculty_listing') ): the_row(); | |