Plugin Author
Ajay
(@ajay)
You could write a function that filters crp_title that will then add the data from the custom field to $title
Thanks – but where would I write that code? I am using this in the template file via “if ( function_exists( ‘echo_crp’ ) ) { echo_crp(); }
}” where I want the posts shown.
I assume a more manual method is needed. Is there some documentation for this?
Plugin Author
Ajay
(@ajay)
You could add code like this in your theme’s functions.php – completely untested.
function crp_title_filter( $title, $result, $args ) {
$key_1_value = get_post_meta( $result->ID, 'key_1', true );
return $title . $key_1_value;
}
add_filter( 'crp_title', 'crp_title_filter', 10, 3 );