WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#16771 closed defect (bug) (worksforme)

BUG: the_content() outputs four (4) read more links in my homepage posts.

Reported by: trusktr Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.1
Component: General Keywords:
Focuses: Cc:

Description

For some reason, when i use the read more link in a post, it will have 4 more-links on the homepage. One link contains the specified verbage in the_content('read more...') and the other three are blank. I do believe this is a bug.

Attachments (1)

Screenshot.png (48.2 KB) - added by trusktr 3 years ago.
You can see in the source code 4 anchors of class .more-link

Download all attachments as: .zip

Change History (4)

comment:1 dd323 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to worksforme
  • Status changed from new to closed

This would be better suited to the support forums, specifically, the themes and templates support forum.

If you can duplicate it with the WordPress default theme, please re-open with details, however this sounds like a theme coding issue, potentially related to functions returning/echo'ing, and possibly the applied filters. Trac is not the location for debugging things, so try the support forum or mailing lists and come back and re-open this if a problem is tracked back to WordPress.

trusktr3 years ago

You can see in the source code 4 anchors of class .more-link

comment:2 markmcwilliams3 years ago

  • Severity changed from major to normal

As dd32 mentioned, as in the support forum first, but on looking at your screenshot, I'd take a pretty good guess you're not using Twenty Ten (or if you are it's a plugin?) Twenty Ten would use something like class="post-wrap" (which it doesn't) and not class="post_wrap" as shown in the source code! :)

comment:3 trusktr3 years ago

It's sooo wierd. I replaced my the_content() with the one from TwentyTen, and the problem disappears. It's unexplainable. The only difference is that TwentyTen uses the () function around the read more link phrase..

Note: See TracTickets for help on using tickets.