WordPress.org

Forums

WP-PostRatings
Already reported: extraneous text in display (8 posts)

  1. jonlzebub
    Member
    Posted 2 years ago #

    Displays extraneous "> on posts following ratings option, and displays duplicate post text followed by "> after post is rated.

    http://wordpress.org/extend/plugins/wp-postratings/

  2. noobtech.at
    Member
    Posted 2 years ago #

    open wp-postratings.php and sear for $ratings_meta = '<div
    give the div a style="display: none;" and it will be fixed. this is just a temporarily fix. hopefully lester will bring on a fix to this

  3. LaurynJ
    Member
    Posted 2 years ago #

    Ok, it looks like I'm not the only one with the same problem.

    I went into wp-postratings.php as advised and the display is already set to none. It's still showing up. Here's a sample: http://highlightedbooks.com/literature-fiction/america-again-rebecoming-the-greatness-we-never-weren39t/

  4. noobtech.at
    Member
    Posted 2 years ago #

    go again to the wp-postratings.php and search for <meta itemprop="url" content= right before that i can find this ">"> delete one of those "> and it should be fixed (cause this is what i can see in your source-code on your page)

    hth

  5. LaurynJ
    Member
    Posted 2 years ago #

    Yay, it worked. Thank you!! :)

  6. noobtech.at
    Member
    Posted 2 years ago #

    You're welcome :)

  7. mcgyver47
    Member
    Posted 2 years ago #

    I am having the exact same problem with version 1.64 :displays post excerpt followed by "> after post is rated.
    checked your solution but could not find extra "> in wp-postratings.php.
    Any ideas ???
    Thanks for help

  8. mayuxi
    Member
    Posted 2 years ago #

    I had the same problem with latest wordpress + wp-postratings. I fixed it likes this:

    In wp-postratings.php find string "if(!isset($post_excerpt))" and replace following string with this:

    $post_excerpt = get_the_excerpt();

    Than after "$post_link = get_permalink($post_id);" add this:

    $post_excerpt = sanitize_html_class($post_excerpt);

    In the end it's should look like this:

    if(!isset($post_excerpt))
    			$post_excerpt = get_the_excerpt();
    		if(!isset($post_link))
    			$post_link = get_permalink($post_id);
    $post_excerpt = sanitize_html_class($post_excerpt);

    Use it on your own risk :D

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.