OthelloBloke
Forum Replies Created
-
Forum: Installing WordPress
In reply to: Filter<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <!-- If the post is in the category we want to exclude, we simply pass to the next post. --> <?php if (in_category('3')) continue; ?> <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <small><?php the_time('F jS, Y'); ?></small> <?php endwhile; else: ?> <p>Sorry, no posts matched your criteria.</p> <?php endif; ?>Forum: Installing WordPress
In reply to: FilterStraight off wordpress loop page – where it says in_category(‘3’), put the category ID of ones you DON’T want to show. if you want to restrict more than one, put
in_category(‘3’) || in_category(‘4’) || in_category(‘5’)
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <!-- If the post is in the category we want to exclude, we simply pass to the next post. --> <?php if (in_category('3')) continue; ?> <div class="post"> <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <small><?php the_time('F jS, Y'); ?></small> <div class="entry"> <?php the_content(); ?> </div> <p class="postmetadata">Posted in <?php the_category(', '); ?></p> </div> <!-- closes the first div box --> <?php endwhile; else: ?> <p>Sorry, no posts matched your criteria.</p> <?php endif; ?>Forum: Fixing WordPress
In reply to: Page Password Protection / Access RestrictionKimba… this plugin works fine in 2.3.1 for me – you add users to a group, and then restrict access to that page in the ‘Write Page’ Screen.
Forum: Themes and Templates
In reply to: Show empty category page instead of 404 errorI’m not sure if this is the same thing, but if I can’t do that… is there a way of doing something like:
if (is_category(‘3’) && $posts == 0) { echo ‘there are no posts’; }
Can anyone help? I put this in a category template, and it still shows a 404 error on empty category.
Forum: Fixing WordPress
In reply to: admin super slowSounds like a plugin issue to me.
Forum: Fixing WordPress
In reply to: Why are my H2’s bigger than my H1’s?I would change your css to something like this:
div, custom, body, td, li { font-family:"Helvetica Neue", Helvetica, Arial, sans-serif; font-size:small; } h1, h2 { font-size: 2.8em; line-height: 1.5em; letter-spacing: -1px; color: #a90000; } h3, h4 { font-size: 1.0em; }Bit hard to effectively figure out the problem without admin control.