apply_filters doesn't work with shortcodes.
-
Hi! I updated my 1.9.x branch of NGG to newest version and there is a problem with crossposting to another services (like LiveJournal).
I use shortcodes in my posts like [singlepic id=943]. Problem is that in crossposted post shortcodes doesn’t change to pictures, I see only text [singlepic id=943].
Crossposting plugin use the following command:
apply_filters('the_content', $p->post_content)So, it worked with old version NGG and doesn’t work with a new one.
I try to change code:
$the_event .= do_shortcode($p->post_content); $the_event = apply_filters('ngg_content', $the_event); $the_event = apply_filters('the_content', $the_event);But it doesn’t processed NGG shortcodes.
Can you advice me, how to improve apply_filters to convert [singlepic id=943] to html?
The topic ‘apply_filters doesn't work with shortcodes.’ is closed to new replies.