Title: Code does not working
Last modified: August 21, 2016

---

# Code does not working

 *  [tRUStY](https://wordpress.org/support/users/trustyhu/)
 * (@trustyhu)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/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″>](https://wordpress.org/elveszett-allatok?output_format=md)
   </td> </tr> <tr> <td align=”center”><div class=”text-limit”>[‘.$comment->comment_content).’](https://wordpress.org/elveszett-allatok?output_format=md)
   </div></td> </tr> </table>’; endforeach; [/php]
 * [http://wordpress.org/plugins/allow-php-in-posts-and-pages/](http://wordpress.org/plugins/allow-php-in-posts-and-pages/)

The topic ‘Code does not working’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/allow-php-in-posts-and-pages_edefed.
   svg)
 * [Allow PHP in Posts and Pages](https://wordpress.org/plugins/allow-php-in-posts-and-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/allow-php-in-posts-and-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/allow-php-in-posts-and-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/allow-php-in-posts-and-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/allow-php-in-posts-and-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/allow-php-in-posts-and-pages/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [tRUStY](https://wordpress.org/support/users/trustyhu/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/code-does-not-working/)
 * Status: not resolved