Title: the_content &#8211; native code
Last modified: August 20, 2016

---

# the_content – native code

 *  [solutho](https://wordpress.org/support/users/solutho/)
 * (@solutho)
 * [15 years ago](https://wordpress.org/support/topic/the_content-native-code/)
 * Hey there, I’m adding the TimThumb plugin to my theme, but i got into an issue.
 * I’m adding this just before the_content tag:
 *     ```
       <?php if ( get_post_meta($post->ID, 'thumb', true) ) { ?>
   
       		<img class="postthumb" src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?src=<?php echo get_post_meta($post->ID, "thumb", $single = true); ?>&h=150&w=150&zc=1" alt="<?php the_title(); ?>" width="100" height="57" />
   
       <?php } ?>
       ```
   
 * It works great, but since that html tag is outside the <p> of the the_content,
   the text of the post cant get wraped around the image – if I add an image the
   normal way, it gets wrapped, the text is being justified.
 * I’m thinking about adding that initial code for the TimThumb image inside the
   <p> that is inside the the_content, but obviously I cant do it. So, I guess that
   the_theme tag is like an include, but where’s located the code to be included?
   
   Or even better, I’d like to replace the the_content tag by the code it represents.
 * I’d really like some help 🙂
 * Thanks

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

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years ago](https://wordpress.org/support/topic/the_content-native-code/#post-2131948)
 * > since that html tag is outside the <p> of the the_content, the text of the 
   > post cant get wraped around the image …
 * probably caused by a style of the paragraph tag…
 * link to your site?
 *  Thread Starter [solutho](https://wordpress.org/support/users/solutho/)
 * (@solutho)
 * [15 years ago](https://wordpress.org/support/topic/the_content-native-code/#post-2131954)
 * Exactly :s
    Here: [](http://79.143.184.10/blog2/)
 *  Thread Starter [solutho](https://wordpress.org/support/users/solutho/)
 * (@solutho)
 * [15 years ago](https://wordpress.org/support/topic/the_content-native-code/#post-2131968)
 * It seems like I cant post the link:
 * 79.143.184.10/blog2
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years ago](https://wordpress.org/support/topic/the_content-native-code/#post-2131971)
 * the post-thumb does not have any alignment css classes;
 * if you want the text to wrap the image, try to add the css class `.alignleft`
   to the image code:
 * `<img class="postthumb alignleft" src="<?php bloginfo('template_directory'); ?
   >/scripts/timthumb.php?src=<?php echo get_post_meta($post->ID, "thumb", $single
   = true); ?>&h=150&w=150&zc=1" alt="<?php the_title(); ?>" width="100" height="
   57" class="alignleft" />`
 *  Thread Starter [solutho](https://wordpress.org/support/users/solutho/)
 * (@solutho)
 * [15 years ago](https://wordpress.org/support/topic/the_content-native-code/#post-2131979)
 * Wow, I had no idea it could be done having the image outside the paragraph tag.
 * Thank you very much!
 *  Thread Starter [solutho](https://wordpress.org/support/users/solutho/)
 * (@solutho)
 * [15 years ago](https://wordpress.org/support/topic/the_content-native-code/#post-2131981)
 * I had no idea you could wrap a paragraph with an image ouside.
 * thank you very much!

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

The topic ‘the_content – native code’ is closed to new replies.

 * 6 replies
 * 2 participants
 * Last reply from: [solutho](https://wordpress.org/support/users/solutho/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/the_content-native-code/#post-2131981)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
