Make WordPress Core

Opened 16 years ago

Closed 16 years ago

Last modified 16 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:
Priority: normal Milestone:
Component: General Version: 3.1
Severity: normal Keywords:
Cc: Focuses:

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 16 years ago.
You can see in the source code 4 anchors of class .more-link

Download all attachments as: .zip

Change History (4)

#1 @dd32
16 years ago

  • Milestone Awaiting Review
  • Resolutionworksforme
  • Status newclosed

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.

@trusktr
16 years ago

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

#2 @markmcwilliams
16 years ago

  • Severity majornormal

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! :)

#3 @trusktr
16 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.