Title: TJong's Replies | WordPress.org

---

# TJong

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

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

 Search replies:

## Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, and more!] Setting up the searchpage](https://wordpress.org/support/topic/setting-up-the-searchpage/)
 *  Thread Starter [TJong](https://wordpress.org/support/users/tjong/)
 * (@tjong)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/setting-up-the-searchpage/#post-3768308)
 * Thanks for the quick reply, it didnt work the first time but after some settings
   it was indeed the _Display calendar in events page?_ with a combination of the
   _Overwrite format_.
 * Thanks again for your help 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[JJ NextGen JQuery Slider] [Plugin: JJ NextGen JQuery Slider] Images load but slider doesn't](https://wordpress.org/support/topic/plugin-jj-nextgen-jquery-slider-images-load-but-slider-doesnt/)
 *  Thread Starter [TJong](https://wordpress.org/support/users/tjong/)
 * (@tjong)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-jj-nextgen-jquery-slider-images-load-but-slider-doesnt/#post-2676914)
 * Hi there,
 * Well I tried a lot to fix it but without succes. I eventually installed an other
   plugin that does the job: Nivo Slider for WordPress.
 * I hope this plugin will fix your problem.
 * Cheers
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Nivo Slider] [Plugin: WP Nivo Slider] Image keeps loading but the images dont show](https://wordpress.org/support/topic/plugin-wp-nivo-slider-image-keeps-loading-but-the-images-dont-show/)
 *  Thread Starter [TJong](https://wordpress.org/support/users/tjong/)
 * (@tjong)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-wp-nivo-slider-image-keeps-loading-but-the-images-dont-show/#post-2679796)
 * Thanks you so so much, it was indeed that I had forgotten to add those php lines..
   I do not understand how that could happen.
 * Thanks again!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Nivo Slider] [Plugin: WP Nivo Slider] Image keeps loading but the images dont show](https://wordpress.org/support/topic/plugin-wp-nivo-slider-image-keeps-loading-but-the-images-dont-show/)
 *  Thread Starter [TJong](https://wordpress.org/support/users/tjong/)
 * (@tjong)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-wp-nivo-slider-image-keeps-loading-but-the-images-dont-show/#post-2679773)
 * Thanks for your reply, I just installed the plugin. But still it isnt working
   correctly, my images are now loading but my slider is not..
 * Would you happen to know what is wrong?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Splitting up text and images in a page](https://wordpress.org/support/topic/splitting-up-text-and-images-in-a-page/)
 *  Thread Starter [TJong](https://wordpress.org/support/users/tjong/)
 * (@tjong)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/splitting-up-text-and-images-in-a-page/#post-2663425)
 * Thanks for your reaction, here is the code. I just noticed that this code only
   works for the first attachment.
 * Function.php part
 *     ```
       function get_first_attachment() {
       	global $post;
   
       	$id = $post->ID;
       	$attachments = get_children( array('post_parent' => $id, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'DESC', 'orderby' => 'menu_order ASC') );
       	$tpl = get_bloginfo('template_url');
       	$nothing = $tpl.'/nothing.jpg';
   
       	if ( empty($attachments) )
       		return $nothing;
   
       		foreach ( $attachments as $id => $attachment )
       			$link = wp_get_attachment_url($id);
       		return $link;
       }
       ```
   
 * HTML Loop part
 *     ```
       <!-- put this inside the loops -->
       <div class="alignleft"><img src="<?php echo get_first_attachment(); ?>" width="150" height="150"></div>
       <div class="alignright">
       <!-- your title, text and meta goes here -->
       </div>
       ```
   

Viewing 5 replies - 1 through 5 (of 5 total)