Title: cloudstr210's Replies | WordPress.org

---

# cloudstr210

  [  ](https://wordpress.org/support/users/cloudstr210/)

 *   [Profile](https://wordpress.org/support/users/cloudstr210/)
 *   [Topics Started](https://wordpress.org/support/users/cloudstr210/topics/)
 *   [Replies Created](https://wordpress.org/support/users/cloudstr210/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/cloudstr210/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/cloudstr210/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/cloudstr210/engagements/)
 *   [Favorites](https://wordpress.org/support/users/cloudstr210/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 50 total)

1 [2](https://wordpress.org/support/users/cloudstr210/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/cloudstr210/replies/page/3/?output_format=md)
[4](https://wordpress.org/support/users/cloudstr210/replies/page/4/?output_format=md)
[→](https://wordpress.org/support/users/cloudstr210/replies/page/2/?output_format=md)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Get the featured image using post_thumbnail_html](https://wordpress.org/support/topic/get-the-featured-image-using-post_thumbnail_html/)
 *  Thread Starter [cloudstr210](https://wordpress.org/support/users/cloudstr210/)
 * (@cloudstr210)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/get-the-featured-image-using-post_thumbnail_html/#post-5997387)
 * Got this code on the net and added it to my functions.php
 *     ```
       add_filter( 'post_thumbnail_html', 'my_post_image_html', 10, 3 );
       function my_post_image_html( $html, $post_id, $post_image_id ) {
       	$html = '<a href="' . get_permalink( $post_id ) . '" title="' . esc_attr( get_post_field( 'post_title', $post_id ) ) . '">' . $html . '</a>';
       	return $html;
       };
       ```
   
 * then to use it, use this code:
 * `<?php echo the_post_thumbnail('thumbnail'); ?>`
 * If you have a better suggestion please reply.
 * Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[GIF Animation Preview] How to use this on featured image](https://wordpress.org/support/topic/how-to-use-this-on-featured-image/)
 *  Thread Starter [cloudstr210](https://wordpress.org/support/users/cloudstr210/)
 * (@cloudstr210)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/how-to-use-this-on-featured-image/#post-5988209)
 * This is how my theme shows the thumbnail of the post in the homepage.
 *     ```
       if( has_post_thumbnail() ) {  ?>
           <?php $featuredImage = wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>
               	<img src="<?php echo $featuredImage; ?>" alt="<?php echo the_title(); ?>" />
               	<div class="entry-overlay"><span class="icon-fullscreen"></span></div>
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Custom Fields Search] not compatible with WP 3.8 ?](https://wordpress.org/support/topic/not-compatible-with-wp-38-40/)
 *  [cloudstr210](https://wordpress.org/support/users/cloudstr210/)
 * (@cloudstr210)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/not-compatible-with-wp-38-40/#post-4745173)
 * it still working for me..
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[YARPP - Yet Another Related Posts Plugin] [Plugin: Yet Another Related Posts Plugin] Related Post Appear Twice on my blog.](https://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-related-post-appear-twice-on-my-blog/)
 *  Thread Starter [cloudstr210](https://wordpress.org/support/users/cloudstr210/)
 * (@cloudstr210)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-yet-another-related-posts-plugin-related-post-appear-twice-on-my-blog/#post-2449559)
 * Thanks! It works.. Sorry.. Im noob on php..
 * Thanks again.. Nice plugin btw,
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Checking if the User is Admin](https://wordpress.org/support/topic/checking-if-the-user-is-admin/)
 *  Thread Starter [cloudstr210](https://wordpress.org/support/users/cloudstr210/)
 * (@cloudstr210)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/checking-if-the-user-is-admin/page/2/#post-2422830)
 * Thank you.. Problem solved!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Checking if the User is Admin](https://wordpress.org/support/topic/checking-if-the-user-is-admin/)
 *  Thread Starter [cloudstr210](https://wordpress.org/support/users/cloudstr210/)
 * (@cloudstr210)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/checking-if-the-user-is-admin/#post-2422816)
 * Yup, I need to check if the current user is admin..
 * Do i need to put <?php?
 * could you give me sample with adsense dummy code on it.. thanks!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Checking if the User is Admin](https://wordpress.org/support/topic/checking-if-the-user-is-admin/)
 *  Thread Starter [cloudstr210](https://wordpress.org/support/users/cloudstr210/)
 * (@cloudstr210)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/checking-if-the-user-is-admin/#post-2422810)
 * I tried this too..
 * <?php if (!is_admin()) { ?>
    echo ‘<?php include(‘adsense.php’); ?>’; <?php }?
   >
 * But it seem that the function !is_admin is not working?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Checking if the User is Admin](https://wordpress.org/support/topic/checking-if-the-user-is-admin/)
 *  Thread Starter [cloudstr210](https://wordpress.org/support/users/cloudstr210/)
 * (@cloudstr210)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/checking-if-the-user-is-admin/#post-2422809)
 * [@danhgilmore](https://wordpress.org/support/users/danhgilmore/)
 * Its the last code of the adsense code.
 * [@esmi](https://wordpress.org/support/users/esmi/)
 * Thanks for the reply.. I know theres nothing wrong in it but its not working 
   for me..
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Checking if the User is Admin](https://wordpress.org/support/topic/checking-if-the-user-is-admin/)
 *  Thread Starter [cloudstr210](https://wordpress.org/support/users/cloudstr210/)
 * (@cloudstr210)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/checking-if-the-user-is-admin/#post-2422808)
 * I tried this code.. and have no error, but the adsense is still showing even 
   the admin is login..
 *     ```
       <?php if (!is_admin()) { ?>
       <?php include('adsense.php'); ?>
       <?php } ?>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Checking if the User is Admin](https://wordpress.org/support/topic/checking-if-the-user-is-admin/)
 *  Thread Starter [cloudstr210](https://wordpress.org/support/users/cloudstr210/)
 * (@cloudstr210)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/checking-if-the-user-is-admin/#post-2422805)
 * Does not work too.. This is the error
 * Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ in /home/
   xxx/public_html/xxxx/wp-content/themes/xxx/single.php on line 6
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Get Image on Post Using Custom Fields](https://wordpress.org/support/topic/get-image-on-post-using-custom-fields/)
 *  Thread Starter [cloudstr210](https://wordpress.org/support/users/cloudstr210/)
 * (@cloudstr210)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/get-image-on-post-using-custom-fields/#post-2414162)
 * sorry.. forgot to use code block:
 * the code again..
 *     ```
       <a href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php get_thumbnail($post->ID, 'full'); ?>&h=100&w=100&zc=1" alt="<?php the_title(); ?>" /></a>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Facebook like page is too small..](https://wordpress.org/support/topic/facebook-like-page-is-too-small/)
 *  Thread Starter [cloudstr210](https://wordpress.org/support/users/cloudstr210/)
 * (@cloudstr210)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/facebook-like-page-is-too-small/#post-2271110)
 * thank you now it works!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Facebook like page is too small..](https://wordpress.org/support/topic/facebook-like-page-is-too-small/)
 *  Thread Starter [cloudstr210](https://wordpress.org/support/users/cloudstr210/)
 * (@cloudstr210)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/facebook-like-page-is-too-small/#post-2271107)
 * here is the sample..
 * [http://thesisworks.com/2011/information-technology-thesis/faculty-loading-introduction/](http://thesisworks.com/2011/information-technology-thesis/faculty-loading-introduction/)
 * just go below the post..
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Facebook like page is too small..](https://wordpress.org/support/topic/facebook-like-page-is-too-small/)
 *  Thread Starter [cloudstr210](https://wordpress.org/support/users/cloudstr210/)
 * (@cloudstr210)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/facebook-like-page-is-too-small/#post-2271105)
 * This is the code.. I wonder why it is too small..
 * `<iframe src="http://www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.
   facebook.com%2Fpages%2FTHESISWORKS%2F142584239164763%3F&width=185&colorscheme
   =light&show_faces=true&border_color&stream=false&header=true&height=290" scrolling
   ="no" frameborder="0" style="border:none; overflow:hidden; width:185px; height:
   290px;" allowTransparency="true"></iframe>`
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Facebook like page is too small..](https://wordpress.org/support/topic/facebook-like-page-is-too-small/)
 *  Thread Starter [cloudstr210](https://wordpress.org/support/users/cloudstr210/)
 * (@cloudstr210)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/facebook-like-page-is-too-small/#post-2271067)
 * Up please.

Viewing 15 replies - 1 through 15 (of 50 total)

1 [2](https://wordpress.org/support/users/cloudstr210/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/cloudstr210/replies/page/3/?output_format=md)
[4](https://wordpress.org/support/users/cloudstr210/replies/page/4/?output_format=md)
[→](https://wordpress.org/support/users/cloudstr210/replies/page/2/?output_format=md)