Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Shortcode in customfield soes not show up in results › Reply To: Shortcode in customfield soes not show up in results
April 2, 2019 at 2:39 pm
#21959
Keymaster
That highly depends on the output HTML. You could potentially change this line:
$meta_value = do_shortcode($meta_value);
..to maybe:
$meta_value = '<span class="aspcf_'.$cfield.'">' . do_shortcode($meta_value) . '</span>';
With that, the shortcode values will be printed into a span element with the classes ‘aspcf_pricemonth’ and ‘aspcf_availability’. Now, you can use custom CSS to style them as you want, for example:
span.aspcf_pricemonth {
font-weight: bold;
color: red;
}
span.aspcf_availability {
font-weight: bold;
color: blue;
}