<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Walker News &#187; Weblog</title>
	<atom:link href="http://www.walkernews.net/tag/weblog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.walkernews.net</link>
	<description>A capsule of walker's experience in life...</description>
	<lastBuildDate>Tue, 07 Sep 2010 15:53:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How To Create Image Template File For The Classic WordPress Theme?</title>
		<link>http://www.walkernews.net/2009/04/17/how-to-create-image-template-file-for-the-classic-wordpress-theme/</link>
		<comments>http://www.walkernews.net/2009/04/17/how-to-create-image-template-file-for-the-classic-wordpress-theme/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 17:09:56 +0000</pubDate>
		<dc:creator>Walker</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[Weblog]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[WordPress 2.5]]></category>
		<category><![CDATA[WordPress Theme]]></category>

		<guid isPermaLink="false">http://www.walkernews.net/?p=2472</guid>
		<description><![CDATA[Another attempt to show you how to create an image.php template file for old WordPress theme.]]></description>
			<content:encoded><![CDATA[WordPress image gallery is good for those who are running photo-blog or posting photograph regularly. With WordPress 2.5 and above inbuilt the feature at out of the box, you might not need to rely on more third party WordPress plugin.<br />
<span id="more-2472"></span><br />
According to <a href="http://codex.wordpress.org/Template_Hierarchy" title="WordPress Codex: Template file hierarchy" rel="bookmark" target="_blank">WordPress template hierarchy</a>, the WordPress 2.5 uses image.php template file to render a zoom-in image of the thumbnail being clicked. <br />
<br /><!--wgadh-->In case there is NO such template file, it looks for attachment.php, followed by single.php, and finally the index.php template file.<br />
<br />Therefore, it&#8217;s perfectly fine to apply image gallery even if the active WordPress theme does not come with image.php template file.<br />
<br />However, it is good to have this dedicated template file to gain most (if not all) features of WordPress image gallery. For example, it&#8217;s easier to include image gallery related functions in this new template file, to display hyperlinked thumbnail of next and previous image in gallery as well as the <a href="http://www.walkernews.net/2009/04/13/turn-on-wordpress-feature-to-display-photo-exif-data-and-iptc-information/" title="How to display or show photograph EXIF  and IPTC data with WordPress image gallery functions?" rel="bookmark">photograph EXIF or IPTC data</a> (such as Copyright info, shutter speed, aperture, ISO, focal length, camera model, etc).<br />
<br />So, <span class="subhead">how to create an image.php template file</span>, if your active WordPress theme does not have one?<br />
<br />Let me use the Classic WordPress theme bundled with WordPress 2.7 as an example. If you look at your WordPress installation, there is no image.php, single.php, or attachment.php template file in the classic directory.<br />
<br />Instead of creating a new template file from zero, it&#8217;s easier to use index.php template file as a base. So, just duplicate (copy) the index.php and name it as image.php:<br />
<pre>
cp index.php image.php
</pre>
<br />Next, open the image.php file for modification:<br />
<br />1) Replace the_permalink() and the_title() functions with image gallery functions, in order to present hyperlink of parent post instead of permalink of the medium size (zoom-in) image.<br />
<br />In this case, the original line<br />
<pre>
&lt;a href="&lt;?php the_permalink() ?&gt;" rel="bookmark"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;
</pre>
<br />is changed to be<br />
<pre>
&lt;a href="&lt;?php echo get_permalink($post-&gt;post_parent); ?&gt;" rel="bookmark"&gt;&lt;?php echo get_the_title($post-&gt;post_parent); ?&gt;&lt;/a&gt;
</pre>
<br />2) Look for the_content() and replace it with new functions that display hyperlinked thumbnail of previous and next image in gallery, the medium size image of thumbnail being clicked, and the photograph EXIF / IPTC data (if any).<br />
<br />So, this orginal line:<br />
<pre>
&lt;?php the_content(__('(more...)')); ?&gt;
</pre>
<br />is replaced by this block of PHP + HTML code:<br />
<pre>
<span style="color:#FF6666;">&lt;!-- To display thumbnail of previous and next image in the photo gallery --&gt;</span>
&lt;div style="float:right;"&gt;
      &lt;?php next_image_link() ?&gt;
&lt;/div&gt;&lt;?php previous_image_link() ?&gt;&lt;br /&gt;

<span style="color:#FF6666;">&lt;!-- To display current image in the photo gallery --&gt;</span>
&lt;div style="text-align: center;"&gt;
      &lt;a href="&lt;?php echo wp_get_attachment_url($post-&gt;ID); ?&gt;"&gt;&lt;?php echo wp_get_attachment_image( $post-&gt;ID, 'medium' ); ?&gt;&lt;/a&gt;
&lt;/div&gt;&lt;br /&gt;

<span style="color:#FF6666;">&lt;!-- Using WordPress functions to retrieve the extracted EXIF information from database --&gt;</span>
&lt;div style="padding:5px 0 5px 20px;border:1px dotted;"&gt;
   &lt;?php
      $imgmeta = wp_get_attachment_metadata( $id );

<span style="color:#FF6666;">// Convert the shutter speed retrieve from database to fraction</span>
      if ((1 / $imgmeta['image_meta']['shutter_speed']) &gt; 1)
      {
         if ((number_format((1 / $imgmeta['image_meta']['shutter_speed']), 1)) == 1.3
         or number_format((1 / $imgmeta['image_meta']['shutter_speed']), 1) == 1.5
         or number_format((1 / $imgmeta['image_meta']['shutter_speed']), 1) == 1.6
         or number_format((1 / $imgmeta['image_meta']['shutter_speed']), 1) == 2.5){
            $pshutter = "1/" . number_format((1 / $imgmeta['image_meta']['shutter_speed']), 1, '.', '') . " second";
         }
         else{
           $pshutter = "1/" . number_format((1 / $imgmeta['image_meta']['shutter_speed']), 0, '.', '') . " second";
         }
      }
      else{
         $pshutter = $imgmeta['image_meta']['shutter_speed'] . " seconds";
       }

<span style="color:#FF6666;">// Start to display EXIF and IPTC data of digital photograph</span>
       echo "Date Taken: " . date("d-M-Y H:i:s", $imgmeta['image_meta']['created_timestamp'])."&lt;br /&gt;";
       echo "Copyright: " . $imgmeta['image_meta']['copyright']."&lt;br /&gt;";
       echo "Credit: " . $imgmeta['image_meta']['credit']."&lt;br /&gt;";
       echo "Title: " . $imgmeta['image_meta']['title']."&lt;br /&gt;";
       echo "Caption: " . $imgmeta['image_meta']['caption']."&lt;br /&gt;";
       echo "Camera: " . $imgmeta['image_meta']['camera']."&lt;br /&gt;";
       echo "Focal Length: " . $imgmeta['image_meta']['focal_length']."mm&lt;br /&gt;";
       echo "Aperture: f/" . $imgmeta['image_meta']['aperture']."&lt;br /&gt;";
       echo "ISO: " . $imgmeta['image_meta']['iso']."&lt;br /&gt;";
       echo "Shutter Speed: " . $pshutter . "&lt;br /&gt;"
   ?&gt;
&lt;/div&gt;

&lt;?php if ( !empty($post-&gt;post_excerpt) ) the_excerpt(); ?&gt;&lt;br /&gt;
</pre>
<br />
<ul class="related_post"><li><a href="http://www.walkernews.net/2009/06/25/add-shutter-speed-aperture-exif-or-iptc-data-to-wordpress-gallery/" title="Add Shutter Speed, Aperture, EXIF, Or IPTC Data To WordPress Gallery">Add Shutter Speed, Aperture, EXIF, Or IPTC Data To WordPress Gallery</a></li><li><a href="http://www.walkernews.net/2009/04/13/turn-on-wordpress-feature-to-display-photo-exif-data-and-iptc-information/" title="Turn On WordPress Feature To Display Photo EXIF Data and IPTC Information">Turn On WordPress Feature To Display Photo EXIF Data and IPTC Information</a></li><li><a href="http://www.walkernews.net/2008/09/09/how-to-change-wordpress-image-caption-text-style-to-superscripts/" title="How To Change WordPress Image Caption Text Style To Superscripts?">How To Change WordPress Image Caption Text Style To Superscripts?</a></li><li><a href="http://www.walkernews.net/2008/09/07/how-to-insert-multiple-images-in-wordpress-26-without-using-shortcode/" title="How To Insert Multiple Images In WordPress 2.6 Without Using Shortcode?">How To Insert Multiple Images In WordPress 2.6 Without Using Shortcode?</a></li><li><a href="http://www.walkernews.net/2009/07/02/how-to-display-wordpress-exifs-shutter-speed-as-fraction/" title="How To Display WordPress EXIF&#8217;s Shutter Speed As Fraction?">How To Display WordPress EXIF&#8217;s Shutter Speed As Fraction?</a></li><li><a href="http://www.walkernews.net/2009/03/17/how-to-create-image-template-file-for-wordpress-theme-to-display-photo-gallery/" title="How To Create image.php Template File For WordPress Theme To Display Photo Gallery?">How To Create image.php Template File For WordPress Theme To Display Photo Gallery?</a></li><li><a href="http://www.walkernews.net/2008/12/16/how-easy-to-change-wordpress-27-post-permalink-with-post-slug/" title="How Easy To Change WordPress 2.7 Post Permalink With Post Slug">How Easy To Change WordPress 2.7 Post Permalink With Post Slug</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.walkernews.net/2009/04/17/how-to-create-image-template-file-for-the-classic-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Latest Google Favicon Adds Colour To Bookmark List</title>
		<link>http://www.walkernews.net/2009/01/11/latest-google-favicon-adds-colour-to-bookmark-list/</link>
		<comments>http://www.walkernews.net/2009/01/11/latest-google-favicon-adds-colour-to-bookmark-list/#comments</comments>
		<pubDate>Sat, 10 Jan 2009 18:04:48 +0000</pubDate>
		<dc:creator>Walker</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Favicon]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Weblog]]></category>
		<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://www.walkernews.net/?p=1714</guid>
		<description><![CDATA[Google latest branding effort, a new favicon that looks colourful and vivid to make sure you could find it from Bookmark or Favorites list.]]></description>
			<content:encoded><![CDATA[<img style="float:right;margin:0 0 0 5px;" src="http://www.walkernews.net/wp-content/uploads/2009/01/google-favicon.jpg" alt="Google latest favicon looks colourful and vivid!" title="Google Favicon" width="127" height="19" class="size-full wp-image-1721" />Google official blog announced the latest favicon marks another branding move. If it&#8217;s not the 3rd Google favicon in its history, I am sure this is not the last.<br />
<span id="more-1714"></span><br />
<!--wgadm-->Favicon, is a little icon but give a significant difference if it looks outstanding as you open the Bookmark or Favorites list.<br />
<br />After <a href="http://www.google.com/tenthbirthday/" title="Google timeline at the 10th birthday" rel="nofollow" target="_blank">celebrating the 10th birthday</a>, Google Inc embraces another decade, looking forward a teenage-hood with countless excitements and explosive energy.<br />
<br />Andre Resende, a computer science undergraduate student at the University of Campinas in Brazil, who inspired the Internet giant with a design of colourful, vivid &#8220;g&#8221; that should perfectly iconize Google 10 years vision:<br />
<br /><div style="max-width:500px;"><img src="http://www.walkernews.net/wp-content/uploads/2009/01/google-favicon-list.jpg" alt="A list of user-submitted Google Favicon that highlighted by Google blog" title="Google Favicon List" width="377" height="78" class="size-full wp-image-1728" /></div><sup>A list of user-submitted Google Favicon that highlighted by Google blog</sup><br />
<br />So, have you made a favicon for your own site/blog? If not, follow my lousy guide to <a href="http://www.walkernews.net/2008/08/19/favicon-how-to-create-a-website-icon-for-a-blog/" title="How to create a favicon for website or blog?" rel="bookmark">create a simple favicon</a> in no time :-)<br />
<br />Although <a href="http://www.walkernews.net/about/" title="About WalkerNews.net" rel="bookmark">WalkerNews.net</a> favicon is not updated for a new year, I&#8217;ve made tonne of changes in this blog (lousy but serve well for recording my notes for reference) &#8211; some changes are visual, some are not (e.g. optimization, security, etc).<br />
<ul class="related_post"><li><a href="http://www.walkernews.net/2008/08/19/favicon-how-to-create-a-website-icon-for-a-blog/" title="Favicon: How To Create A Website Icon For A Blog?">Favicon: How To Create A Website Icon For A Blog?</a></li><li><a href="http://www.walkernews.net/2008/09/11/wordpress-adds-wp-caption-text-to-css-file-for-image-caption-styling/" title="WordPress: Adds wp-caption-text To CSS File For Image Caption Styling">WordPress: Adds wp-caption-text To CSS File For Image Caption Styling</a></li><li><a href="http://www.walkernews.net/2008/09/09/how-to-change-wordpress-image-caption-text-style-to-superscripts/" title="How To Change WordPress Image Caption Text Style To Superscripts?">How To Change WordPress Image Caption Text Style To Superscripts?</a></li><li><a href="http://www.walkernews.net/2008/08/17/windows-media-player-how-to-embed-wmv-file-in-html-code/" title="Windows Media Player: How To Embed WMV File In HTML Code?">Windows Media Player: How To Embed WMV File In HTML Code?</a></li><li><a href="http://www.walkernews.net/2010/02/18/how-to-index-google-profile-page-to-search-engine/" title="How To Index Google Profile Page To Search Engine?">How To Index Google Profile Page To Search Engine?</a></li><li><a href="http://www.walkernews.net/2009/09/28/using-html-css-to-align-image-to-centre-of-web-page/" title="Using HTML-CSS To Align Image To Centre Of Web Page">Using HTML-CSS To Align Image To Centre Of Web Page</a></li><li><a href="http://www.walkernews.net/2009/09/27/little-note-on-css-text-and-css-font-style/" title="Little Note On CSS Text And CSS Font Style">Little Note On CSS Text And CSS Font Style</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.walkernews.net/2009/01/11/latest-google-favicon-adds-colour-to-bookmark-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How Easy To Change WordPress 2.7 Post Permalink With Post Slug</title>
		<link>http://www.walkernews.net/2008/12/16/how-easy-to-change-wordpress-27-post-permalink-with-post-slug/</link>
		<comments>http://www.walkernews.net/2008/12/16/how-easy-to-change-wordpress-27-post-permalink-with-post-slug/#comments</comments>
		<pubDate>Mon, 15 Dec 2008 16:53:40 +0000</pubDate>
		<dc:creator>Walker</dc:creator>
				<category><![CDATA[Howto]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Freeware]]></category>
		<category><![CDATA[KnowHow]]></category>
		<category><![CDATA[Permalink]]></category>
		<category><![CDATA[Post Slug]]></category>
		<category><![CDATA[Screencast]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[Weblog]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.walkernews.net/?p=1614</guid>
		<description><![CDATA[The Post Slug feature makes a comeback in WordPress 2.7, which give user another easier way to edit or change permalink.]]></description>
			<content:encoded><![CDATA[If <a href="http://www.walkernews.net/tag/wordpress/" title="All posts related to WordPress in WalkerNews.net" rel="bookmark">WordPress</a> is setup to use &#8220;Pretty Permalink&#8221;, then the weblog software automatically convert the post title into a permanent URL of the post or page (i.e. the Permalink). Although <!--wgadh3-->the permalink is not necessary contains the exact words in post title (due to simplification / truncation logic).<br />
<span id="more-1614"></span><br />
If you have a reason to change the default &#8220;Pretty Permalink&#8221;, <a href="http://www.walkernews.net/2008/01/11/how-to-embed-flv-flash-in-wordpress-or-html/" title="How to embed FLV or flash video file in HTML or WordPress?" rel="bookmark">WordPress</a> allows you to <a href="http://www.walkernews.net/2008/06/30/how-to-edit-and-rewrite-post-slug-or-permalink-in-wordpress-25/" title="How to rewrite post slug or permalink in WordPress 2.5?" rel="bookmark">edit or change the permalink</a>, just as you wish.<br />
<br />For example, I change the permalink of earlier post &#8220;<a href="http://www.walkernews.net/2008/12/15/how-to-change-google-chrome-user-agent-string/" title="How to change Google Chrome user agent string?" rel="bookmark">How To Change Google Chrome 1.0.154.36 User Agent String?</a>&#8221; by eliminating version number 1.0.154.36.<br />
<br />Prior to WordPress 2.5 (that I know), the post slug feature allows blogger to define an alternative post title which is then referred and converted into a permalink of the post.<br />
<br />Then, WordPress 2.5 (and 2.6, if not mistaken) removed the post slug button from weblog interface. As a replacement, the &#8220;edit&#8221; link of Permalink was used for the purpose.<br />
<br />Now, post slug make a &#8220;hidden&#8221; comeback in latest WordPress 2.7. As compare to edit the &#8220;Pretty Permalink&#8221; directly, post slug allows user to write an alternative post title as normal, without worry about the dash character that form the permalink structure.<br />
<br />As mentioned, WordPress 2.7 doesn&#8217;t show Post Slug interface by default. In order to display Post Slug text box, click the &#8220;Screen Option&#8221; on upper-right corner (below the Log Out link), select &#8220;Post Slug&#8221; and look for the Post Slug input box at bottom of post editor:<br />
<br /><object width="500" height="405"><param name="movie" value="http://www.youtube.com/v/5Jjk_xvd1qE&#038;hl=en&#038;fs=1&#038;rel=0&#038;color1=0x3a3a3a&#038;color2=0x999999&#038;border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/5Jjk_xvd1qE&#038;hl=en&#038;fs=1&#038;rel=0&#038;color1=0x3a3a3a&#038;color2=0x999999&#038;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="500" height="405"></embed></object><br />

<ul class="related_post"><li><a href="http://www.walkernews.net/2008/06/30/how-to-edit-and-rewrite-post-slug-or-permalink-in-wordpress-25/" title="How To Edit And Rewrite Post Slug / Permalink In WordPress 2.5?">How To Edit And Rewrite Post Slug / Permalink In WordPress 2.5?</a></li><li><a href="http://www.walkernews.net/2009/04/17/how-to-create-image-template-file-for-the-classic-wordpress-theme/" title="How To Create Image Template File For The Classic WordPress Theme?">How To Create Image Template File For The Classic WordPress Theme?</a></li><li><a href="http://www.walkernews.net/2009/01/31/how-to-install-cambridge-talking-dictionary-for-nokia-5800/" title="How To Install Cambridge Talking Dictionary For Nokia 5800?">How To Install Cambridge Talking Dictionary For Nokia 5800?</a></li><li><a href="http://www.walkernews.net/2008/09/11/wordpress-adds-wp-caption-text-to-css-file-for-image-caption-styling/" title="WordPress: Adds wp-caption-text To CSS File For Image Caption Styling">WordPress: Adds wp-caption-text To CSS File For Image Caption Styling</a></li><li><a href="http://www.walkernews.net/2008/09/09/how-to-change-wordpress-image-caption-text-style-to-superscripts/" title="How To Change WordPress Image Caption Text Style To Superscripts?">How To Change WordPress Image Caption Text Style To Superscripts?</a></li><li><a href="http://www.walkernews.net/2008/09/07/how-to-insert-multiple-images-in-wordpress-26-without-using-shortcode/" title="How To Insert Multiple Images In WordPress 2.6 Without Using Shortcode?">How To Insert Multiple Images In WordPress 2.6 Without Using Shortcode?</a></li><li><a href="http://www.walkernews.net/2009/07/18/how-to-embed-swf-in-html-code-or-wordpress-post/" title="How To Embed SWF In HTML Code Or WordPress Post?">How To Embed SWF In HTML Code Or WordPress Post?</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.walkernews.net/2008/12/16/how-easy-to-change-wordpress-27-post-permalink-with-post-slug/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Update To Latest WordPress 2.6.5 To Fix XSS Exploit</title>
		<link>http://www.walkernews.net/2008/11/27/update-to-latest-wordpress-265-to-fix-xss-exploit/</link>
		<comments>http://www.walkernews.net/2008/11/27/update-to-latest-wordpress-265-to-fix-xss-exploit/#comments</comments>
		<pubDate>Wed, 26 Nov 2008 18:46:00 +0000</pubDate>
		<dc:creator>Walker</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Patch]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Weblog]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.walkernews.net/?p=1499</guid>
		<description><![CDATA[WordPress 2.6.5 is the latest WordPress subversion to fix one serious security threat and three bugs discovered by WordPress supporters and fans.]]></description>
			<content:encoded><![CDATA[If you host a WordPress blog and expect it to live under your full control, then you should never wait for another days to update the core files whenever there is a new release for download (absolutely <a href="http://wordpress.org/download/" target="_blank" rel="nofollow" title="Download latest WordPress core files from WordPress.org.">free from WordPress.org</a>).<br />
<span id="more-1499"></span><br />
According to <a href="http://wordpress.org/development/2008/11/wordpress-265/" target="_blank" rel="nofollow" title="What fixes are included in WordPress 2.6.5?">Ryan&#8217;s post</a>, the latest WordPress 2.6.5 fixes one serious security <!--wgadt-->threat (XSS exploit) and three bugs &#8211; prevents accidentally saving post meta information to a revision, prevents XML-RPC from fetching incorrect post types, and adds some user ID sanitization during bulk delete requests. <br />
<br />All these fixes involves changes on <a href="http://trac.wordpress.org/changeset?old_path=tags%2F2.6.3&#038;old=&#038;new_path=tags%2F2.6.5&#038;new=" target="_blank" rel="nofollow" title="WordPress 2.6.5 involves changes made to 5 core files of WordPress 2.6.3">5 existing core files of WordPress 2.6.3</a>. That&#8217;s to say, you can simply update these affected core files only, if you&#8217;re not ready to update all core files of WordPress 2.6.3.<br />
<br />Because there was <a href="http://westi.wordpress.com/2008/11/25/wordpress-265-in-detail/" target="_blank" rel="nofollow" title="Peter post about WordPress 2.6.5 and the reason to skip 2.6.4">a fake, trojaned version of WordPress 2.6.4</a> &#8220;released&#8221; by the bad guys, the WordPress team decided to skip &#8220;contaminated&#8221; version 2.6.4 and jump from 2.6.3 to 2.6.5.<br />
<ul class="related_post"><li><a href="http://www.walkernews.net/2009/04/17/how-to-create-image-template-file-for-the-classic-wordpress-theme/" title="How To Create Image Template File For The Classic WordPress Theme?">How To Create Image Template File For The Classic WordPress Theme?</a></li><li><a href="http://www.walkernews.net/2008/12/16/how-easy-to-change-wordpress-27-post-permalink-with-post-slug/" title="How Easy To Change WordPress 2.7 Post Permalink With Post Slug">How Easy To Change WordPress 2.7 Post Permalink With Post Slug</a></li><li><a href="http://www.walkernews.net/2008/11/27/wordpress-26-presents-the-matrix-easter-egg/" title="WordPress 2.6 Presents The Matrix Easter Egg">WordPress 2.6 Presents The Matrix Easter Egg</a></li><li><a href="http://www.walkernews.net/2008/09/11/wordpress-adds-wp-caption-text-to-css-file-for-image-caption-styling/" title="WordPress: Adds wp-caption-text To CSS File For Image Caption Styling">WordPress: Adds wp-caption-text To CSS File For Image Caption Styling</a></li><li><a href="http://www.walkernews.net/2008/09/09/how-to-change-wordpress-image-caption-text-style-to-superscripts/" title="How To Change WordPress Image Caption Text Style To Superscripts?">How To Change WordPress Image Caption Text Style To Superscripts?</a></li><li><a href="http://www.walkernews.net/2008/09/07/how-to-insert-multiple-images-in-wordpress-26-without-using-shortcode/" title="How To Insert Multiple Images In WordPress 2.6 Without Using Shortcode?">How To Insert Multiple Images In WordPress 2.6 Without Using Shortcode?</a></li><li><a href="http://www.walkernews.net/2008/08/18/wordpress-26-what-does-the-commenter-ip-tells/" title="WordPress 2.6: What Does The Commenter IP Tells?">WordPress 2.6: What Does The Commenter IP Tells?</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.walkernews.net/2008/11/27/update-to-latest-wordpress-265-to-fix-xss-exploit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 2.6 Presents The Matrix Easter Egg</title>
		<link>http://www.walkernews.net/2008/11/27/wordpress-26-presents-the-matrix-easter-egg/</link>
		<comments>http://www.walkernews.net/2008/11/27/wordpress-26-presents-the-matrix-easter-egg/#comments</comments>
		<pubDate>Wed, 26 Nov 2008 16:20:20 +0000</pubDate>
		<dc:creator>Walker</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Easter Egg]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Weblog]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.walkernews.net/?p=1485</guid>
		<description><![CDATA[If not Donncha, I wouldn't know there is an Easter Egg in WordPress 2.6. Do you know that?]]></description>
			<content:encoded><![CDATA[According to Donncha, the WordPress 2.6 Matrix Easter Egg is new to him. So am I. If not his post appears in News feed, I wouldn&#8217;t know there is such an intentional hidden message in WordPress.<br />
<span id="more-1485"></span><br />
The Easter Egg themed after The Matrix movie has been known for months, is exists in WordPress version 2.6 and betas of version 2.7.<br />
<br />I am not sure is this Easter Egg exists in WordPress MU (otherwise registered bloggers of <!--wgadm-->WordPress.com could also try to trigger the hidden function) or the code will be continue exists in final release of WordPress 2.7. If you&#8217;ve the answer and don&#8217;t mind to share the findings, <a href="#respond" rel="nofollow">please leave a comment</a>.<br />
<br />Anyway, you may &#8220;disable&#8221; the Matrix Easter Egg by <a href="http://lesterchan.net/wordpress/2008/07/17/how-to-turn-off-post-revision-in-wordpress-26/" title="disable WordPress 2.6 Post Revision feature - Lester Chan" rel="nofollow" target="_blank">turning off Post Revision In WordPress 2.6</a>, which is the trigger point of showing this Easter Egg.<br />
<br /><span class="subhead">Trigger WordPress 2.6 Matrix Easter Egg</span><br />
<br />If you have access to WordPress 2.6 weblog, you may try to <a href="http://ocaoimh.ie/2008/11/26/wordpress-26-easter-egg/" target="_blank" rel="nofollow" title="Donncha shows the steps to trigger Matrix Easter Egg in WordPress 2.6 Post Revision.">activate the WordPress Matrix Easter Egg</a> with these few steps:<br />
<ol>
<li>Edit a post, be it new or archive, so long as the <span class="subhead2">Post Revisions</span> (at bottom of page) has at least one entry.<br />
&nbsp;</li>
<li>Click either one of the entries and it will redirect you to next page.<br />
&nbsp;</li>
<li>Scroll down to bottom again, select <span class="subhead2">Current Revision</span> entry (the radio buttons of the entry are both selected, as shown in the follow screenshot), and click the <span class="subhead2">Compare Revisions</span> button.</li>
</ol>
<br /><div style="max-width:500px;"><img src="http://www.walkernews.net/wp-content/uploads/2008/11/wordpress-easter-egg-a.jpg" alt="How to activate the Matrix Easter Egg in WordPress 2.6?" title="How to activate the Matrix Easter Egg in WordPress 2.6?" width="457" height="240" class="size-full wp-image-1488" /></div><sup>How to activate the Matrix Easter Egg in WordPress 2.6?</sup><br />
<br />Soon after you click the Compare Revisions button, the Matrix Easter Egg appears, initiated with message that says &#8220;Self-comparison detected. Initiating infinite loop eschewal protocol. Self destruct in 3&#8230;2&#8230;1&#8243;.<br />
<br />Finally, there is the classic Matrix theme (blank and green) that shows &#8220;Wake Up, Walker&#8230;The Matrix has you. Follow the white rabbit. Don&#8217;t let this happen again. Go Back.&#8221;<br />
<br /><object width="500" height="369"><param name="movie" value="http://www.youtube.com/v/gkF4WLSkz-U&#038;hl=en&#038;fs=1&#038;rel=0&#038;color1=0x3a3a3a&#038;color2=0x999999&#038;border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/gkF4WLSkz-U&#038;hl=en&#038;fs=1&#038;rel=0&#038;color1=0x3a3a3a&#038;color2=0x999999&#038;border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="500" height="369"></embed></object><br />

<ul class="related_post"><li><a href="http://www.walkernews.net/2009/04/17/how-to-create-image-template-file-for-the-classic-wordpress-theme/" title="How To Create Image Template File For The Classic WordPress Theme?">How To Create Image Template File For The Classic WordPress Theme?</a></li><li><a href="http://www.walkernews.net/2008/12/16/how-easy-to-change-wordpress-27-post-permalink-with-post-slug/" title="How Easy To Change WordPress 2.7 Post Permalink With Post Slug">How Easy To Change WordPress 2.7 Post Permalink With Post Slug</a></li><li><a href="http://www.walkernews.net/2008/11/27/update-to-latest-wordpress-265-to-fix-xss-exploit/" title="Update To Latest WordPress 2.6.5 To Fix XSS Exploit">Update To Latest WordPress 2.6.5 To Fix XSS Exploit</a></li><li><a href="http://www.walkernews.net/2008/09/11/wordpress-adds-wp-caption-text-to-css-file-for-image-caption-styling/" title="WordPress: Adds wp-caption-text To CSS File For Image Caption Styling">WordPress: Adds wp-caption-text To CSS File For Image Caption Styling</a></li><li><a href="http://www.walkernews.net/2008/09/09/how-to-change-wordpress-image-caption-text-style-to-superscripts/" title="How To Change WordPress Image Caption Text Style To Superscripts?">How To Change WordPress Image Caption Text Style To Superscripts?</a></li><li><a href="http://www.walkernews.net/2008/09/07/how-to-insert-multiple-images-in-wordpress-26-without-using-shortcode/" title="How To Insert Multiple Images In WordPress 2.6 Without Using Shortcode?">How To Insert Multiple Images In WordPress 2.6 Without Using Shortcode?</a></li><li><a href="http://www.walkernews.net/2008/08/18/wordpress-26-what-does-the-commenter-ip-tells/" title="WordPress 2.6: What Does The Commenter IP Tells?">WordPress 2.6: What Does The Commenter IP Tells?</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.walkernews.net/2008/11/27/wordpress-26-presents-the-matrix-easter-egg/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>WordPress: Adds wp-caption-text To CSS File For Image Caption Styling</title>
		<link>http://www.walkernews.net/2008/09/11/wordpress-adds-wp-caption-text-to-css-file-for-image-caption-styling/</link>
		<comments>http://www.walkernews.net/2008/09/11/wordpress-adds-wp-caption-text-to-css-file-for-image-caption-styling/#comments</comments>
		<pubDate>Wed, 10 Sep 2008 17:20:42 +0000</pubDate>
		<dc:creator>Walker</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Image]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[Weblog]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[wp-caption-text]]></category>

		<guid isPermaLink="false">http://www.walkernews.net/?p=1110</guid>
		<description><![CDATA[If you prefer not to edit WordPress core file that control image caption text style, adds .wp-caption-text as class to CSS file of WordPress theme.]]></description>
			<content:encoded><![CDATA[<strong>Question:</strong> Is there a WordPress plugin or alternative ways than editing wp-includes/media.php file if I want to <a href="http://www.walkernews.net/2008/09/09/how-to-change-wordpress-image-caption-text-style-to-superscripts/" title="How to format WordPress image caption text in WordPress 2.6.1?" rel="bookmark">format WordPress image caption text</a>?<br />
<span id="more-1110"></span><br />
<strong>Answer:</strong> Yes. There are many ways to Rome, and editing <a href="http://www.walkernews.net/2007/10/30/highlight-author-comment-and-pingback-in-wordpress/" title="How to highlight author comment and pingback in WordPress?" rel="bookmark">WordPress</a> core file is certainly not the only solution for this topic.<br />
<!--wgadh-->Indeed, it&#8217;s not a good practice to &#8220;hack&#8221; WordPress core files unless you don&#8217;t mind to keep track of mods that you&#8217;ve done and happily re-apply the mods during each WordPress upgrade processes.<br />
<br />In <a href="http://www.walkernews.net/2008/09/07/how-to-insert-multiple-images-in-wordpress-26-without-using-shortcode/" title="How to insert multiple images in WordPress 2.6.1 without using shortcode?" rel="bookmark">WordPress 2.6.1</a>, the Add Media interface automatically enclose image caption in the paragraph tag with a <a href="http://www.walkernews.net/2007/06/18/css-hack-wraps-long-text-in-pre-tag/" title="How to define CSS style to wrap long text in PRE tag?" rel="bookmark">CSS class</a> that named as wp-caption-text (i.e. <code>&lt;p class="wp-caption-text"&gt;&lt;/p&gt;</code>).<br />
<br />So, the better way of formatting WordPress image caption text is by adding this CSS class (i.e. wp-caption-text) to style.css file of your active <a href="http://www.walkernews.net/2007/11/08/how-to-add-tag-cloud-and-post-tag-in-wordpress-theme/" title="How to add tag cloud and post tag in your old WordPress theme files?" rel="bookmark">WordPress theme</a>.<br />
<br />That&#8217;s to say, you might define superscripts CSS style in the wp-caption-text class, so that image caption text will appears in superscripts format. Otherwise, you could also specify a different font style, text colour, underline, etc, so long the image caption text appears differently than post body font style that you&#8217;re looking for.<br />
<br />For example, I try to use <code>vertical-align:top;</code> and <code>font-size:xx-small;</code> to achieve superscript style in CSS code as suggested by some references. All you need is to add this block of CSS class to style.css file in your WordPress theme directory:<br />
<pre>
.wp-caption-text {
        font-size:xx-small;
        color:#66FFFF;
        vertical-align:top;
}
</pre>
<br />And, here are two samples of WalkerNews &#8220;trademark&#8221; that showing the difference of using HTML superscript tag and CSS superscript definition:<br />
<br /><div style="max-width:500px;"><img src="http://www.walkernews.net/wp-content/uploads/2008/09/walkernews-tm.jpg" alt="Using HTML superscripts and CSS style of superscripts to create WalkerNews trademark." title="Using HTML superscripts and CSS style of superscripts to create WalkerNews trademark." width="500" height="80" class="size-full wp-image-1111" /></div><sup>Using HTML superscripts and CSS style of superscripts to create WalkerNews trademark.</sup><br />
<br />Personally, I prefer superscripts style that rendered with HTML <code>&lt;sup&gt;&lt;/sup&gt;</code> tag.<br />

<ul class="related_post"><li><a href="http://www.walkernews.net/2008/09/09/how-to-change-wordpress-image-caption-text-style-to-superscripts/" title="How To Change WordPress Image Caption Text Style To Superscripts?">How To Change WordPress Image Caption Text Style To Superscripts?</a></li><li><a href="http://www.walkernews.net/2008/09/07/how-to-insert-multiple-images-in-wordpress-26-without-using-shortcode/" title="How To Insert Multiple Images In WordPress 2.6 Without Using Shortcode?">How To Insert Multiple Images In WordPress 2.6 Without Using Shortcode?</a></li><li><a href="http://www.walkernews.net/2008/06/30/how-to-edit-and-rewrite-post-slug-or-permalink-in-wordpress-25/" title="How To Edit And Rewrite Post Slug / Permalink In WordPress 2.5?">How To Edit And Rewrite Post Slug / Permalink In WordPress 2.5?</a></li><li><a href="http://www.walkernews.net/2009/07/18/how-to-embed-swf-in-html-code-or-wordpress-post/" title="How To Embed SWF In HTML Code Or WordPress Post?">How To Embed SWF In HTML Code Or WordPress Post?</a></li><li><a href="http://www.walkernews.net/2009/04/17/how-to-create-image-template-file-for-the-classic-wordpress-theme/" title="How To Create Image Template File For The Classic WordPress Theme?">How To Create Image Template File For The Classic WordPress Theme?</a></li><li><a href="http://www.walkernews.net/2008/12/16/how-easy-to-change-wordpress-27-post-permalink-with-post-slug/" title="How Easy To Change WordPress 2.7 Post Permalink With Post Slug">How Easy To Change WordPress 2.7 Post Permalink With Post Slug</a></li><li><a href="http://www.walkernews.net/2008/08/19/favicon-how-to-create-a-website-icon-for-a-blog/" title="Favicon: How To Create A Website Icon For A Blog?">Favicon: How To Create A Website Icon For A Blog?</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.walkernews.net/2008/09/11/wordpress-adds-wp-caption-text-to-css-file-for-image-caption-styling/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How To Change WordPress Image Caption Text Style To Superscripts?</title>
		<link>http://www.walkernews.net/2008/09/09/how-to-change-wordpress-image-caption-text-style-to-superscripts/</link>
		<comments>http://www.walkernews.net/2008/09/09/how-to-change-wordpress-image-caption-text-style-to-superscripts/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 16:36:03 +0000</pubDate>
		<dc:creator>Walker</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[MOD]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[Weblog]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.walkernews.net/?p=1091</guid>
		<description><![CDATA[How could you force WordPress 2.6 to display an image caption text as superscripts style rather than the sharing the common post body text style?]]></description>
			<content:encoded><![CDATA[WordPress 2.5+ rewrite the image/file uploader interface to include some most wanted features, e.g. <a href="http://www.walkernews.net/2008/09/07/how-to-insert-multiple-images-in-wordpress-26-without-using-shortcode/" title="How to insert multiple images in WordPress 2.5+ without using the shortcode?" rel="bookmark">multiple images per single upload</a>, WordPress Gallery Shortcode, image caption text, image size and alignment, etc.<br />
<span id="more-1091"></span><br />
<strong>Question:</strong> How could you force WordPress image caption text to appear as superscripts text style, rather than sharing the common post body text style?<br />
<!--wgadh-->What is that superscripts text style? <br />
<br />Superscripts text style is usually 75% smaller than its original size and appears at upper position of the same text line, e.g. the blue colour text in Walker<sup><span style="color:#66FFFF;">News</span></sup> or 7<sup><span style="color:#66FFFF;">th</span></sup>.<br />
<br />Why rendering WordPress image caption text in superscripts style? <br />
<br />Image caption text is deemed as &#8220;alternative text&#8221; of an image, i.e. text that describes the image (so that search engine knows what is the image about. That&#8217;s why you should write little text for the image alt=&#8221;" attribute!<br />
<br />If the article itself is enough to tell story of the image, I think it&#8217;s better to &#8220;hide them&#8221; or just display the caption text in superscripts style for better reading experience or presentation.<br />
<br /><span class="subhead">How to get WordPress 2.6.1 to display image caption text in superscripts style?</span><br />
<ol>
<li>Edit <code>wp-includes/media.php</code> file<br />
&nbsp;</li>
<li>Look for this <code>function img_caption_shortcode($attr, $content = null)</code><br />
&nbsp;</li>
<li>Change this line
<pre>. $content . '&lt;p class="wp-caption-text"&gt;' . $caption . '&lt;/p&gt;&lt;/div&gt;';</pre>
<br />to become<br />
<pre>. $content . '&lt;br /&gt;&lt;sup&gt;' . $caption . '&lt;/sup&gt;&lt;/div&gt;';</pre>
</li>
</ol>
<br />There are at least 3 media.php files in 3 different directories, and this WordPress mod is using the <code>wp-includes/media.php</code>.<br />
<br />If you can&#8217;t find the mentioned function, make sure you&#8217;re editing the right media.php file. Otherwise, this trick is only tested in WordPress 2.6.1 (and might not working in other version?). Good luck.<br />

<ul class="related_post"><li><a href="http://www.walkernews.net/2008/09/07/how-to-insert-multiple-images-in-wordpress-26-without-using-shortcode/" title="How To Insert Multiple Images In WordPress 2.6 Without Using Shortcode?">How To Insert Multiple Images In WordPress 2.6 Without Using Shortcode?</a></li><li><a href="http://www.walkernews.net/2008/09/11/wordpress-adds-wp-caption-text-to-css-file-for-image-caption-styling/" title="WordPress: Adds wp-caption-text To CSS File For Image Caption Styling">WordPress: Adds wp-caption-text To CSS File For Image Caption Styling</a></li><li><a href="http://www.walkernews.net/2009/04/17/how-to-create-image-template-file-for-the-classic-wordpress-theme/" title="How To Create Image Template File For The Classic WordPress Theme?">How To Create Image Template File For The Classic WordPress Theme?</a></li><li><a href="http://www.walkernews.net/2008/06/30/how-to-edit-and-rewrite-post-slug-or-permalink-in-wordpress-25/" title="How To Edit And Rewrite Post Slug / Permalink In WordPress 2.5?">How To Edit And Rewrite Post Slug / Permalink In WordPress 2.5?</a></li><li><a href="http://www.walkernews.net/2009/07/18/how-to-embed-swf-in-html-code-or-wordpress-post/" title="How To Embed SWF In HTML Code Or WordPress Post?">How To Embed SWF In HTML Code Or WordPress Post?</a></li><li><a href="http://www.walkernews.net/2009/07/02/how-to-display-wordpress-exifs-shutter-speed-as-fraction/" title="How To Display WordPress EXIF&#8217;s Shutter Speed As Fraction?">How To Display WordPress EXIF&#8217;s Shutter Speed As Fraction?</a></li><li><a href="http://www.walkernews.net/2009/06/25/add-shutter-speed-aperture-exif-or-iptc-data-to-wordpress-gallery/" title="Add Shutter Speed, Aperture, EXIF, Or IPTC Data To WordPress Gallery">Add Shutter Speed, Aperture, EXIF, Or IPTC Data To WordPress Gallery</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.walkernews.net/2008/09/09/how-to-change-wordpress-image-caption-text-style-to-superscripts/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
