WordPress.org

Ready to get started?Download WordPress

Forums

Disable "Read Full Story" (11 posts)

  1. Sefket
    Member
    Posted 4 years ago #

    Is there a way to disable it so it can just show the whole entire article? I've tried the one a guy posted about(I searched it) and it f***** up.

  2. Samuel B
    moderator
    Posted 4 years ago #

    what theme?
    a link to site?

  3. Sefket
    Member
    Posted 4 years ago #

  4. Samuel B
    moderator
    Posted 4 years ago #

    your theme is using the_excerpt and defaults to 1st 55 words of article
    you will need to replace this in your theme - typically index.php with the_content which let's you display full post or cut it where you want with a "read more" link

    review this
    http://codex.wordpress.org/Customizing_the_Read_More

  5. Sefket
    Member
    Posted 4 years ago #

    Tried it, it didn't work.

  6. sacred term
    Member
    Posted 4 years ago #

    Here is the index.php file.

    <?php get_header(); ?>

    <div id="content">

    <?php if (have_posts()) : ?>
    <?php $count = 0; ?>
    <?php while (have_posts()) : the_post(); ?>
    <div <?php post_class('box') ?> id="post-<?php the_ID(); ?>">

    <div class="boxcover">
    <div class="entry">
    <div class="boximage">
    <div class="boxtitle">
    <h2>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php echo ShortenText(get_the_title()); ?></h2>
    </div>

    <?php if ( has_post_thumbnail() ) {?>
    <?php the_post_thumbnail( 'home-thumbnail' );?>
    <?php } else { ?>
    <img src="<?php bloginfo('template_directory'); ?>/images/place.jpg" alt="" />
    <?php } ?>

    </div>

    <?php the_excerpt(); ?>

    <div class="clear"></div>

    </div>
    </div>

    <div class="boxinfo">

    <div class="boxauthor">Posted by <?php the_author(); ?> </div>
    <div class="boxmore">" title="Permanent Link to <?php the_title(); ?>">Read Full Post </div>
    <div class="boxcoms"><?php comments_popup_link('0', '1', '%','','' ); ?> </div>
    </div>

    </div>
    <?php if(++$counter % 2 == 0) : ?>
    <div class="clear"></div>
    <?php endif; ?>
    <?php endwhile; ?>

    <div class="clear"></div>
    <div id="navigation">
    <?php if(function_exists('wp_pagenavi')) : ?>
    <?php wp_pagenavi() ?>
    <?php else : ?>
    <div class="alignleft"><?php next_posts_link(__('« Older Entries','arclite')) ?></div>
    <div class="alignright"><?php previous_posts_link(__('Newer Entries »','arclite')) ?></div>
    <div class="clear"></div>
    <?php endif; ?>

    </div>

    <?php else : ?>

    <h1 class="title">Not Found</h1>
    <p>Sorry, but you are looking for something that isn't here.</p>

    <?php endif; ?>

    </div>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

    If I replace it with the_content it will just put the full story on top of the excerpt and mess up the whole page.

  7. Samuel B
    moderator
    Posted 4 years ago #

    sacred term
    you have messed up some things in the editing
    replace the current index.php with a fresh one from the theme zip
    then post the fresh one and someone can show you where to replace stuff

  8. sacred term
    Member
    Posted 4 years ago #

    Here is the default one,

    <?php get_header(); ?>

    <div id="content">

    <?php include (TEMPLATEPATH . '/slide.php'); ?>

    <?php include (TEMPLATEPATH . '/ad1.php'); ?>

    <?php if (have_posts()) : ?>
    <?php $count = 0; ?>
    <?php while (have_posts()) : the_post(); ?>

    <div <?php post_class('box') ?> id="post-<?php the_ID(); ?>">

    <div class="boxcover">
    <div class="entry">
    <div class="boximage">
    <div class="boxtitle">
    <h2>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php echo ShortenText(get_the_title()); ?></h2>
    </div>

    <?php if ( has_post_thumbnail() ) {?>
    <?php the_post_thumbnail( 'home-thumbnail' );?>
    <?php } else { ?>
    <img src="<?php bloginfo('template_directory'); ?>/images/place.jpg" alt="" />
    <?php } ?>

    </div>

    <?php the_excerpt(); ?>

    <div class="clear"></div>

    </div>
    </div>

    <div class="boxinfo">

    <div class="boxauthor">Posted by <?php the_author(); ?> </div>
    <div class="boxmore">" title="Permanent Link to <?php the_title(); ?>">Read Full Post </div>
    <div class="boxcoms"><?php comments_popup_link('0', '1', '%','','' ); ?> </div>
    </div>

    </div>
    <?php if(++$counter % 2 == 0) : ?>
    <div class="clear"></div>
    <?php endif; ?>
    <?php endwhile; ?>

    <div class="clear"></div>
    <div id="navigation">
    <?php if(function_exists('wp_pagenavi')) : ?>
    <?php wp_pagenavi() ?>
    <?php else : ?>
    <div class="alignleft"><?php next_posts_link(__('« Older Entries','arclite')) ?></div>
    <div class="alignright"><?php previous_posts_link(__('Newer Entries »','arclite')) ?></div>
    <div class="clear"></div>
    <?php endif; ?>

    </div>

    <?php else : ?>

    <h1 class="title">Not Found</h1>
    <p>Sorry, but you are looking for something that isn't here.</p>

    <?php endif; ?>

    </div>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

  9. Web Hosting India
    Member
    Posted 4 years ago #

    try replacing <?php the_excerpt(); ?> with <?php the_content(); ?>

    Hope that helps you

    with regards

    sribharath

  10. sacred term
    Member
    Posted 4 years ago #

    I have tried this... All it does is put the full story over the excerpt and messes up the whole page.

  11. Sefket
    Member
    Posted 4 years ago #

    Changing excerpt to content didn't work. What can we do?

    Here is the default index.php,

    <?php get_header(); ?>

    <div id="content">

    <?php include (TEMPLATEPATH . '/slide.php'); ?>

    <?php include (TEMPLATEPATH . '/ad1.php'); ?>

    <?php if (have_posts()) : ?>
    <?php $count = 0; ?>
    <?php while (have_posts()) : the_post(); ?>

    <div <?php post_class('box') ?> id="post-<?php the_ID(); ?>">

    <div class="boxcover">
    <div class="entry">
    <div class="boximage">
    <div class="boxtitle">
    <h2>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php echo ShortenText(get_the_title()); ?></h2>
    </div>

    <?php if ( has_post_thumbnail() ) {?>
    <?php the_post_thumbnail( 'home-thumbnail' );?>
    <?php } else { ?>
    <img src="<?php bloginfo('template_directory'); ?>/images/place.jpg" alt="" />
    <?php } ?>

    </div>

    <?php the_excerpt(); ?>

    <div class="clear"></div>

    </div>
    </div>

    <div class="boxinfo">

    <div class="boxauthor">Posted by <?php the_author(); ?> </div>
    <div class="boxmore">" title="Permanent Link to <?php the_title(); ?>">Read Full Post </div>
    <div class="boxcoms"><?php comments_popup_link('0', '1', '%','','' ); ?> </div>
    </div>

    </div>
    <?php if(++$counter % 2 == 0) : ?>
    <div class="clear"></div>
    <?php endif; ?>
    <?php endwhile; ?>

    <div class="clear"></div>
    <div id="navigation">
    <?php if(function_exists('wp_pagenavi')) : ?>
    <?php wp_pagenavi() ?>
    <?php else : ?>
    <div class="alignleft"><?php next_posts_link(__('« Older Entries','arclite')) ?></div>
    <div class="alignright"><?php previous_posts_link(__('Newer Entries »','arclite')) ?></div>
    <div class="clear"></div>
    <?php endif; ?>

    </div>

    <?php else : ?>

    <h1 class="title">Not Found</h1>
    <p>Sorry, but you are looking for something that isn't here.</p>

    <?php endif; ?>

    </div>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic