Ad In Content WordPress Plugin (Beta)

Ad In Content WordPress Plugin (Beta) « WordPress « Blog

August 2nd, 2007 | by Ben

I’ve developed a WordPress Plugin that allows an author to insert ads within content of their posts. You could really use it to insert whatever code you wanted within your posts. NOTE: this is a beta plugin and I have not done extensive testing with it. Use at your own risk. Has been tested only on WordPress 2.2.1. It’s my first WordPress plugin so go easy on me. ;)

Installation

  1. Download the plugin.
  2. Unzip the plugin.
  3. Copy the ad-in-content directory/folder and all the files into your plugins folder, should look like this: /rootdirectory/wp-content/plugins/ad-in-content/
  4. Activate the plugin.
  5. Go to the Ad In Content Options page (located under the Options tab).
  6. Insert the ad code you wish to be placed within your content. There’s some dummy code there that floats a black box to the right. Adjust it to your liking or delete it and add your own.

Usage

  1. First, make sure you’ve input your ad code in the options page (Options » Ad In Content Options).
  2. Then go to an article or page that you want the code to show up in.
  3. Ad the following where you want your ad code to go: [AD-REPLACE].

IMPORTANT!!! If you place the ad code within the first paragraph of a post you may get some unexpected results. WordPress will grab the first paragraph of your post for an excerpt if you choose to only show excerpts on your blog. When the ad code is within the text that WordPress grabs, you may receive the code as text instead of the ad. I haven’t tested this yet on a blog that uses full posts rather than excerpts for the home or category pages so I’m not sure what it’ll do there. Works fine on a site that does excerpts on the home/category pages and then uses the single.php page for showing the full post.

Screenshots

Public article
ad-in-content.png
Admin Options Page
options-page.png

Special Thanks

Special thanks goes out to Chip Cuccio for supplying a large portion of the coding that I used as a basis for this plugin. I used his Contact Form ][ to start from.



Leave a Comment