[wp-hackers] need help with loop code
    Jen Simmons 
    jensimmons at gmail.com
       
    Tue Feb 10 17:54:09 GMT 2009
    
    
  
Hello hackers,
I'm writing loop code for home.php, and I'm stuck.
I started with
<?php if ( in_category('6') && is_home() ) continue; ?>
Which excludes all posts with category 6 from the home page. But the  
client wants all posts with cat 6 to print, if they are also makred  
with a second category, and to not show up only if cat 6 is the only  
cat the post has.
How can I do that?
In other words, I need the code to read:
If you have only one category, and that category is #6, then jump  
ahead and don't do this stuff,
otherwise,
do do this stuff (printing stuff).
thanks,
Jen
Jen Simmons
Milkweed Media Design
http://milkweedmediadesign.com
    
    
More information about the wp-hackers
mailing list