Code does not working
-
Hello guys!
I have the following code but it is not working, can somebody help:
[php]
$args = array(
‘number’ => ‘3’,
‘post_id’ => 50, // use post_id, not post_ID
);
$comments = get_comments($args);
foreach($comments as $comment) :
echo(‘<table width=”33%” border=”0″ align=”left” cellpadding=”0″ cellspacing=”0″ >
<tr>
<td align=”center”><img class=”elveszett-kep” src=”/wp-content/comment-image/’.$comment->comment_ID.’.jpg” width=”200″ height=”150″></td>
</tr>
<tr>
<td align=”center”><div class=”text-limit”>‘.$comment->comment_content).’</div></td>
</tr>
</table>’;
endforeach;
[/php]https://www.ads-software.com/plugins/allow-php-in-posts-and-pages/
- The topic ‘Code does not working’ is closed to new replies.