Comment on WordPress Hacks by SEO Dave.

WordPress Hacks To create a template page that will only show the content of a page and nothing else (no theme parts) try this code:

Template Name: Blank SEO

<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php the_content() ;?>
<?php endwhile; ?>
<?php else : ?>
<?php endif; ?>

This is the minimum code needed to show the content of a page.

Name it something like blank-seo.php and upload it to your themes folder (this will work for any WordPress theme).

Create a new page (only works with WordPress Pages, not Blog Posts) and select the Blank SEO template for that page.

Name the Page something relevant and add your squeeze page as the content.

Save it and it should create a page that uses all the HTML elements of your squeeze page and have no WordPress theme elements at all (no header, sidebar, footer etc….). The page will also be linked fro menus etc… like any other page.

I tested this on this site earlier, made a page called SEO Test which after testing I set it to Draft, which interestingly means it’s removed from menus etc… (so no links to it), but still exists.

It shows a single line of text (all I added to the content) plus some text related to a Popularity Plugin I use on this site. Some plugins are added to the end of the content function and this plugin does that.

Had I added a full HTML based page to that page (and disabled the Popularity plugin) it should look like any other static HTML page.

Not the most useful thing to do with WordPress, but shows it works :)

David Law