Title: Adding Text between Posts
Last modified: August 31, 2016

---

# Adding Text between Posts

 *  [vtabar](https://wordpress.org/support/users/vtabar/)
 * (@vtabar)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/adding-text-between-posts/)
 * Hello!
 * Apologies if this topic has been tackled.
 * I’m using (child) tracks.
 * Is it possible to add text in between the posts on the homepage and possibly 
   a call to action?

Viewing 1 replies (of 1 total)

 *  Theme Author [Ben Sibley](https://wordpress.org/support/users/bensibley/)
 * (@bensibley)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/adding-text-between-posts/#post-7113749)
 * This is possible, it will just require working with some PHP.
 * You’ll want to copy the index.php file into your child theme. Then you can edit“
   [the loop](https://codex.wordpress.org/The_Loop)” on lines 6-13 like this:
 *     ```
       <?php
       	if ( have_posts() ) :
                       $count = 1;
       		while ( have_posts() ) :
       			the_post();
       			ct_tracks_get_content_template();
                               if ( is_archive() && $count == 3 ) {
                                echo '<div class="between-posts">';
                                  echo '<p>Text here</p>';
                                echo '</div>';
                               }
       		endwhile;
       	endif;
       ?>
       ```
   
 * This adds a count variable starting at 1, and then if you’re on an archive page(
   blog, category, tag) and just output the **third post**, it will output some 
   HTML and text.
 * You can use this as an outline, and modify it to include text before/after any
   number of posts on the blog/homepage.

Viewing 1 replies (of 1 total)

The topic ‘Adding Text between Posts’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/tracks/1.81/screenshot.png)
 * Tracks
 * [Support Threads](https://wordpress.org/support/theme/tracks/)
 * [Active Topics](https://wordpress.org/support/theme/tracks/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/tracks/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/tracks/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ben Sibley](https://wordpress.org/support/users/bensibley/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/adding-text-between-posts/#post-7113749)
 * Status: not resolved