WordPress.org

Forums

Excerpts and the More tag (3 posts)

  1. gretch
    Member
    Posted 9 years ago #

    Hi,

    I am pretty new and don't fully understand how the code behind the "excerpt" and/or "more" tag works.

    When I change the code to "the_excerpt" from "the_content" I see that it cuts the text down, but the elipses and the title don't link to the full text (same deal when I insert the "more" tag instead of the excerpt thing. What am I missing?

    Thanks!!
    Gretchen

    http://www.gretchenpowers.com/blog

  2. davidjg
    Member
    Posted 9 years ago #

    Do you have a single.php file? Because if not, then WordPress will use your index.php to display the post - and there you will have defined only the excerpts to be displayed.

    You might want to check out the Codex, specifically these two sections.

    Let us know if you need more help.

  3. gretch
    Member
    Posted 9 years ago #

    Thanks! It wasn't the single.php file, in this case, but that tip led me to play around and look at the files more, comparing one blog I had that worked vs. this one that didn't. I can't say that exploration helped with this particular matter, either, but, I did find out that the "more" tag works when the permalinks are set up in the default convention of "p=n" (n being the post number) and does not work when the permalinks are set up to be the date/word structure. At least this was my experience.

    Is there any technical reason this may be the case? Or just a quirky thing with my set-up?

    Playing with these files is alot of fun and I'm hoping it will help me begin to learn little bits about programming.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags