Recent Posts
PHP | 3 sec ago
None | 4 sec ago
None | 4 sec ago
HTML | 14 sec ago
None | 15 sec ago
XML | 18 sec ago
Python | 18 sec ago
Python | 27 sec ago
None | 32 sec ago
PHP | 39 sec ago
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
Learn a little bit about the new Pastebin.com on our help page. hide message
By Nicki on the 29th of Oct 2008 02:55:39 PM Download | Raw | Embed | Report
  1. <?php
  2. if ( is_page(179) ) {
  3.                 echo'<title>'; bloginfo('name'); wp_title(); echo'</title>';
  4. } else if ( is_single() && 'Humpday Hilarities' == single_post_title('', FALSE)) {
  5.                 // to fix dupe content descriptions for search engines
  6.                 echo'<title>'; wp_title('',true,''); echo " - ";
  7.         the_time('F j, Y'); echo'</title>';
  8.                 // else all as normal...
  9. } else if ( is_404() ) {
  10.                 echo '<title>'; bloginfo('name'); echo ' - 404 Error'; echo '</title>';
  11. } else if ( is_search() ) {
  12.      echo'<title>'; echo 'Search Results for: "'; echo wp_specialchars($s, 1);
  13.      echo '" - '; bloginfo('name'); echo'</title>';
  14. } else {
  15.                 echo '<title>'; wp_title('',true,''); echo '</title>';
  16. }
  17. ?>
Submit a correction or amendment below. Make A New Post
To highlight particular lines, prefix each line with @h@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: