pu_rplecow
Forum Replies Created
-
Forum: Plugins
In reply to: Conditional php statement not workingARGH!! I can’t believe it!! After 3 days of wracking my brains it was a plugin that was messing with the queries on the home page. That cause all my queries to make multiple loops all messed up! Thanks to all who read anyways. Must have seemed like a ridiculous problem. Everything is working fine now.
Forum: Plugins
In reply to: latest post excluding a specific category<?php if ( !(in_category(’14’)) ) { ?>
The statement above seems to have no effect on my loop! I’m trying to hide category 14 from my front page and do a small asides section to show cat 14 above the loop in another mini loop.
I’ve cut and paste that exact same piece of code only to find it doesn’t exclude the posts. I really don’t know why. I’m using the scarylittle theme found here
http://scarylittlemonkey.com/go/scary-little-theme-is-official-mostly/
From what i know it shouldn’t affect the php at all. This is how he implements his loop
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php if ( !(in_category(’14’)) ) { ?>
<div class=”blog”><div class=”blog2″><div class=”blog3″>
<div class=”date”><div class=”dateblock”>
<div class=”month”><?php the_time(‘F’); ?></div>
<div class=”day”><?php the_time(‘j’); ?></div>
<div class=”year”><?php the_time(‘Y’); ?></div>
<div class=”month”><?php the_time(‘g:i a’); ?></div>
</div><div class=”cathead”>Tags:</div>
<div class=”cats”>
<?php the_category(‘
‘); ?>
</div><div class=”cathead”>Post Meta :</div>
<div class=”cats”>
” title=”Trackback this post”>Trackback
” title=”The Permalink”>Permalink
<?php edit_post_link(‘Edit’, ”, ”); ?>
</div></div>
<div class=”text”>
<div class=”title”>
” rel=”bookmark” title=”Permanent Link: <?php the_title(); ?>”>
<?php the_title(); ?>
</div><div class=”entry”>
<?php the_content(); ?>
</div>
</div>
<div class=”clear”></div>
<div class=”commentlink”><?php comments_popup_link(__(‘No Comments.’), __(‘One Comment.’), __(‘% Comments.’)); ?></div>
<div class=”clear”></div>
</div></div></div><?php comments_template(); // Get wp-comments.php template ?>
<?php } ?>
<?php endwhile; else: ?>