• Resolved bfrye26

    (@bfrye26)


    Hello,

    Love the plugin, it is one of the most professional options out there. Right now I am trying to have the template display posts, and every say 5 or so posts it displays a script for some advertisement or an “around the web” type box.

    The only issue is I can for the life of me not get it to work. If we have anything in the box with a condition it will just not render anything.

    I have even tried just adding in code to display text every 5 posts. yet still no dice.

    I welcome your help on the matter.

    Here is the code right now, and it refuses to render.

    <li<?php if (! has_post_thumbnail() ) { echo ' class="no-img"'; } ?>>
       <?php if ( has_post_thumbnail() ) {
          the_post_thumbnail(array(150,150));
       }?>
       <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
       <p class="entry-meta">
           <?php the_time("F d, Y"); ?>
       </p>
       <?php the_excerpt(); ?>
    </li>
    <?php
      if($alm_current === 6){
       echo "Hello World";
      }
    ?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Special Code Every X Posts’ is closed to new replies.