Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Template Name: Content Only
- * @package WordPress
- */
- /*
- This template can be used as a way to only show your events information without any template styling, which
- could come in useful if you were embedding an iframe on another site and displaying events that way.
- You could add specific styling just for this page by modifying the code below.
- To install, insert the whole contents of this snippet onto a new file such as "content-only-template.php" and add the file to your theme folder.
- To use, create a page on your WordPress site, and select the template 'Content Only'. Add whatever content you want to the page such as EM shortcodes, and view the page.
- */
- ?>
- <!DOCTYPE html>
- <html <?php language_attributes(); ?>>
- <head>
- <meta charset="<?php bloginfo( 'charset' ); ?>" />
- <meta name="viewport" content="width=device-width" />
- <title><?php wp_title( '|', true, 'right' ); ?></title>
- <link rel="profile" href="http://gmpg.org/xfn/11" />
- <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
- </head>
- <body>
- <?php while ( have_posts() ) : the_post(); ?>
- <?php the_content(); ?>
- <?php endwhile; // end of the loop. ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement