This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Shortcode in customfield soes not show up in results

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

#21959
Ernest MarcinkoErnest Marcinko
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;
}