Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Executing shortcodes in Advanced Title Field & Advanced Description Field › Reply To: Executing shortcodes in Advanced Title Field & Advanced Description Field
The advanced title and content fields cannot handle shortcodes, only custom field based content. It’s because is is executed after the content filter is used.
The only way to add shortcodes there is via custom code, like so:
It may not work though, if the shortcode is registered later during the execution flow. Also, the $r->id variable contains the post ID, if that is needed.
In that case line 12 would look simething like this:
$r->content = do_shortcode('[SOME_SHORTCODE id='.$r->id.']') . $r->content;
I hope this helps!Best,
If you like my products, don't forget to rate them on codecanyon :)