Forums

Weird behavior of the <!--more--> tag, please help (7 posts)

  1. zugu
    Member
    Posted 4 months ago #

    When I create a new post and break it with the <!--more--> tag, the "Continue reading" message appears under the truncated post when I view the homepage.

    However, I want to change the "Continue reading" text to something else, so instead of <!--more--> I use <!--more My text here -->. Now here's the problem: when I view the homepage, the post is truncated where the <!--more --> tag was inserted (expected behavior), however my custom text is missing (unexpected behavior)! There's not even the default "Continue reading" text, instead, the number of comments is displayed.

    I read some articles on the Codex, but all instructions say that I should be able to see the truncated post and the custom <!--more--> text under it. So something is definitely wrong.

    I'm using a freshly installed Wordpress 2.8.1.

  2. samboll
    moderator
    Posted 4 months ago #

  3. zugu
    Member
    Posted 4 months ago #

    As I said before, the Codex has already proven its uselessness.

  4. esmi
    Member
    Posted 4 months ago #

    Then you're not reading it properly. However, if the above doesn't suit you try:

    http://codex.wordpress.org/Template_Tags/the_content

    And note the use of the $more_link_text parameter. That's where you set you own custom link text.

  5. samboll
    moderator
    Posted 4 months ago #

    Codex has already proven its uselessness.

    really? you can solve your problem easily with that documentation - esmi gave you more options
    codex useless? really?

  6. spstieng
    Member
    Posted 4 months ago #

    Please remember that on the home page ( is_home() == TRUE ), the <!--more--> tag is ignored unless you turn it on again using the following code: (...)

    Why is the more tag ignored on is_home ?

  7. esmi
    Member
    Posted 4 months ago #

    Where does it say that? Perhaps it means if the front page is set to display a WordPress Page as opposed to list of recent posts?

Reply

You must log in to post.

About this Topic