1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Wordpress homepage text between first two posts

Discussion in 'HTML & Website Design' started by intro, Oct 4, 2018.

  1. #1
    How to implement text between first two posts on homepage in a Wordpress site?
    SEMrush
     
    intro, Oct 4, 2018 IP
    SEMrush
  2. intro

    intro Active Member

    Messages:
    687
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    80
    #2
    You can lock the thread, I found a solution in a plugin called Ad Inserter in the misc filter option.
     
    intro, Oct 4, 2018 IP
  3. JasEvic

    JasEvic Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #3
    Thank you for this, I've checked Ad Inserter, pretty neat but for an easier way without plugins I recommend editing and adding something like this:

    <?php
    if (($wp_query->current_post + 1) < ($wp_query->post_count)) {
    echo '<div class="post-item-divider">Post Divider</div>';
    }
    ?>
     
    JasEvic, Oct 16, 2018 at 10:03 AM IP