The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
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() { |
<?php | |
class acf_ms_taxonomy extends acf_field | |
{ | |
var $defaults; | |
/* | |
* __construct |
<?php | |
class acf_ms_taxonomy extends acf_field | |
{ | |
/* | |
* __construct | |
* | |
* This function will setup the field type data | |
* |
<?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+ |
/*---------------------------------------------------*/ | |
/* 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 ( |
/** | |
* Compile Sass. | |
* | |
* https://www.npmjs.com/package/gulp-sass | |
*/ | |
gulp.task( 'styles', function () { | |
gulp.src( paths.styles ) | |
// Notify on error |
function prefix_reset_metabox_positions(){ | |
delete_user_meta( 1, 'meta-box-order_post' ); | |
delete_user_meta( 1, 'meta-box-order_page' ); | |
delete_user_meta( 1, 'meta-box-order_custom_post_type' ); | |
} | |
add_action( 'admin_init', 'prefix_reset_metabox_positions' ); |