[wp-hackers] Back on the plugin scene -- some questions

Lutz Schröer latz at elektroelch.de
Sat Dec 29 16:57:23 GMT 2007


Stephanie Booth wrote:
> 2. Is feed or not?
>
> if(is_feed()) {
> 	add_action('the_content', 'sp_embed_feed_similar_posts');
> }else{
> 	add_action('the_content', 'sp_embed_similar_posts');
> 	}
>
> Unfortunately, this doesn't seem to work. In the feed, the similar
>   
"$wp_query->is_feed" does the job.

Latz


More information about the wp-hackers mailing list