Make WordPress Core

Opened 7 years ago

Last modified 5 years ago

#39188 new defect (bug)

Wrapping paragraph tags around 'Read More' link stripped out of custom post type

Reported by: yogaman5020's profile yogaman5020 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.7
Component: Formatting Keywords:
Focuses: Cc:


My Genesis child-theme modifies the 'Read More' link in posts and custom post types by stripping out the 3 dots (hellipsis) after the link text, changing the text string, and adding styling attributes. The anchor link is wrapped in a set of p-tags.

When I updated WordPress Core in my local development environment from version 4.6.1 to 4.7, the wrapping p-tags were stripped out, and the anchor tag wrapping the 'Read More' link slid up into the preceding paragraph of text. The padding added to the paragraph tags wrapping the link disappeared, and the link styling became in-line to the preceding paragraph text (not what I wanted).

I was able to install a fresh copy of my local dev site and then reran the WP Core update, reproducing the problem. I'm not sure why the wrapping paragraph tags are getting stripped out. For now, I can work around the problem by running WP v4.6.1, which is not an optimal, long-term solution.

To see an example of how the 'Read More' links are supposed to appear, visit and view the custom posts on the front page under 'Practice Areas'. A screenshot of the displaced 'Read More' links is attached as a PNG file.

Attachments (1)

Learn More tags misplaced 12-08-16.png (158.3 KB) - added by yogaman5020 7 years ago.
Displaced 'Learn More' tags in Practice Areas custom post type.

Download all attachments as: .zip

Change History (1)

7 years ago

Displaced 'Learn More' tags in Practice Areas custom post type.

Note: See TracTickets for help on using tickets.