WordPress.org

Ready to get started?Download WordPress

Forums

Want to show x amount of words, then an ad, and then more words (7 posts)

  1. jag5311
    Member
    Posted 8 years ago #

    I want to place some google adsense code inside my content.

    Is the best way to manually ad the code to every post, or is there a way I can have it show the code after xxx amount of words/characters, and then show the rest of the entry?

    Thanks

  2. tomhanna
    Member
    Posted 8 years ago #

    You don't want to show it on more than 3 posts per page (less if you have ads anywhere else on the page) as the Terms of Service only allow 3 ad units and 1 link unit per page. That said, there are several advertising plugins that can help or you can include it in your template for the first post on the page.

    http://codex.wordpress.org/User:Tomhanna/Adding_Ads_to_Wordpress

  3. jag5311
    Member
    Posted 8 years ago #

    Ok, now I simply want to have the option to include some PHP inside one of my postings, simply to using a PHP Include File (like, google.php with the adsense code)

    I have tried http://www.nosq.com/2004/10/runphp-wordpress-plugin/ but that doesn't seem to work

    I also have tried http://mark.scottishclimbs.com/archives/2004/07/02/running-php-in-wordpress-posts/

    and that doesn't work. I get alot of HEADER ERRORs at the top of the admin tool when trying to activate Mars runphp plugin.

    All I want to do is use PHP includes inside my postings.

    Thanks

  4. bambam4479
    Member
    Posted 8 years ago #

    try CG-QuickPHP from David Chait
    link. I use it on all of my pages and it runs great.

  5. TechGnome
    Moderator
    Posted 8 years ago #

    tomhanna: You don't want to show it on more than 3 posts per page (less if you have ads anywhere else on the page) as the Terms of Service only allow 3 ad units and 1 link unit per page. That said, there are several advertising plugins that can help or you can include it in your template for the first post on the page.

    ?! Mind if I ask where in the world that is? What TOS are you talking about?

    Tg

  6. Michael Bishop

    Posted 8 years ago #

  7. tomhanna
    Member
    Posted 8 years ago #

    TechGnome, question was regarding Adsense - "I want to place some google adsense code inside my content." So, I was referring to the Adsense TOS:

    # Up to three ad units may be displayed on each Web site page.
    # A maximum of two Google AdSense for search boxes may be placed on a page.
    # A single link unit may be placed on each Web site page, in addition to the ad units and search boxes specified above. Link units are considered to be 'Google ads' for purposes of these program policies.

    https://www.google.com/adsense/policies

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags