cred generic field view select code example
Example: cred generic field view select
add_filter( 'wpv_filter_wpv_view_shortcode_output', 'prefix_clean_view_output', 5, 2 );
function prefix_clean_view_output( $out, $id ) {
$view_ids = array(6979,'add-your-view-id-here');
if ( in_array($id,$view_ids) ) { //Please adjust to your Views ID
$start = strpos( $out, '' );
if (
$start !== false
&& strrpos( $out, '', $start ) !== false
) {
$start = $start + strlen( '' );
$out = substr( $out , $start );
$end = strrpos( $out, '' );
$out = substr( $out, 0, $end );
}
}
return $out;
}