• Hey all,

    I want to remove excerpts from categories. I want it just appear like a regular post. How do I do this in the Twenty ten theme.

    You can see it at my website https://www.theoxengroup.com/blog3/category/longterm-ratings. These stories have large jpegs at the beginning and they show nothing. I want it to appear like it does on the homepage.

    Any help would be great. I am very new to coding…basically no nothing. Definitely could use some help!

Viewing 8 replies - 1 through 8 (of 8 total)
  • First, I would strongly suggest that you make a Child Theme. Otherwise, when an update is issued for Twenty Ten, your changes will be lost.

    Once you have your Child Theme working, copy the loop.php file from Twenty Ten into your child’s folder and make the change.

    Near the bottom of the file, find the section shown below:

    <?php /* How to display all other posts. */ ?>
    
    	<?php else : ?>
    		<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    			<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    
    			<div class="entry-meta">
    				<?php twentyten_posted_on(); ?>
    			</div><!-- .entry-meta -->
    
    	<?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>
    			<div class="entry-summary">
    				<?php the_excerpt(); ?>
    			</div><!-- .entry-summary -->
    	<?php else : ?>

    Then, change this line:

    <?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>

    to this:

    <?php if ( !is_category() && ( is_archive() || is_search() ) ) : // Only display excerpts for archives and search. ?>

    just change the_excerpt to the_content,you will get all the content

    @avnish, your solution will always give all the content, not just for category queries, but also for archives and searches. That is not usually what you want.

    Thread Starter ristadj

    (@ristadj)

    None of that works.

    Either of those should work. We can’t do anything more without seeing your code. Please put your code in a pastebin and post a link to it here.

    Thread Starter ristadj

    (@ristadj)

    code from what…loop.php? That’s what I’m not sure of…where do I change this?

    Yes – loop.php. See my reply above.

    Thread Starter ristadj

    (@ristadj)

    I fixed it.

    Thanks!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Excerpt Removal’ is closed to new replies.