WordPress.org

Forums

An <--advertisement--> tag? (7 posts)

  1. JPigford
    Member
    Posted 10 years ago #

    My, as well as others, sites are supported by advertisements. What would be awesome to be able to do is drop in an ad into the content where we see fit. There could be an <--advertisement--> tag similar to the <--more--> tag and then somewhere in the options you could define exactly what code would be dropped in there.

  2. Michael Bishop

    Posted 10 years ago #

    How much would it be worth it to you to have such a plugin??
    Just kidding, sorta of.
    I've seen some skeleton code posted here, by Kafesqui (boy did I butcher that spelling) that would basically allow you to define your own quicktag. There's also some explanation in the codex on how to create your buttons for the quicktags in your admin panel. So it is doable.

  3. JPigford
    Member
    Posted 10 years ago #

    It'd be worth 3 pieces of cheese toast and a sheet of bubble wrap. I'll check around the codex and see what I can scrounge up.

  4. Michael Bishop

    Posted 10 years ago #

    http://guff.szub.net/source/my-tags.php
    The link kafkaesqui posted for a "create" your own quicktag.

  5. davidchait
    Member
    Posted 10 years ago #

    I actually already have the underpinnings for this in CG-Inline, just wasn't sure what people would need. My actual advertising 'inbetweens' code on my site is in the process of migrating to a separate plugin -- that will automatically let you add it to the start, end, or say after the opening excerpt, of every article... and will be done without manual intervention like CG-Inline. But both will be useful.

    Are you doing Adsense (which I'd likely do via inclusion of an .htm file with the adsense code, or have it in a variable), or do you have a grander schema (like phpAds, which I also use)?

    -f

  6. phiali
    Member
    Posted 10 years ago #

    I'm using the AdSense plugin by Phil Hord - http://philhord.com/wp-hacks/adsense

    Works great for me and I guess you could modify it to be used with other ad providers as well?

  7. JPigford
    Member
    Posted 10 years ago #

    I have a separate ad script and have a small snippet of code that I would just need to drop in.

Topic Closed

This topic has been closed to new replies.

About this Topic