WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Blog Posts doubled on WordPress 3.9

[Resolved] Blog Posts doubled on WordPress 3.9

  • Seems WordPress 3.9 is double displaying my blog posts, so it has a summary as normal and the ‘read more’ button like before… but then a repeat of the full post underneath it – with the headers, text, images, videos, etc! That was meant to appear only on the follow ‘read more’ page, not the same browse/search which should only display the basic summary.

    It appears to be working the same as normal with post-title, post-content (as a summary), but then haves the full post content placed under the ‘post-date’ span field, along with the post date merged after it.

    It’s currently quite messy, is anyone else having this issue?

    I do have a customised theme, so wondering if it’s just me or affecting others?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Date code for under my theme is simply as follows, those <!– Date –> comments show up in the HTML to confirm and I previously removed the permalink on it…

    <!-- Date -->
     <?php if(!isset($hide_meta[0])) {
       echo '<span class="post-date">' . get_the_date() . '</span>';
       /*echo '<span class="post-date"><a href="', the_permalink() .'">' . get_the_date() . '</a></span>';*/
     } ?>
    <!-- Date END -->

    All it’s really doing is calling the ‘get_the_date()’ function. Which gets the date correctly, but since WordPress 3.9 also includes the full post in front of it as well. Confused?

    Nevermind, I have tracked it down to the QTranslate Plugin being incompatible – used for multiple languages.

    For anyone else using QTranslate Plugin and wanting a solution…

    Had to hack it’s ‘qtranslate_core.php’ file at line 455.

    // WordPress 3.9 Fix
    //return $before.strftime($format, $date).$after;
    return strftime($format, $date).$after;

    It’s just a matter of removing that ‘$before.’ which causes all sorts of issues in regards to getting content before the date stamp.

    Resolved it myself, closing…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Blog Posts doubled on WordPress 3.9’ is closed to new replies.
Skip to toolbar