In my 1.2 blog I added
require('./wp-blog-header.php');to remove posts from that category.
With the new template system, my main index file is in the wp-content/themes directory. The main $posts query is done by the main index.php provided in the core. If I have the code inserted in my theme, it does nothing.
I’m assuming that I’ll have to move my category filtering code to the main index.php, which will be overwritten each time I upgrade.
Is this just a casualty of war, or is there a better way in 1.3?
I also have some crafty code above that spot that redirects certain IP blocks elsewhere. I’d like to keep this intact, too.
- The topic ‘Filtering Main Post Loop & Themes’ is closed to new replies.