Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>At the first glance, you have</p> <pre><code>if( $commentrating = get_comment_meta( get_comment_ID(), 'rating', true ) ) { $commentrating = '&lt;p class="comment-rating"&gt; &lt;img src="'. $plugin_url_path . '/ExtendComment/images/'. $commentrating . 'star.gif" class="yearofstudy" /&gt;&lt;/p&gt;&lt;br /&gt;'; $text = $text . $commentrating; return $text; // &lt;-- terminating the execution // following code is never being executed // LIKE AND DISLIKE ON COMMENTS if(function_exists('like_counter_c')) { like_counter_c('text for like'); } if(function_exists('dislike_counter_c')) { dislike_counter_c('text for dislike'); } } </code></pre> <p>So. the <code>return</code> statement is terminating the execution of the function and rest of the code after <code>return</code> is never being reached. I don't know what/how these function calls are working but if you want to execute these <code>if(function_exists('like_counter_c'))</code> lines then move your <code>return</code> statement after these lines, something like</p> <pre><code>$text = $text . $commentrating; if(function_exists('like_counter_c')) { like_counter_c('text for like'); } if(function_exists('dislike_counter_c')) { dislike_counter_c('text for dislike'); } return $text; </code></pre> <p><strong>Update :</strong></p> <p>Add some style in your image tag, like (there are other ways too by modifying the <code>**yearofstudy**</code> class)</p> <pre><code>&lt;img src="'. $plugin_url_path . '/ExtendComment/images/'. $commentrating . 'star.gif" class="yearofstudy" style="float:right" /&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload