• Hi- I am having trouble with the presentation of a post. I simply want the WHOLE post to show on the main index page but WP is only showing the excerpt/teaser and I want it to show the *WHOLE* post. What do I need to do to make that happen? Thanks-

Viewing 7 replies - 1 through 7 (of 7 total)
  • Take a look in your template and check if the template tag used to show the post is the_content() or the_excerpt(). If it is the_excerpt then, you guessed it, change it to the_content().

    More about template tags here: https://codex.www.ads-software.com/Stepping_Into_Template_Tags

    If you used the <!--More--> tag when writing your post, then it will only show on the homepage up to the the place you inserted this tag.

    Ok, so I have a similar problem except I only want the excerpt showing. So, I went into my template and have that part fixed. Except now, it puts […] there, which is fine but you can’t click on that to take you to the full story. So, is there a way now to make it so that the […] is a link to the full post?

    Sure, just add this right after <?php the_excerpt() ?>:
    <a href="<?php the_permalink(); ?>">Read More</a>

    That works but it puts it on a new line. Any way to make the … as the link?

    I’m not familiar with php scripting.

    The way I do it is to use the_content, and then put a <!--more--> tag in my posts. It gives a nice, formatted link like so: Continue reading this story.

    Yes, I’ve tried that too but I have users that don’t do that so it’s easier if I can just automatically have the excerpt show.

    Thank you though!

    Well, the_excerpt is plain text, with all HTML stripped, so I don’t think there’s a way to make the ellipsis link to the page. Now, if you don’t mind a little hacking, you can go to that function and delete the “[…]” so it doesn’t add it in, and then in index.php put your own ellipsis with an anchor around it to the permalink.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘excerpt’ is closed to new replies.