Not working in admin-ajax.php calls
-
Hello,
Love the plugin, great job.I have an issue where the plugin is not rendering in content fetched via Ajax using
wp-admin/admin-ajax.php
My code in the template is as follows:
`
$postid = get_the_ID();
$content = do_shortcode(get_post_field( ‘post_content’, $postid ));
$content = apply_filters(‘the_content’, $content);
echo $content;
`
Shortcode, content and images are returned without issue, except the share icons are not.
It seems like
the_content
filter may not be running. Do you know if the Shared Count classes are being loaded is_admin()?Thanks in advance ??
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Not working in admin-ajax.php calls’ is closed to new replies.