Skip to content

Instantly share code, notes, and snippets.

@bhwebworks bhwebworks/gist:5272226
Last active Dec 15, 2015

Embed
What would you like to do?
Filter Soliloquy Featured Content Slider post data to include URL entered as Slide custom post type Slide Link
/**
* Filter Soliloquy Featured Content Slider post data to include URL entered as Slide custom post type Slide Link
* @since 1.0
*
*/
add_filter( 'tgmsp_fc_image_data', 'bhww_soliloquy_add_custom_link', 10, 4 );
function bhww_soliloquy_add_custom_link( $data, $post, $id ) {
$slide_link = get_post_meta( $post->ID, '_bhww_slide_link', true );
$slide_link = esc_url( $slide_link );
if ( !empty( $slide_link ) )
$data['link'] = $slide_link;
return $data;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.