1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Wordpress how do i get rid of "continue reading"

Discussion in 'WordPress' started by submitmaster, Apr 15, 2009.

  1. #1
    so im trying to get rid of the "continue reading" crap on this page http://www.haddadrc.com/category/personal-pictures and to show the entire post rather then have the user click on continue reading, how do i go about this, anyone please, thanks
     
    submitmaster, Apr 15, 2009 IP
  2. ravi4545

    ravi4545 Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    In Edit box go to html view and remove <-more->. Come to Visual Mode and see that continue reading is removed. Hope this will help
     
    ravi4545, Apr 15, 2009 IP
  3. submitmaster

    submitmaster Well-Known Member

    Messages:
    329
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #3
    there is no <-more-> tag, i checked, this has to be done through the template index.php i think, grrrr cant figure this out :(
     
    submitmaster, Apr 16, 2009 IP
  4. dusward

    dusward Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The link that you provided is pulling the content from the category template. You will need to go into the theme editor and remove the code that looks like this
    <?php the_content('Continue Reading'); ?>
    Code (markup):
     
    dusward, Apr 16, 2009 IP
  5. ~kev~

    ~kev~ Well-Known Member

    Messages:
    2,866
    Likes Received:
    194
    Best Answers:
    0
    Trophy Points:
    110
    #5
    You will need to edit 3 or 4 files, if you want to get rid of them all.

    Take a look at these files in the template folder.
    Index
    Category
    Archive

    Open them up with some kind of text editor like PsPad or notepad. And just like dusward said, look for <?php the_content('Continue Reading'); ?> and delete that line of code. Be sure to have a backup of all of your files.
     
    ~kev~, Apr 16, 2009 IP
  6. submitmaster

    submitmaster Well-Known Member

    Messages:
    329
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #6
    sadly none of these methods worked, im baffled !! thanks for trying to help
     
    submitmaster, Apr 16, 2009 IP
  7. submitmaster

    submitmaster Well-Known Member

    Messages:
    329
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #7
    here is what my index looks like

    <?php get_header(); ?>
    <div id="main_content">
    
    	<!-- first loop for featured article -->
    	<?php $my_query = new WP_Query('cat='.get_option('gridlock_featured_cat').'&showposts=1');
    	  while ($my_query->have_posts()) : $my_query->the_post();
    	  $do_not_duplicate = array();
    	  $do_not_duplicate[1] = $post->ID; // get one post from the "Features" category ?>
    
    	<h3 class="subhead"><?php echo(stripslashes(get_option('gridlock_currentfeature_caption'))); ?></h3>
    	<!-- get title -->
    	<h2 id="headline"> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> </h2>
    	
    	<!-- post content -->
    	<?php the_content('<em><strong>continue reading... &raquo;</strong></em>'); ?>
    
    	<h4 class="comment">posted <?php the_time('j F Y'); ?> @ <?php the_time('G:i'); ?> by <?php the_author() ?>  
    	 &raquo; <?php comments_popup_link('0 Comments', 'One Comment', '% Comments', '', 'Comments Locked'); ?> </h4>
    	
    	<!-- end first loop -->
    	<?php endwhile; ?>
    	
    	<!-- begin second feature loop -->
    	<?php 
    	query_posts('cat='.get_option('gridlock_featured_cat').'&showposts=2');
     	?>
    	
    	<?php while (have_posts()) : the_post();
    	if($post->ID == $do_not_duplicate[1]) continue;
    	$do_not_duplicate[2] = $post->ID;
    	
    	 /* if (have_posts()) : while (have_posts()) : the_post(); 
    	  if( $post->ID == $do_not_duplicate ) continue; */ ?>
    	<div class="substory_frame">  
    	<div class="substory" id="left">
    				<h3 class="substory_subhead"><?php echo(stripslashes(get_option('gridlock_pastfeature_caption'))); ?></h3>
    				<h3 class="substory_head"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
    				<?php the_excerpt(); ?>
    				<h4 class="substory_comment"><?php the_time('j F Y'); ?>
    				 &raquo; <a href="<?php the_permalink(); ?>">read</a> &raquo; 
    				 <?php comments_popup_link('0 Comments', 'One Comment', '% Comments', '', 'Comments Locked'); ?></h4>
    	</div>
    	<?php endwhile;?>
    	
    	<div class="substory" id="right">
    	
    	<?php if(get_option('gridlock_use_secondary') == 'true') { 
    			query_posts('cat='.get_option('gridlock_secondary_cat').'&showposts=1'); 
    		} else {
    			rewind_posts();
    			query_posts('cat='.get_option('gridlock_featured_cat').'&showposts=3');
    		}
    	
    		while (have_posts()) : the_post(); 
    	
    	?> 
    	<?php	
    		if(get_option('gridlock_use_secondary') != 'true') {
    			if($post->ID == $do_not_duplicate[1] || $post->ID == $do_not_duplicate[2]) continue;
    			$do_not_duplicate[3] = $post->ID;
    		}
    	 ?>
    				<h3 class="substory_subhead"><?php echo(stripslashes(get_option('gridlock_secondary_caption'))); ?></h3>
    				<h3 class="substory_head"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
    				<?php the_excerpt(); ?>
    				<h4 class="substory_comment"><?php the_time('j F Y'); ?>
    				 &raquo; <a href="<?php the_permalink(); ?>">read</a> &raquo; 
    				 <?php comments_popup_link('0 Comments', 'One Comment', '% Comments', '', 'Comments Locked'); ?></h4>
    	
    		<?php endwhile; $do_not_duplicate = array(); ?>
    		
    	</div>
    	</div>
    		
            <div id="linkblog">
                <?php if(get_option('gridlock_delicious_username') != '') { ?> 
    
    			<h3 class="substory_subhead"><?php echo(stripslashes(get_option('gridlock_delicious_caption'))); ?></h3>
                 <h4 class="linkblog_caption">from <a href="http://del.icio.us/<?php echo(get_option('gridlock_delicious_username')); ?>">del.icio.us</a> 
                 <a href="http://del.icio.us/rss/<?php echo(get_option('gridlock_delicious_username')); ?>" title="RSS 2.0" class="linkblog_rss_link"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/feed_small.gif" alt="RSS 2.0 Feed" title="RSS Feed" class="tinyfeed" /></a></h4>
                 
    			<script type="text/javascript" src="http://del.icio.us/feeds/js/<?php echo(get_option('gridlock_delicious_username')); ?>?extended;count=5"></script>
    			<?php } ?>
            </div>
    <!-- close the main content div -->
    </div>
    
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>
    PHP:
     
    submitmaster, Apr 16, 2009 IP
  8. ~kev~

    ~kev~ Well-Known Member

    Messages:
    2,866
    Likes Received:
    194
    Best Answers:
    0
    Trophy Points:
    110
    #8
    This is probably the part you need to edit.

    <!-- post content -->
        <?php the_content('<em><strong>continue reading... &raquo;</strong></em>'); ?>
    Code (markup):
    Just remove the
    <em><strong>continue reading... &raquo;</strong></em>
    
    Code (markup):
    When your finished, it should look something like

    <?php the_content(''); ?>

    Give that a try and see what happens. Be sure to have a backup of your files, just incase something goes wrong.
     
    ~kev~, Apr 17, 2009 IP
  9. RadioBounce

    RadioBounce Banned

    Messages:
    4,171
    Likes Received:
    16
    Best Answers:
    1
    Trophy Points:
    0
    #9
    Go on the main index template and remove this line:

    <?php the_content('Continue Reading'); ?>
    Code (markup):
    And it's the index.php inside your themes folder ;) So you'd go on wp-content/'your-theme'/index.php
     
    RadioBounce, Apr 17, 2009 IP
  10. submitmaster

    submitmaster Well-Known Member

    Messages:
    329
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    103
    #10
    nope didnt work guys, the thing is, when you roll over the left categories, the link it opens is http://www.haddadrc.com/category/personal-pictures with the category in the middle of the link, and once your in the page, it asks to click continue reading.. and that link takes you to http://www.haddadrc.com/my-personal-pictures.html which you can see, the category directory is missing and the actual page with .html loads, so there must be another file to edit im assuming??? gosh i hate wordpress at times
     
    submitmaster, Apr 17, 2009 IP
  11. philhxc

    philhxc Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    maybe it has to do with the excerpt, but i don't think so.
     
    philhxc, Apr 20, 2009 IP
  12. staffsergeantpeterson

    staffsergeantpeterson Member

    Messages:
    356
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    33
    #12
    You need to edit the archive.php & singlepost.php and maybe the comments.php files also
     
    staffsergeantpeterson, Apr 22, 2009 IP
  13. papatome

    papatome Peon

    Messages:
    28
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #13
    If you want to remove the "read-more" only from the category's pages, so you will need to do exactly like what ~kev~'s wrote:

    <em><strong>continue reading... &raquo;</strong></em>
    Code (markup):
    BUT, instead to edit the index.php, try to edit your archives.php.

    You could show us your archives.php (or archive.php) in this thread for more help.
     
    papatome, Apr 23, 2009 IP