Support » Plugins and Hacks » A page between posts

  • Hello!

    I searched around and found links to getting adsense in between posts, and the links I found for the get-a-post and cg-inbetween plug-ins didn’t seem to work any better (but that could also be my lacking of full blown PHP skills).

    What I would like, is to be able to insert content (an excerpt and more link) from a Page I made in WordPress in between my first post and the rest of the posts.

    I’m pretty sure that this is possible some how, but I can’t seem to break the loop, everything I’ve tried just causes the page excerpt to be repeated at the end of every post.

    Thank you in advance for any help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Although this guide is about adding adsense after post #1 or #2…
    http://www.tamba2.org.uk/wordpress/adsense/
    the idea would be the same for inserting anything.

    Thank you for the heads up. I found that site earlier and tried it with the get-a-post plug-in, but when I do, nothing shows up.

    Here’s my code —

    <?php
    if ($postnum == $showadsense1) {
    get_a_post(17);
    }
    ?>
    <?php $postnum++; ?>

    It seems easy enough, but I must be missing something.

    Hi again,

    I’ve spent the last two hours trying every possible variant of that code I could possibly think of and while I can get it to display regular text, it refuses to return the requested page. I’ve use the get-a-post plug-in as well as the_permalink with the_excerpt function. Nothing seems to work.

    Any insight would be greatly appreciated.

    Thanks.

    I’m thinking you’ll have the same problems (and require the same solution) as discussed in this thread:

    http://wordpress.org/support/topic/93188

    (Note it’s possible in your case, after creating a new WP_Query object, that the standard template tags like the_title() or the_content() will work as expected and you won’t have to break things down as I explained to the other member. But no guarantees…)

    Oh my, thank you so much!

    I was going to writer about how I was 90% of the way there and request some more help because I noticed that Pages don’t use excerpt tags but I couldn’t find the correct array(?) to just display what was above the –more–.

    Low and behold I found this plug-in and now it works! I will say that if there is a non-plug-in way to do this same thing, I would be willing to try it but for now I’m all set.

    Thanks a lot for everyone’s help!!!!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘A page between posts’ is closed to new replies.