WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Blog Posts doubled on WordPress 3.9 (4 posts)

  1. 3Lancer
    Member
    Posted 3 months ago #

    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?

  2. 3Lancer
    Member
    Posted 3 months ago #

    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?

  3. 3Lancer
    Member
    Posted 3 months ago #

    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.

  4. 3Lancer
    Member
    Posted 3 months ago #

    Resolved it myself, closing...

Reply

You must log in to post.

About this Topic