Ads not showing in admin-ajax requests
-
Hello,
Fantastic plugin you have here, congratulations!I have a small issue where auto placement ads are not rendering when being fetched via
wp-admin/admin-ajax
requests. However, if I add the advertisements via shortcode ([the_ad id="15"]
) directly into the posts, it is displayed when returned viaadmin-ajax
.Do you think there is a hook/filter that is not firing in my
the_content()
call?Here is a modified version of template
admin-ajax
is returning.<article class="the-post"> <h1><?php the_title(); ?> <?php $postid = get_the_ID(); $content = do_shortcode(get_post_field( 'post_content', $postid )); $content = apply_filters('the_content', $content); echo $content; ?> </article>
Any help is greatly appreciated.
Thanks in advanced ??
- The topic ‘Ads not showing in admin-ajax requests’ is closed to new replies.