ads in middle of a post

Home Forums AdRotate for WordPress General Support ads in middle of a post

  • #20615

    MARIA DOLORES
    Badges:

    Hello

    I’m a newbie indicate knowledge of PHP.

    I want to show ads in middle of post. Just show him at first (80 ads) or end (81 ads), but in the middle can not. As I indicated I am a novice in PHP

    My code in single.php is this:

    <?php
    // Single page template
    global $post;
    $current_post = get_the_ID();

    get_header();

    if (have_posts()) {
    while (have_posts()) {
    global $post;
    $author_id = $post->post_author;

    the_post();
    ?>

    <?php the_content(); ?>

    Can you help me?

    Thanks!!

    #20651

    Arnan de Gans
    Badges:
Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘ads in middle of a post’ is closed to new replies.

You may be interested in