• I want to add content lets say after every 5 post inside the loop. I have tried some things.

    I just don’t get it right. Either it shows on top of the loop right at the beginning or the code breaks my site.

    Here you can view my code for the loop. Can someone help me out? Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • the second part of your question is a link with no content linked…
    please can you post again your link?

    Thread Starter Mannja

    (@mannja)

    https://pastebin.com/UrNyPkus

    Ok it auto links a link. I used the link button.

    Hi, sorry I’m not that experienced, so maybe I’ll make silly questions:
    what is

    <a class="job-title" href='<?php the_permalink();?>' style="font-weight:<?php echo $font?>;font-style:<?php echo $font; ?>;" >
      <font color="#<?php echo (isset($color['code']))?$color['code']:''?>">
        <?php echo $post->post_title; ?>
      </font>
    </a>

    I mean, where do you get from the $font and other variables you’re using?

    also, if you’re inside a loop, why do you display the title like in line 13? <?php echo $post->post_title; ?> and not just like <?php the_title(); ?>

    did you write your code inside a custom page template, and for what theme?

    sorry for my poor english..

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add content (like newsletter form) inside of the loop’ is closed to new replies.