Viewing 5 replies - 1 through 5 (of 5 total)
  • I think you will need to edit the code for the template and add a check for is_category(‘tweet’) and display the title only if it returns false.

    Thread Starter MrsAngelD

    (@mrsangeld)

    Hi, thanks for replying any chance you could give me an example, I’m kinda new to scripting…lol.

    Thread Starter MrsAngelD

    (@mrsangeld)

    I see this but I’m not sure what to do with it:

    <h1 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to ','emerald_stretch'); ?><?php the_title(); ?>"><?php the_title(); ?></a></h1>

    In archive.php, change this:

    <?php while (have_posts()) : the_post(); ?>
       <h1 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to ','emerald_stretch'); ?><?php the_title(); ?>"><?php the_title(); ?></a></h1>

    to this:

    <?php while (have_posts()) : the_post(); ?>
          <?php if (!is_category('tweet')) : ?>
             <h1 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to ','emerald_stretch'); ?><?php the_title(); ?>"><?php the_title(); ?></a></h1>
          <?php endif; ?>

    Of course, use your own category slug instead of ‘tweet’ if it is different.

    Thread Starter MrsAngelD

    (@mrsangeld)

    THANK YOU VERY MUCH ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hiding post titles in a specific category.’ is closed to new replies.