Title: Insert Code Between List Post (Index)
Last modified: March 4, 2017

---

# Insert Code Between List Post (Index)

 *  [bebibu](https://wordpress.org/support/users/bebibu/)
 * (@bebibu)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/insert-code-between-list-post-index/)
 * Dear Team (bdbrown, Denzel and all hueman fans),
 * Is it possible to insert code between post at index.php (i am not sure)? So i
   can add some pic, or adsense code etc.
 * This is the default post list: [http://prnt.sc/efwz34](http://prnt.sc/efwz34)
 * And now i want to add the green area between the post (complete with the line):
   [http://prnt.sc/efwzcs](http://prnt.sc/efwzcs)
 * thank you 🙂

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

 *  [kerdezo](https://wordpress.org/support/users/kerdezo/)
 * (@kerdezo)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/insert-code-between-list-post-index/#post-8874154)
 * Hi bebibu,
 * What about using ad placement plugin, like AdSense Plugin WP QUADS, or WP Simple
   Adsense Insertion or Advanced Ads or Ad Inserter….or similar
 * I don’t know which of these run smooth with Hueman.
 * Maybe the next advisor will live a note here by using any of the above.
 *  [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/insert-code-between-list-post-index/#post-8874205)
 * Another vote for [Ad Inserter](https://wordpress.org/plugins/ad-inserter/).
 * You can insert any code between posts on blog pages and you can also use filter
   to define positions for insertion.
 *  Thread Starter [bebibu](https://wordpress.org/support/users/bebibu/)
 * (@bebibu)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/insert-code-between-list-post-index/#post-8874859)
 * Hi kerdezo & igor, thank you for your answer. but actually i just want to add
   code manually without plugin.
 * i found this article [http://setwordpress.com/2011/06/23/how-to-insert-ads-between-posts-in-your-wordpress-homepage-site/](http://setwordpress.com/2011/06/23/how-to-insert-ads-between-posts-in-your-wordpress-homepage-site/)
   and try edit this edit there and failed :))
 * this is default code at tmpl/index-tmpl
 *     ```
       <?php if ( ! hu_is_home_empty() ) : ?>
   
           <?php if ( hu_is_checked('featured-posts-enabled') ) { get_template_part('parts/featured'); } ?>
           <?php
             if ( have_posts() ) {
                 hu_get_template_part( 'parts/post-list-articles' );
             }
           ?>
   
       <?php endif; ?>
       ```
   
 * and this is my custom code
 *     ```
       <?php if ( ! hu_is_home_empty() ) : ?>
   
           <?php if ( hu_is_checked('featured-posts-enabled') ) { get_template_part('parts/featured'); } ?>
       	<?php $count = 1; ?>
           <?php
             if ( have_posts() ) {
                 hu_get_template_part( 'parts/post-list-articles' );
             }
           ?>
       <?php if ($count == 1) : ?>
       YOUR CODE HERE
       <?php endif; $count++; ?>
       <?php endif; ?>
       ```
   
 * Yeah failed.
 * and also i try to add code manually to parts/post-list-articles and have the 
   same result.
 * Any solution how to insert code properly ([http://setwordpress.com/2011/06/23/how-to-insert-ads-between-posts-in-your-wordpress-homepage-site/](http://setwordpress.com/2011/06/23/how-to-insert-ads-between-posts-in-your-wordpress-homepage-site/))
   at hueman themes?
 * thank you

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

The topic ‘Insert Code Between List Post (Index)’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/hueman/3.7.27/screenshot.png)
 * Hueman
 * [Support Threads](https://wordpress.org/support/theme/hueman/)
 * [Active Topics](https://wordpress.org/support/theme/hueman/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/hueman/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/hueman/reviews/)

## Tags

 * [huemen](https://wordpress.org/support/topic-tag/huemen/)
 * [index](https://wordpress.org/support/topic-tag/index/)
 * [post](https://wordpress.org/support/topic-tag/post/)

 * 3 replies
 * 3 participants
 * Last reply from: [bebibu](https://wordpress.org/support/users/bebibu/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/insert-code-between-list-post-index/#post-8874859)
 * Status: not resolved