Forum Replies Created

Viewing 6 replies - 181 through 186 (of 186 total)
  • 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: Filter

    Straight 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; ?>

    Kimba… 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.

    http://code.google.com/p/wp-group-restriction/

    Thread Starter OthelloBloke

    (@othellobloke)

    I’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 slow

    Sounds like a plugin issue to me.

    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.

Viewing 6 replies - 181 through 186 (of 186 total)