Wordpress Post Excerpts - Help Please

5 replies
Hi everyone, on my main page I have post excerpts rather than the full contents of each post. Below each excerpt are the category tags. What I would like to do is to remove those tags fro mbelow the post excerpt but leave the tags below the full post within the single post page. Anyone know how this can be done? Thanks.
#excerpts #post #wordpress
  • Profile picture of the author Leslie B
    You need to adapt your index.php file in your theme. Can't say what code to remove without seeing the file though.

    Leslie
    Signature
    Taking it one day at a time!
    {{ DiscussionBoard.errors[2867279].message }}
    • Profile picture of the author TheGrooby
      Originally Posted by Leslie B View Post

      You need to adapt your index.php file in your theme. Can't say what code to remove without seeing the file though.

      Leslie
      It's a pretty complex theme from what I've gathered so far. Here is what the index.php file looks like:
      <?php
      /**
      * Core file required with every WP theme. We have files for everything else.
      * So this is essentially the landing page if nothing else is set.
      * This is also the file used for archives.
      *
      * @package Suffusion
      * @subpackage Templates
      */

      global ;
      foreach ( as => ) {
      $ = ;
      }

      get_header();
      suffusion_query_posts();
      ?>
      <div id="main-col">
      <?php suffusion_before_begin_content(); ?>
      <div id="content" class="hfeed">
      <?php
      if ( == 'list') {
      if (!function_exists('get_template_part')) {
      include_once(TEMPLATEPATH . '/layouts/layout-list.php');
      }
      else {
      get_template_part('layouts/layout-list');
      }
      }
      else if ( == 'tiles') {
      suffusion_after_begin_content();
      if (!function_exists('get_template_part')) {
      include_once(TEMPLATEPATH . '/layouts/layout-tiles.php');
      }
      else {
      get_template_part('layouts/layout-tiles');
      }
      }
      else {
      suffusion_after_begin_content();
      if (!function_exists('get_template_part')) {
      include_once(TEMPLATEPATH . '/layouts/layout-blog.php');
      }
      else {
      get_template_part('layouts/layout-blog');
      }
      }
      ?>
      </div><!-- content -->
      </div><!-- main col -->
      <?php
      get_footer();
      ?>
      {{ DiscussionBoard.errors[2867384].message }}
  • Profile picture of the author RedMatrix
    What theme are you running? what's the URL?
    Signature

    ~Dave

    {{ DiscussionBoard.errors[2867287].message }}
    • Profile picture of the author TheGrooby
      Originally Posted by RedMatrix View Post

      What theme are you running? what's the URL?
      I'm running the Suffusion theme. I'd rather not post the URL due to Adsense and click bombing from random people.
      {{ DiscussionBoard.errors[2867378].message }}
  • Profile picture of the author Leslie B
    it seems like it's pulling in code from other files, depending on what set up you chose. If you want, you can send me your URL in a PM and I'll see what I can do

    Leslie
    Signature
    Taking it one day at a time!
    {{ DiscussionBoard.errors[2867864].message }}

Trending Topics