Forums

Adding PHP Code in middle of post (12 posts)

  1. ohdiesel
    Member
    Posted 2 years ago #

    Hello,

    Does anyone knoe of a plugin of a work-a-around that allows me to include PHP code into the middle of posts? Something like "related posts" in the middle of a single post would be what I'm looking for ..

    Thanks!!

  2. adamt07
    Member
    Posted 2 years ago #

  3. ohdiesel
    Member
    Posted 2 years ago #

    Hello,

    Thanks for repolying,

    BUT will that do it automatically for me?

  4. adamt07
    Member
    Posted 2 years ago #

    related posts? no. that allows you execute php in a post. are you wanting something that will automatically show related posts?

  5. ohdiesel
    Member
    Posted 2 years ago #

    No, I mean, will it automaticlaly put things into middle or anywhere in the post as I choose with my own PHP code?

  6. ohdiesel
    Member
    Posted 2 years ago #

    Basically I am looking for something with the same functionality of Whydoworkadsense where it allows you to choose where to place ads on the fly.

    IF Whydowork had the option to include PHP I would do it in a heart beat

  7. adamt07
    Member
    Posted 2 years ago #

    if you know how to write the code to accomplish what you are wanting to do, then try that plugin. i think you may have to switch to the html view, but you can place you <?php ?> tags anywhere you want within the post/page and it will execute it. i'm not 100% clear on what you're wanting to be done automatically...

  8. ohdiesel
    Member
    Posted 2 years ago #

    Hello,

    IN whydoworkadsense plugin you put in a code peice that is auto inserted into each post. I set mine into the middle.

    That is what I want to do -- insert a php code piece into middle of each post and the output comes out like "related posts" and lists the related posts.

    Thanks!!

  9. adamt07
    Member
    Posted 2 years ago #

    ohhh...ok i get what you're asking now. i don't know of a plugin off the top of my head that will do that. one way you could do it is writing it into the template, but then you would only have the option of placing it before the content or after. did you absolutely want it in the middle?

  10. ohdiesel
    Member
    Posted 2 years ago #

    Yes, I want it in the middle. I find it hard to beleive there are no plugins to do this .. :)

    D

  11. adamt07
    Member
    Posted 2 years ago #

    i didn't say there wasn't one, just that i don't know of one off the top of my head.

  12. ohdiesel
    Member
    Posted 2 years ago #

    Anyone have any ideas ??g

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.