SHARE
TWEET

Untitled

a guest Apr 7th, 2012 80 Never
  1. <div class="post-content">
  2. <?php
  3. $content = apply_filters('the_content', $post->post_content);
  4. $save = explode("</p>", $content);
  5. $count = 1;
  6. foreach ($save as $a){
  7. if ($count == 12){
  8.    if (strcmp( date("Y-m-d", strtotime("-10 day")), get_the_time("Y-m-d") ) > 0) {
  9.    ?>
  10. AD CODE
  11.    <?php
  12.    }
  13.    
  14. }
  15. echo $a."</p>";
  16. $count = $count + 1;
  17. }
  18. ?>
  19.                                 <?php wp_link_pages(); ?>
  20.                         </div><!-- post-content -->
RAW Paste Data
Top