function wp_ulike_put_comments($content) { //auto display position $position = wp_ulike_get_setting('wp_ulike_comments', 'auto_display_position'); //add wp_ulike_comments function $button = wp_ulike_comments('put'); //return by position if ($position == 'bottom') { return $content . $button; } else { if ($position == 'top') { return $button . $content; } else { if ($position == 'top_bottom') { return $button . $content . $button; } else { return $content . $button; } } } }
</p> <h2><a href="<?php the_permalink(); ?> "><?php the_title(); ?> </a></h2> <div class="btn"> <p><a href="<?php the_permalink(); ?> ">コメント</a></p> <!-- <p><?php if (function_exists('wp_ulike_comments')) { wp_ulike_comments('get'); } ?> </p> --> </div> </article> <?php } } ?> </div> </section> </section> <?php get_sidebar(); get_footer();