WordPress.org

Ready to get started?Download WordPress

Forums

WP-PostRatings
[resolved] %POST_CONTENT% doesn't work on highest rated template (2 posts)

  1. tokiso
    Member
    Posted 1 year ago #

    Hello,

    I am using wp-postratings 1.63 on my blog. My problem is that %POST_CONTENT% doesn't work on highest rated template. I am using this template code on a page to show the top 100 rated posts. Instead of showing the post content, it appears nothing. Other tags like %POST_URL% or %POST_TITLE% work and they are displayed correctly.

    Thanks in advance.

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

  2. tokiso
    Member
    Posted 1 year ago #

    I have found a solution:

    Replace in wp-postratings.php:

    $value = str_replace("%POST_CONTENT%", get_the_content(), $value);

    with

    $value = str_replace("%POST_CONTENT%", $post->post_content, $value);

    This works for me.

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic