Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if ( 'project' == get_post_type() ) { //http://codex.wordpress.org/Conditional_Tags#A_Post_Type ?>
- <title><?php _e( 'Portfolio - Project ', 'sl50' ); ?><?php echo get_the_title($post->ID); ?> | Senlin Online</title>
- <meta name="description" content="<?php // source: http://www.michelem.org/2008/07/11/wordpress-dynamic-meta-description-and-keywords-howto/
- $out_excerpt = str_replace(array("\r\n", "\r", "\n"), "", get_the_excerpt());
- echo apply_filters('the_excerpt_rss', $out_excerpt); ?>" />
- <meta name="keywords" content="<?php // get tags outside loop - http://wordpress.org/support/topic/get-tags-outside-the-loop?replies=5#post-905618
- global $post;
- foreach(get_the_tags($post->ID) as $tag) {
- echo $tag->name . ', ';
- }
- ?>" />
- <?php } else { ?>
- <title><?php wp_title(''); // original TwentyTen code
- // Add the blog name.
- //bloginfo( 'name' );
- // Add the blog description for the home/front page.
- $site_description = get_bloginfo( 'description', 'display' );
- if ( $site_description && ( is_home() || is_front_page() ) )
- echo " | $site_description";
- // Add a page number if necessary:
- if ( $paged >= 2 || $page >= 2 )
- echo ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) );
- ?></title>
- <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement