Hi, I'm trying to customize my comment form on WP. I have this piece of php code that I want to insert into my existing code: Existing code: I would like to place it right below the 'title_reply' line. Please advise. Thanks in advance!
How does the function "the_stars" look? Depending on what it outputs, it should be possible to insert it, even in the array, if need be. But it again depends on what it spits out, since if, for instance, it spits out its own form, you can't insert it into an existing form, and you might have to rewrite either function - either the the_stars-function, and its output, or the comment_form-function, and how it accepts input.
If I'm not mistaken, "the_stars" function in WordPress comes from a star rating plugin and should display a star rating system . See if it's everything ok if you change the "'title_reply' => 'Comment'," row with: // Above the comment_form function $stars_rating = function_exists('the_stars') ? the_stars() : false ; <?php 'title_reply' => 'Comment' . $stars_rating, ?> PHP:
Yes, it's a ratings plugin. That function outputs an image of stars as ratings. I did as you said, but it doesn't work. Any ideas?