Use global linking options per post type

This commit is contained in:
Brian Miyaji
2014-08-14 19:34:42 +10:00
parent 3eba75ca36
commit 6f49c5e0fe
14 changed files with 56 additions and 80 deletions

View File

@@ -12,7 +12,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
$defaults = array(
'id' => get_the_ID(),
'index' => 0,
'link_posts' => get_option( 'sportspress_event_link_staff', 'yes' ) == 'yes' ? true : false,
'link_posts' => get_option( 'sportspress_link_staff', 'yes' ) == 'yes' ? true : false,
);
$staff = array_filter( sp_array_between( (array)get_post_meta( $id, 'sp_staff', false ), 0, $index ) );