WordPress.org

Ready to get started?Download WordPress

Forums

GD Star Rating
I need to use "if" function in an other function (1 post)

  1. cst0503
    Member
    Posted 5 months ago #

    Hello!

    I'm trying to do this:

    <?php
    if ( (wp_gdsr_render_article($template_id = 65)) == 5 ) {				?>
    <p>Done!</p>
    <?php
    }
    ?>

    My function wp_gdsr_render_article($template_id = 65) returns the number of votes of the current post.

    But the "if" function is not working. Instead of the "if" function show "Done!", the wp_gdsr_render_article function is showing the number of votes. Is like the function wp_gdsr_render_article were giving an "echo".

    I don´t know if I made ​​myself clear because my english is terrible!

    How can i do this check? Can someone help me?

    Thanks.

    https://wordpress.org/plugins/gd-star-rating/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags