Allowing shortcode in custom fields
-
Hi there,
I’ve been scratching my head on this one for a few hours and I don’t seem to be finding the answer.
I’m wondering whether it’s possible to allow shortcode to be used in a custom field on a post.
I’ve worked out that I can allow shortcodes in the_excerpt by using:
add_filter('the_excerpt', 'do_shortcode');
As a result of that I’ve gone on a long search for the filter that would cover the_meta or even a meta value with a specific meta key.
I’ve read through the filter reference multiple times as well as trying to find the answer in Adam Brown’s excellent list of hooks and filters, but can’t seem to see anything that would act as a filter for custom fields. So yeah, I’m feeling a little lost.
Anyone got an idea?
Cheers,
Alex
- The topic ‘Allowing shortcode in custom fields’ is closed to new replies.