Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#42856 closed defect (bug) (invalid)

function twentyfifteen_entry_meta returning dates two times

Reported by: listalegal Owned by:
Priority: normal Milestone:
Component: General Version: 4.9.1
Severity: normal Keywords:
Cc: Focuses:

Description

I have been trying to figure out why my blog posts are showing the published date twice, it's repeated one after the other.

Look at the bottom of this blog post ​http://reviewsz.net/blog/ right where it says Posted On.

As a separate issue, part of my post formatting disappears every time I save it and I go back to edit it. My <p> tags and end of line tags just disappear.

Change History (1)

#1 in reply to: ↑ description @dd32
9 years ago

  • Milestone Awaiting Review
  • Resolution → invalid
  • Status new → closed

Hi @listalegal, and welcome to Trac.

The WordPress Trac is for reporting bugs in the WordPress software, and not for support. For support, we have the ​Support Forums available where many other volunteers help resolve specific site issues.

Replying to listalegal:

I have been trying to figure out why my blog posts are showing the published date twice, it's repeated one after the other.

Look at the bottom of this blog post ​http://reviewsz.net/blog/ right where it says Posted On.

This seems to be related to your Theme or a plugin you're running. One of the timestamps is the publish date, the other the date that the post was updated:

<time class="entry-date published" datetime="2017-12-10T07:11:44+00:00">December 10, 2017</time>
<time class="updated" datetime="2017-12-10T07:21:37+00:00">December 10, 2017</time>

As a separate issue, part of my post formatting disappears every time I save it and I go back to edit it. My <p> tags and end of line tags just disappear.

This is most likely the intended behaviour of WordPress - manually added <p> tags that are added and trailing <br> tags may be stripped upon WordPress parsing the post.
There ​exist plugins which can disable this functionality, but as a result you'd need to add all paragraph tags as appropriate in the post.

If you've got a specific example of where you believe WordPress is getting it incorrect, please open a ticket with the exact code which is being changed that you expect to retain.

Note: See TracTickets for help on using tickets.