Forums

Ads / Content between/inside the post (5 posts)

  1. Sr-ultimate
    Member
    Posted 3 years ago #

    I wanted to put some content, like "Ads" or "related posts" under the image of any post. And/or put some ads between the posts. Is this possible ?

  2. mrmist
    Forum Janitor
    Posted 3 years ago #

    Between posts you could modify your theme to place your advert block inside the <?php while (have_posts()) : the_post(); ?> loop (which ends with <?php endwhile; ?>.

    Under images could be more tricky. You may need to use a plugin to do that, as you would probably be filtering the_content

  3. Sr-ultimate
    Member
    Posted 3 years ago #

    Yes, so is there any such plugin that does the job ? or any plugin similar to it so that I can check how it works and maybe I'll get it this working ?

  4. mrmist
    Forum Janitor
    Posted 3 years ago #

    You might need to write your own plugin. Or something like this maybe?

    Your best bet is probably a google search.

  5. tommangatt
    Member
    Posted 2 years ago #

    i would like to include 5 similar posts, using Similar Posts plugin, inside the text of each single post in my blog. i use the theme mimbo3. it renders posts with <div class="entry clearfloat">
    <?php the_content('<p>'.__('Read the rest of this entry','Mimbo').'»</p>'); ?>

    <?php wp_link_pages(array(
    'before' => '<p> '.__('Pages:','Mimbo').' ',
    'after' => '</p>',
    'next_or_number' => 'number'));
    ?>
    </div>

    where should and how should i include the related plugin tag <?php similar_posts(); ?> to keep the similar posts titles in a box inside the text?

Topic Closed

This topic has been closed to new replies.

About this Topic