Support » Fixing WordPress » Read more link

  • I am using the default theme of the wordpress twenty eleven.When i post a long contain its getting out of frame and even the read more linl is not appearing i even posted the new excerpt more in function php file but still its not appearing

    function new_excerpt_more($more) {
           global $post;
    	return '<a href="'. get_permalink($post->ID) . '">Read the Rest...</a>';
    }
    add_filter('excerpt_more', 'new_excerpt_more');

    i really need it

    thank you in advance

Viewing 4 replies - 1 through 4 (of 4 total)
  • i Have tried all but still the link is not appearing let me show you my loop php file

    <?php
    	/* Start The Loop */ if (have_posts()) { while (have_posts()) { the_post(); ?>
    		<?php /* Permalink navigation has to be inside the loop */ if (is_single()) get_template_part('navigation'); ?>
    		<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    			<?php lblg_before_post_title(); ?>
    			<?php if( !is_single() && !is_page() ) { ?><h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php echo strip_tags(get_the_title()) ?>"><?php the_title(); ?></a></h2>
    			<?php } else { ?><h1><?php the_title(); ?></h1><?php } ?>
    
    			<?php lblg_before_itemtext(); ?>
    			<div class="itemtext">
    				<?php
    				if ( is_archive() or is_search() or is_tag() ) {
    					the_excerpt();
    				} else {
    					the_content('Continue reading'. " '" . the_title('', '', false) . "'");
    				}
    				wp_link_pages( array( 'before' => '<div class="post-pagination">Pages: ', 'after' => '</div>', 'next_or_number' => 'number'));
    				?>
    			</div>
    			<?php lblg_after_itemtext(); ?>
    			<!--
    				<?php trackback_rdf(); ?>
    			-->
    		</div>
    	<?php } /* End while */?>
    	<?php if(is_home() || is_archive()) get_template_part('navigation'); ?>
    	<?php } /*End loop*/ ?>

    i am using elbee-elgee theme
    i know that putting more tag will help me but i do not want to do it manually

    Check the syntax.

    And while adding new post if we continue to write on single line it does not limit the width to display

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Read more link’ is closed to new replies.