add_filter problem
-
I wrote a plugin which is supposed to filter my post_content and add if applicable a footer to it. What I am doing is, inside the filter I grab
$GLOBALS['wp_query']->post->ID
and perform a couple database queries to check if the footer applies to this post.It’s nothing special really.
To apply the filter I did this underneath:
add_filter('the_content', 'my_filter', 2);
add_filter('the_excerpt', 'my_filter', 2);
The problem is – on static content pages (where the filter does not apply anyway), all works well. However, when I am on my blog’s frontpage or on an entry page, it does not display any categories, blogroll and archives.
I have no idea why.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘add_filter problem’ is closed to new replies.