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.
Another vote for 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
(@bebibu)
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/ 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/) at hueman themes?
thank you