<?php 
/* DISPLAY GUEST AUTHOR */
add_action('the_author', 'guest_author_replace_author');

function guest_author_replace_author() {
	global $post;
	if (get_post_meta($post->ID, 'guest_author_name', true)) {
		return get_post_meta($post->ID, 'guest_author_name', true);
	} else {
		global $authordata;
		return $authordata->display_name;
	}
}
?>
<?php if (!empty($post->post_excerpt)) : ?>
<?php the_excerpt(); ?>
<?php else : ?>
<?php the_content('Read the rest of this entry &raquo;'); ?>
<?php endif; ?>
function trim_excerpt($text)
{
	return str_replace(' [...]', ' READ MORE...', $text);
}
add_filter('get_the_excerpt', 'trim_excerpt');
function trim_excerpt($text)
{
	return rtrim($text,'[...]');
}
add_filter('get_the_excerpt', 'trim_excerpt');
/* Contact Form 7 remove auto p */
define( 'WPCF7_AUTOP', false );
<?php
$links = get_pages('sort_column=menu_order');
foreach($links as $i => $page)
$links[$i] = '<li class="page-' . (is_page($page->ID) ? 'active' : 'item') . '"><a href="' . get_page_link($page->ID) . '" title="' . attribute_escape(apply_filters('the_title', $page->post_title)) . '">' . apply_filters('the_title', $page->post_title) . '</a></li>';
echo implode('<li><p>|</p></li>', $links);
?>
<?php bloginfo('template_directory'); ?>/
 <?php echo do_shortcode('[Your shortcode "Your option"]'); ?>
// Create an image to replace all other images
// Add this code to your .htaccess, make sure you have a backup first

RewriteEngine On
#Replace ?mysite\.com/ with your blog url
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mysite\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
#Replace /images/nohotlink.jpg with your "don't hotlink" image url
RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/nohotlink.jpg [L]
// Create a page template called "restrict" and paste this code at the top

if (is_user_logged_in()) {
// You page code goes here
} else {
echo "You must be logged in to view this page.";
}