2013-02-05, 03:22:16
It is probably because the slug is always the main page, not the sidebar, so if you call the sidebar as a page, it your plugins sees it as the main slug. It is a bit annoying.
If you need to insert or replace content and not actually do filtering, use the index-pretemplate hook and $content global.
Some plugins use filters wrong and are bad examples of patterns. Filter hooks are for filtering data not outputting data.
If you need to insert or replace content and not actually do filtering, use the index-pretemplate hook and $content global.
Some plugins use filters wrong and are bad examples of patterns. Filter hooks are for filtering data not outputting data.