• I found out that if using labels, searching [cftsearch] does not work.
    I changed the source code of the plugin (custom-field-template.php) at line 3688 and it is working now:

    Old code:

    if ( !empty($val['label']) && !empty($options['custom_field_template_replace_keys_by_labels']) )
    	$key = stripcslashes($val['label']);
    $output .= '<dl>' ."\n";
    if ( $val['hideKey'] != true) :
    	$output .= '<dt><label>' . $key . '</label></dt>' ."\n";
    endif;

    Code after my change:

    /* if ( !empty($val['label']) && !empty($options['custom_field_template_replace_keys_by_labels']) )
    	 $key = stripcslashes($val['label']); */
    $output .= '<dl>' ."\n";
    if ( $val['hideKey'] != true) :
    	// $output .= '<dt><label>' . $key . '</label></dt>' ."\n";
    	if ( !empty($val['label']) && !empty($options['custom_field_template_replace_keys_by_labels']) ) $output .= '<dt><label>' . $val['label'] . '</label></dt>' ."\n";
    	else $output .= '<dt><label>' . $key . '</label></dt>' ."\n";
    endif;

    https://www.ads-software.com/extend/plugins/custom-field-template/

  • The topic ‘When using labels, searching [cftsearch] does not work’ is closed to new replies.