• thegypsykiss

    (@thegypsykiss)


    When it’s going to the post here:
    https://thegypsykiss.com/blog/

    on the main blog page, it just shows a link, saying “read the rest of this entry”. I don’t want that to show – I’d rather it just show the whole post. It’s never done this before, and so I’m not sure what caused it or how to fix it. Any ideas?

Viewing 5 replies - 1 through 5 (of 5 total)
  • MichaelH

    (@michaelh)

    Might review the first 4 questions in this section:
    https://codex.www.ads-software.com/FAQ_Layout_and_Design#Text_and_Content_Display

    lostmanscreek

    (@lostmanscreek)

    I’m trying to solve this issue as well. I have the site set up so it shows a page first, and then you can click on a category. (each category is essentially it’s own blog) But when it shows the posts, it only shows it in basic text and no pics, then has “Read the rest of…” I want it to post the entire post the way it does if you then click “Read the rest of…” I’ve looked over the first 4 questions, and can’t figure it out. Here’s what the code looks like in my main index:

    <?php get_header(); ?>
    <!– index.php start –>
    <div id=”content”>
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <table style=”margin-bottom:20px; margin-right:30px;”><tr><td>
    <div class=”post” id=”post-<?php the_ID(); ?>”>
    <div class=”post_title_div”>
    <span class=”post_title”>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></span>
    <span class=”post_datetime”><?php the_time(‘F jS, Y’) ?> at <?php the_time(‘g:ia’); ?></span>
    </div>
    <div class=”post_body”>
    <?php if (is_search()) {
    the_excerpt();
    } else {
    the_content(__(‘

    Read the rest of ‘) . “\”” . the_title(”, ”, false) . “\” »”);
    } ?>
    </div>
    <div class=”post_details”>
    Posted in <?php the_category(‘, ‘) ?>
    <?php if (function_exists(‘the_tags’)) { the_tags(‘<p>Tags: ‘, ‘, ‘, ‘</p>’); } ?>
    <?php comments_popup_link(‘No comment’, ‘1 Comment’, ‘% Comments’); ?> <?php edit_post_link(‘Edit’, ‘
    <span class=”edit_post”>’, ‘</span>’); ?>
    </div>
    <img src=”<?=bloginfo(‘template_directory’)?>/images/lr-fold.gif” style=”position:absolute;bottom:-1px;right:-1px;z-index:2″>
    </div>
    </td></tr></table>
    <!–post–>
    <?php endwhile; ?>
    <?php comments_template(); ?>
    <div class=”navigation”>
    <div class=”alignleft”><?php next_posts_link(__(‘« Previous Entries’)) ?></div>
    <div class=”alignright”><?php previous_posts_link(__(‘Next Entries »’)) ?></div>
    </div>
    <?php else : ?>
    <div class=”post”>
    <div class=”post_title_div_notfound”>
    <span class=”post_title”><?php _e(‘Not Found’); ?></span>
    </div>
    <div class=”post_body”>
    <p><?php _e(‘Sorry, but no posts matched your criteria.’); ?></p>
    <?php include (TEMPLATEPATH . “/searchform.php”); ?>
    </div>
    </div>
    <?php endif; ?>

    </div><!–content–>
    <!– index.php end –>

    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    any help would be appreciated.
    thanks!

    well, first you need to figure out what template is responsible for displaying your content after you click on a category (category.php, archive.php, etc) using the template heirarchy:
    https://codex.www.ads-software.com/Template_Hierarchy

    it may be easy for you to do already…. I start each of my template files with a commented description. Your index.php already has one <!-- index.php start --> do the rest of your template files start like that? If not it’s a good idea….. then you can navigate to the page you are trying to change and view the source code in your browser (view->source in your browser) and see the code for your page, including those commets, which will tell you what template loaded.

    In that template, you need to change where it says the_excerpt to the_content

    uwiuw

    (@uwiuw)

    try to change

    the_content(__(‘Read the rest of ‘) . “\”” . the_title(”, ”, false) . “\” ?”);

    to

    the_content();

    lostmanscreek

    (@lostmanscreek)

    Just to update, I tried that in every php file that had “read” in it (except archives because it was written different) and it didn’t work. I was still seeing the words”read the rest of” even though they were deleted from every php except archives – so i fugured maybe that’s where I need to concentrate. After the date info there were some lines that looked like this:

    </div>
    <div class=”post_details”>
    <?php the_excerpt(); ?>
    <p>Read the rest of “><?php the_title(); ?></p>

    all i did is change the word excerpt to content and it seems to solve the problem.
    Hope this can help someone else!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Read the rest of this entry? What can I do to get rid of that and show the post?’ is closed to new replies.