<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Technofreaky&#039;s Blog</title>
	<atom:link href="http://technofreaky.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://technofreaky.wordpress.com</link>
	<description>Knowledge is my strength</description>
	<lastBuildDate>Fri, 20 Jan 2012 11:56:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='technofreaky.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/9b2067d2dc6f5783970b065b6a13a033?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Technofreaky&#039;s Blog</title>
		<link>http://technofreaky.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://technofreaky.wordpress.com/osd.xml" title="Technofreaky&#039;s Blog" />
	<atom:link rel='hub' href='http://technofreaky.wordpress.com/?pushpress=hub'/>
		<item>
		<title>WordPress Post attachment MIME Types</title>
		<link>http://technofreaky.wordpress.com/2012/01/20/wordpress-post-attachment-mime-types/</link>
		<comments>http://technofreaky.wordpress.com/2012/01/20/wordpress-post-attachment-mime-types/#comments</comments>
		<pubDate>Fri, 20 Jan 2012 10:29:28 +0000</pubDate>
		<dc:creator>technofreaky</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://technofreaky.wordpress.com/?p=560</guid>
		<description><![CDATA[Source : http://tgrayimages.com/automate-file-attachments-on-your-wordpress-posts<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technofreaky.wordpress.com&amp;blog=8381385&amp;post=560&amp;subd=technofreaky&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><pre class="brush: plain;">
function get_attachment_icons($echo = false){
	$sAttachmentString = &quot;&lt;div class='documentIconsWrapper'&gt; \n&quot;;
	if ( $files = get_children(array(   //do only if there are attachments of these qualifications
	 'post_parent' =&gt; get_the_ID(),
	 'post_type' =&gt; 'attachment',
	 'numberposts' =&gt; -1,
	 'post_mime_type' =&gt; 'application/pdf',  //MIME Type condition
	 ))){
	 foreach( $files as $file ){ //setup array for more than one file attachment
		$file_link = wp_get_attachment_url($file-&gt;ID);    //get the url for linkage
		$file_name_array=explode(&quot;/&quot;,$file_link);
		$file_name=array_reverse($file_name_array);  //creates an array out of the url and grabs the filename
		$sAttachmentString .= &quot;&lt;div class='documentIcons'&gt;&quot;;
		$sAttachmentString .= &quot;&lt;a href='$file_link'&gt;&quot;;
		$sAttachmentString .= &quot;&lt;img src='&quot;.get_stylesheet_directory_uri().&quot;/_inc/images/mime/pdf.png'/&gt;&quot;;
		$sAttachmentString .= &quot;&lt;/a&gt;&quot;;
		$sAttachmentString .= &quot;&lt;br&gt;&quot;;
		$sAttachmentString .= &quot;&lt;a href='$file_link'&gt;$file_name[0]&lt;/a&gt;&quot;;
		$sAttachmentString .= &quot;&lt;/div&gt;&quot;;
		}
	}
	//Word Documents
	if ( $files = get_children(array(   //do only if there are attachments of these qualifications
	 'post_parent' =&gt; get_the_ID(),
	 'post_type' =&gt; 'attachment',
	 'numberposts' =&gt; -1,
	 'post_mime_type' =&gt; 'application/msword',  //MIME Type condition
	 ))){
	 foreach( $files as $file ){ //setup array for more than one file attachment
		$file_link = wp_get_attachment_url($file-&gt;ID);    //get the url for linkage
		$file_name_array=explode(&quot;/&quot;,$file_link);
		$file_name=array_reverse($file_name_array);  //creates an array out of the url and grabs the filename
		$sAttachmentString .= &quot;&lt;div class='documentIcons'&gt;&quot;;
		$sAttachmentString .= &quot;&lt;a href='$file_link'&gt;&quot;;
		$sAttachmentString .= &quot;&lt;img src='&quot;.get_stylesheet_directory_uri().&quot;/_inc/images/mime/word.png'/&gt;&quot;;
		$sAttachmentString .= &quot;&lt;/a&gt;&quot;;
		$sAttachmentString .= &quot;&lt;br&gt;&quot;;
		$sAttachmentString .= &quot;&lt;a href='$file_link'&gt;$file_name[0]&lt;/a&gt;&quot;;
		$sAttachmentString .= &quot;&lt;/div&gt;&quot;;
		}
	}
	//Powerpoint Documents
	if ( $files = get_children(array(   //do only if there are attachments of these qualifications
	 'post_parent' =&gt; get_the_ID(),
	 'post_type' =&gt; 'attachment',
	 'numberposts' =&gt; -1,
	 'post_mime_type' =&gt; 'application/vnd.ms-powerpoint',  //MIME Type condition
	 ))){
	 foreach( $files as $file ){ //setup array for more than one file attachment
		$file_link = wp_get_attachment_url($file-&gt;ID);    //get the url for linkage
		$file_name_array=explode(&quot;/&quot;,$file_link);
		$file_name=array_reverse($file_name_array);  //creates an array out of the url and grabs the filename
		$sAttachmentString .= &quot;&lt;div class='documentIcons'&gt;&quot;;
		$sAttachmentString .= &quot;&lt;a href='$file_link'&gt;&quot;;
		$sAttachmentString .= &quot;&lt;img src='&quot;.get_stylesheet_directory_uri().&quot;/_inc/images/mime/PowerPoint.png'/&gt;&quot;;
		$sAttachmentString .= &quot;&lt;/a&gt;&quot;;
		$sAttachmentString .= &quot;&lt;br&gt;&quot;;
		$sAttachmentString .= &quot;&lt;a href='$file_link'&gt;$file_name[0]&lt;/a&gt;&quot;;
		$sAttachmentString .= &quot;&lt;/div&gt;&quot;;
		}
	}
	//Excel Documents
	if ( $files = get_children(array(   //do only if there are attachments of these qualifications
	 'post_parent' =&gt; get_the_ID(),
	 'post_type' =&gt; 'attachment',
	 'numberposts' =&gt; -1,
	 'post_mime_type' =&gt; 'application/vnd.ms-excel',  //MIME Type condition
	 ))){
	 foreach( $files as $file ){ //setup array for more than one file attachment
		$file_link = wp_get_attachment_url($file-&gt;ID);    //get the url for linkage
		$file_name_array=explode(&quot;/&quot;,$file_link);
		$file_name=array_reverse($file_name_array);  //creates an array out of the url and grabs the filename
		$sAttachmentString .= &quot;&lt;div class='documentIcons'&gt;&quot;;
		$sAttachmentString .= &quot;&lt;a href='$file_link'&gt;&quot;;
		$sAttachmentString .= &quot;&lt;img src='&quot;.get_stylesheet_directory_uri().&quot;/_inc/images/mime/XLS8.png'/&gt;&quot;;
		$sAttachmentString .= &quot;&lt;/a&gt;&quot;;
		$sAttachmentString .= &quot;&lt;br&gt;&quot;;
		$sAttachmentString .= &quot;&lt;a href='$file_link'&gt;$file_name[0]&lt;/a&gt;&quot;;
		$sAttachmentString .= &quot;&lt;/div&gt;&quot;;
		}
	}
	//Zipped Files
	if ( $files = get_children(array(   //do only if there are attachments of these qualifications
	 'post_parent' =&gt; get_the_ID(),
	 'post_type' =&gt; 'attachment',
	 'numberposts' =&gt; -1,
	 'post_mime_type' =&gt; 'application/zip',  //MIME Type condition
	 ))){
	 foreach( $files as $file ){ //setup array for more than one file attachment
		$file_link = wp_get_attachment_url($file-&gt;ID);    //get the url for linkage
		$file_name_array=explode(&quot;/&quot;,$file_link);
		$file_name=array_reverse($file_name_array);  //creates an array out of the url and grabs the filename
		$sAttachmentString .= &quot;&lt;div class='documentIcons'&gt;&quot;;
		$sAttachmentString .= &quot;&lt;a href='$file_link'&gt;&quot;;
		$sAttachmentString .= &quot;&lt;img src='&quot;.get_stylesheet_directory_uri().&quot;/_inc/images/mime/zip.png'/&gt;&quot;;
		$sAttachmentString .= &quot;&lt;/a&gt;&quot;;
		$sAttachmentString .= &quot;&lt;br&gt;&quot;;
		$sAttachmentString .= &quot;&lt;a href='$file_link'&gt;$file_name[0]&lt;/a&gt;&quot;;
		$sAttachmentString .= &quot;&lt;/div&gt;&quot;;
		}
	}

	//Audio Files
	$mp3s = get_children(array(   //do only if there are attachments of these qualifications
	 'post_parent' =&gt; get_the_ID(),
	 'post_type' =&gt; 'attachment',
	 'numberposts' =&gt; -1,
	 'post_mime_type' =&gt; 'audio',  //MIME Type condition
	 ) );

	if (!empty($mp3s)) :
	$sAttachmentString .= &quot;&lt;ul class='audiofiles'&gt;&quot;;
		foreach($mp3s as $mp3) :
    		$sAttachmentString .= &quot;&lt;li&gt;&quot;;
			if(!empty($mp3-&gt;post_title)) : //checking to make sure the post title isn't empty
				$sAttachmentString .= &quot;&lt;h4 class='title'&gt;&quot;.$mp3-&gt;post_title.&quot;&lt;/h4&gt;&quot;;
			endif;

			if(!empty($mp3-&gt;post_content)) : //checking to make sure something exists in post_content (description)
				$sAttachmentString .= &quot;&lt;p class='description'&gt;&quot;.$mp3-&gt;post_content.&quot;&lt;/p&gt;&quot;;
			endif;

			$sAttachmentString .= &quot;&lt;object width='438' height='24' id='single&quot;.$mp3-&gt;ID.&quot;' name='single&quot;.$mp3-&gt;ID.&quot;'&gt;&quot;;
				$sAttachmentString .= &quot;&lt;param name='movie' value='player.swf'&gt;&quot;;
				$sAttachmentString .= &quot;&lt;param name='allowfullscreen' value='true'&gt;&quot;;
				$sAttachmentString .= &quot;&lt;param name='allowscriptaccess' value='always'&gt;&quot;;
				$sAttachmentString .= &quot;&lt;param name='wmode' value='transparent'&gt;&quot;;
				$sAttachmentString .= &quot;&lt;param name='flashvars' value='file=&quot;.$mp3-&gt;guid.&quot;'&gt;&quot;;
					$sAttachmentString .= &quot;&lt;embed &quot;;
					  $sAttachmentString .= &quot;id='single&quot;.$mp3-&gt;ID.&quot;' &quot;;
					  $sAttachmentString .= &quot;name='single&quot;.$mp3-&gt;ID.&quot;' &quot;;
					  $sAttachmentString .= &quot;src='&quot;.get_stylesheet_directory_uri().&quot;/_inc/images/player.swf' &quot;;
					  $sAttachmentString .= &quot;width='438' &quot;;
					  $sAttachmentString .= &quot;height='24' &quot;;
					  $sAttachmentString .= &quot;bgcolor='#ffffff' &quot;;
					  $sAttachmentString .= &quot;allowscriptaccess='always' &quot;;
					  $sAttachmentString .= &quot;allowfullscreen='true' &quot;;
					  $sAttachmentString .= &quot;flashvars='file=&quot;.$mp3-&gt;guid.&quot;' &quot;;

					$sAttachmentString .= &quot;/&gt;&quot;;
			$sAttachmentString .= &quot;&lt;/object&gt;&quot;;
                        $sAttachmentString .= &quot;&lt;a href='&quot;.$mp3-&gt;guid.&quot;'&gt;Download&lt;/a&gt;&quot;;
			$sAttachmentString .= &quot;&lt;/li&gt;&quot;;
		endforeach;
	$sAttachmentString .= &quot;&lt;/ul&gt;&quot;;
	endif;	
	
	//Video Files
	$mpeg3s = get_children(array(   //do only if there are attachments of these qualifications
	 'post_parent' =&gt; get_the_ID(),
	 'post_type' =&gt; 'attachment',
	 'numberposts' =&gt; -1,
	 'post_mime_type' =&gt; 'video/mp4',  //MIME Type condition
	 ) );

	if (!empty($mpeg3s)) :
	$sAttachmentString .= &quot;&lt;ul class='videofiles'&gt;&quot;;
		foreach($mpeg3s as $mp3) :
    		$sAttachmentString .= &quot;&lt;li&gt;&quot;;
			if(!empty($mp3-&gt;post_title)) : //checking to make sure the post title isn't empty
				$sAttachmentString .= &quot;&lt;h4 class='title'&gt;&quot;.$mp3-&gt;post_title.&quot;&lt;/h4&gt;&quot;;
			endif;

			if(!empty($mp3-&gt;post_content)) : //checking to make sure something exists in post_content (description)
				$sAttachmentString .= &quot;&lt;p class='description'&gt;&quot;.$mp3-&gt;post_content.&quot;&lt;/p&gt;&quot;;
			endif;

			$sAttachmentString .= &quot;&lt;object width='700' height='400' id='single&quot;.$mp3-&gt;ID.&quot;' name='single&quot;.$mp3-&gt;ID.&quot;'&gt;&quot;;
				$sAttachmentString .= &quot;&lt;param name='movie' value='player.swf'&gt;&quot;;
				$sAttachmentString .= &quot;&lt;param name='allowfullscreen' value='true'&gt;&quot;;
				$sAttachmentString .= &quot;&lt;param name='allowscriptaccess' value='always'&gt;&quot;;
				$sAttachmentString .= &quot;&lt;param name='wmode' value='transparent'&gt;&quot;;
				$sAttachmentString .= &quot;&lt;param name='flashvars' value='file=&quot;.$mp3-&gt;guid.&quot;'&gt;&quot;;
					$sAttachmentString .= &quot;&lt;embed &quot;;
					  $sAttachmentString .= &quot;id='single&quot;.$mp3-&gt;ID.&quot;' &quot;;
					  $sAttachmentString .= &quot;name='single&quot;.$mp3-&gt;ID.&quot;' &quot;;
					  $sAttachmentString .= &quot;src='&quot;.get_stylesheet_directory_uri().&quot;/_inc/images/player.swf' &quot;;
					  $sAttachmentString .= &quot;width='700' &quot;;
					  $sAttachmentString .= &quot;height='400' &quot;;
					  $sAttachmentString .= &quot;bgcolor='#ffffff' &quot;;
					  $sAttachmentString .= &quot;allowscriptaccess='always' &quot;;
					  $sAttachmentString .= &quot;allowfullscreen='true' &quot;;
					  $sAttachmentString .= &quot;flashvars='file=&quot;.$mp3-&gt;guid.&quot;' &quot;;

					$sAttachmentString .= &quot;/&gt;&quot;;
			$sAttachmentString .= &quot;&lt;/object&gt;&quot;;
                        $sAttachmentString .= &quot;&lt;a href='&quot;.$mp3-&gt;guid.&quot;'&gt;Download&lt;/a&gt;&quot;;
			$sAttachmentString .= &quot;&lt;/li&gt;&quot;;
		endforeach;
	$sAttachmentString .= &quot;&lt;/ul&gt;&quot;;
	endif;	
	
$sAttachmentString .= &quot;&lt;/div&gt;&quot;;
if($echo){
    echo $sAttachmentString;
  }
  return $sAttachmentString;
}
add_shortcode('attachment icons', 'get_attachment_icons');
</pre><br />
<pre class="brush: plain;">
get_attachment_icons($echo=true);
</pre><br />
<pre class="brush: plain;">
&lt;style&gt;
.documentIcons{
float:left;
height:125px;
line-height:30px;
overflow:hidden;
padding:10px;
text-align:center;
width:125px;
}
.documentIcons a{
font-size:10px;
line-height:13px;
}
.documentIcons img{
border:0px solid #606060;
}
.documentIconsWrapper ul.audiofiles, .documentIconsWrapper ul.videofiles{
float:left;
width:100%;
margin:0;
}
.audiofiles li{
list-style:none outside none;
margin:20px 5px;
padding:12px;
width:438px;
float:left;
}
.videofiles li{
list-style:none outside none;
margin:20px 5px;
padding:12px;
width:100%;
float:left;
clear:both;
text-align:center;
}
.videofiles li a {float:left;width:100%;}
&lt;/style&gt;
</pre><br />
Source : http://tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/technofreaky.wordpress.com/560/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/technofreaky.wordpress.com/560/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/technofreaky.wordpress.com/560/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/technofreaky.wordpress.com/560/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/technofreaky.wordpress.com/560/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/technofreaky.wordpress.com/560/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/technofreaky.wordpress.com/560/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/technofreaky.wordpress.com/560/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/technofreaky.wordpress.com/560/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/technofreaky.wordpress.com/560/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/technofreaky.wordpress.com/560/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/technofreaky.wordpress.com/560/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/technofreaky.wordpress.com/560/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/technofreaky.wordpress.com/560/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technofreaky.wordpress.com&amp;blog=8381385&amp;post=560&amp;subd=technofreaky&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://technofreaky.wordpress.com/2012/01/20/wordpress-post-attachment-mime-types/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b6d6cbd64a935ebb79269d7f2b55599e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">technofreaky</media:title>
		</media:content>
	</item>
		<item>
		<title>Future Post inner page</title>
		<link>http://technofreaky.wordpress.com/2012/01/19/future-post-inner-page/</link>
		<comments>http://technofreaky.wordpress.com/2012/01/19/future-post-inner-page/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 06:47:41 +0000</pubDate>
		<dc:creator>technofreaky</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://technofreaky.wordpress.com/?p=558</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technofreaky.wordpress.com&amp;blog=8381385&amp;post=558&amp;subd=technofreaky&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><pre class="brush: plain;">
add_filter('the_posts', 'jm_future_posts');

function jm_future_posts($posts)
{
   global $wp_query, $wpdb;

   if(is_single() &amp;&amp; $wp_query-&gt;post_count == 0)
   {
      $posts = $wpdb-&gt;get_results($wp_query-&gt;request);
   }

   return $posts;
}
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/technofreaky.wordpress.com/558/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/technofreaky.wordpress.com/558/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/technofreaky.wordpress.com/558/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/technofreaky.wordpress.com/558/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/technofreaky.wordpress.com/558/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/technofreaky.wordpress.com/558/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/technofreaky.wordpress.com/558/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/technofreaky.wordpress.com/558/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/technofreaky.wordpress.com/558/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/technofreaky.wordpress.com/558/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/technofreaky.wordpress.com/558/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/technofreaky.wordpress.com/558/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/technofreaky.wordpress.com/558/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/technofreaky.wordpress.com/558/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technofreaky.wordpress.com&amp;blog=8381385&amp;post=558&amp;subd=technofreaky&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://technofreaky.wordpress.com/2012/01/19/future-post-inner-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b6d6cbd64a935ebb79269d7f2b55599e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">technofreaky</media:title>
		</media:content>
	</item>
		<item>
		<title>Change the Courseware word to something else</title>
		<link>http://technofreaky.wordpress.com/2012/01/17/change-the-courseware-word-to-something-else/</link>
		<comments>http://technofreaky.wordpress.com/2012/01/17/change-the-courseware-word-to-something-else/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 06:04:22 +0000</pubDate>
		<dc:creator>technofreaky</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://technofreaky.wordpress.com/?p=556</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technofreaky.wordpress.com&amp;blog=8381385&amp;post=556&amp;subd=technofreaky&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><pre class="brush: plain;">
function before_header() {
	ob_start(&quot;callback&quot;);
}

function callback($buffer) {
	$buffer = str_replace('Courseware', 'Classroom', $buffer);
	return $buffer;
}

function buffer_end() {
	ob_end_flush();
}

add_action('wp_head', 'before_header', 1);
add_action('wp_footer', 'buffer_end', 1);
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/technofreaky.wordpress.com/556/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/technofreaky.wordpress.com/556/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/technofreaky.wordpress.com/556/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/technofreaky.wordpress.com/556/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/technofreaky.wordpress.com/556/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/technofreaky.wordpress.com/556/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/technofreaky.wordpress.com/556/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/technofreaky.wordpress.com/556/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/technofreaky.wordpress.com/556/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/technofreaky.wordpress.com/556/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/technofreaky.wordpress.com/556/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/technofreaky.wordpress.com/556/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/technofreaky.wordpress.com/556/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/technofreaky.wordpress.com/556/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technofreaky.wordpress.com&amp;blog=8381385&amp;post=556&amp;subd=technofreaky&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://technofreaky.wordpress.com/2012/01/17/change-the-courseware-word-to-something-else/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b6d6cbd64a935ebb79269d7f2b55599e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">technofreaky</media:title>
		</media:content>
	</item>
		<item>
		<title>Export WordPress Posts to Excel</title>
		<link>http://technofreaky.wordpress.com/2012/01/13/export-wordpress-posts-to-excel/</link>
		<comments>http://technofreaky.wordpress.com/2012/01/13/export-wordpress-posts-to-excel/#comments</comments>
		<pubDate>Fri, 13 Jan 2012 12:44:55 +0000</pubDate>
		<dc:creator>technofreaky</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://technofreaky.wordpress.com/?p=553</guid>
		<description><![CDATA[Create a file in your theme &#8216;download.php&#8217;. And the save the file with the below content. And create a new page in your WordPress admin dashboard , with the name &#8216;Download&#8217; and select the page template to &#8216;Download&#8217;, and keep the page has private and just view the page. You will get the all your <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technofreaky.wordpress.com&amp;blog=8381385&amp;post=553&amp;subd=technofreaky&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Create a file in your theme &#8216;download.php&#8217;. And the save the file with the below content.<br />
<pre class="brush: plain;">
&lt;?php
/* Template Name: Download */
wp_head(); ?&gt;
&lt;table id=&quot;download&quot;&gt;
&lt;tr&gt;
&lt;th&gt;Title&lt;/th&gt;
&lt;th&gt;Address&lt;/th&gt;
&lt;th&gt;Area&lt;/th&gt;
&lt;th&gt;Postal Code&lt;/th&gt;
&lt;th&gt;City&lt;/th&gt;
&lt;th&gt;Manager&lt;/th&gt;
&lt;th&gt;Phone No&lt;/th&gt;
&lt;th&gt;E-Mail&lt;/th&gt;
&lt;th&gt;Website&lt;/th&gt;
&lt;th&gt;Category&lt;/th&gt;
&lt;/tr&gt;
&lt;?php $downloads = new WP_Query('showposts=-1');
while ($downloads-&gt;have_posts()): $downloads-&gt;the_post();
global $post; ?&gt;
&lt;tr&gt;
&lt;td&gt;&lt;?php the_title();?&gt;&lt;/td&gt;
&lt;td&gt;&lt;?php the_permalink();?&gt;&lt;/td&gt;
&lt;td&gt;&lt;?php echo get_post_meta($post-&gt;ID,'custom_field_name',true);?&gt;&lt;/td&gt;
&lt;td&gt;&lt;?php $poc = get_the_terms( $post-&gt;ID, 'custom_taxonomy_name', '', ', ', '' ); $list = ''; if ($poc) { foreach ($poc as $data) $list .= $data-&gt;name.', '; echo $list; } ?&gt;&lt;/td&gt;
&lt;td&gt;&lt;?php $cats = get_the_category(', '); $list = ''; if ($cats) { foreach ($cats as $data) $list .= $data-&gt;cat_name.', '; echo $list; } ?&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;?php
endwhile;
wp_reset_query(); ?&gt;
&lt;/table&gt;
</pre><br />
 And create a new page in your WordPress admin dashboard , with the name &#8216;Download&#8217; and select the page template to &#8216;Download&#8217;, and keep the page has private and just view the page.</p>
<p>You will get the all your posts.</p>
<p>Just copy it and save it in XLS.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/technofreaky.wordpress.com/553/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/technofreaky.wordpress.com/553/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/technofreaky.wordpress.com/553/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/technofreaky.wordpress.com/553/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/technofreaky.wordpress.com/553/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/technofreaky.wordpress.com/553/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/technofreaky.wordpress.com/553/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/technofreaky.wordpress.com/553/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/technofreaky.wordpress.com/553/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/technofreaky.wordpress.com/553/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/technofreaky.wordpress.com/553/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/technofreaky.wordpress.com/553/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/technofreaky.wordpress.com/553/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/technofreaky.wordpress.com/553/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technofreaky.wordpress.com&amp;blog=8381385&amp;post=553&amp;subd=technofreaky&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://technofreaky.wordpress.com/2012/01/13/export-wordpress-posts-to-excel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b6d6cbd64a935ebb79269d7f2b55599e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">technofreaky</media:title>
		</media:content>
	</item>
		<item>
		<title>Remove update notice from WordPress Admin Dashboard</title>
		<link>http://technofreaky.wordpress.com/2012/01/10/remove-update-notice-from-wordpress-admin-dashboard/</link>
		<comments>http://technofreaky.wordpress.com/2012/01/10/remove-update-notice-from-wordpress-admin-dashboard/#comments</comments>
		<pubDate>Tue, 10 Jan 2012 10:36:05 +0000</pubDate>
		<dc:creator>technofreaky</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://technofreaky.wordpress.com/?p=551</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technofreaky.wordpress.com&amp;blog=8381385&amp;post=551&amp;subd=technofreaky&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><pre class="brush: plain;">
function version()
{
remove_action('admin_notices', 'update_nag', 3);	
}
add_action('admin_init','version');
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/technofreaky.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/technofreaky.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/technofreaky.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/technofreaky.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/technofreaky.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/technofreaky.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/technofreaky.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/technofreaky.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/technofreaky.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/technofreaky.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/technofreaky.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/technofreaky.wordpress.com/551/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/technofreaky.wordpress.com/551/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/technofreaky.wordpress.com/551/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technofreaky.wordpress.com&amp;blog=8381385&amp;post=551&amp;subd=technofreaky&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://technofreaky.wordpress.com/2012/01/10/remove-update-notice-from-wordpress-admin-dashboard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b6d6cbd64a935ebb79269d7f2b55599e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">technofreaky</media:title>
		</media:content>
	</item>
		<item>
		<title>Expand onfocus and window scroll down</title>
		<link>http://technofreaky.wordpress.com/2012/01/07/expand-onfocus-and-window-scroll-down/</link>
		<comments>http://technofreaky.wordpress.com/2012/01/07/expand-onfocus-and-window-scroll-down/#comments</comments>
		<pubDate>Sat, 07 Jan 2012 11:12:17 +0000</pubDate>
		<dc:creator>technofreaky</dc:creator>
				<category><![CDATA[Jquery]]></category>

		<guid isPermaLink="false">http://technofreaky.wordpress.com/?p=549</guid>
		<description><![CDATA[Jquery HTML <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technofreaky.wordpress.com&amp;blog=8381385&amp;post=549&amp;subd=technofreaky&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Jquery<br />
<pre class="brush: plain;">
$(document).ready(function(){
$('textarea.expand').focus(function () {
    $(this).animate({ height: &quot;400px&quot; }, 500);
    $('html, body').animate({scrollTop: '140px'}, 800);
});
});
</pre><br />
HTML<br />
<pre class="brush: plain;">
&lt;textarea class=&quot;expand&quot; rows=&quot;1&quot; cols=&quot;10&quot; readonly=&quot;readonly&quot;&gt;&lt;/textarea&gt;
</pre><br />
CSS<br />
<pre class="brush: plain;">
&lt;style&gt;
.expand{height:100px;padding:5px;}
&lt;/style&gt;
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/technofreaky.wordpress.com/549/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/technofreaky.wordpress.com/549/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/technofreaky.wordpress.com/549/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/technofreaky.wordpress.com/549/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/technofreaky.wordpress.com/549/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/technofreaky.wordpress.com/549/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/technofreaky.wordpress.com/549/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/technofreaky.wordpress.com/549/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/technofreaky.wordpress.com/549/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/technofreaky.wordpress.com/549/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/technofreaky.wordpress.com/549/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/technofreaky.wordpress.com/549/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/technofreaky.wordpress.com/549/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/technofreaky.wordpress.com/549/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technofreaky.wordpress.com&amp;blog=8381385&amp;post=549&amp;subd=technofreaky&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://technofreaky.wordpress.com/2012/01/07/expand-onfocus-and-window-scroll-down/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b6d6cbd64a935ebb79269d7f2b55599e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">technofreaky</media:title>
		</media:content>
	</item>
		<item>
		<title>Show only status update in Buddypress Activity Stream</title>
		<link>http://technofreaky.wordpress.com/2012/01/07/show-only-status-update-in-buddypress-activity-stream/</link>
		<comments>http://technofreaky.wordpress.com/2012/01/07/show-only-status-update-in-buddypress-activity-stream/#comments</comments>
		<pubDate>Sat, 07 Jan 2012 09:02:17 +0000</pubDate>
		<dc:creator>technofreaky</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://technofreaky.wordpress.com/?p=547</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technofreaky.wordpress.com&amp;blog=8381385&amp;post=547&amp;subd=technofreaky&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><pre class="brush: plain;">
function custom_query_filter( $query_string ) {
$query_string .= 'action=activity_update';

return $query_string;
}
add_filter( 'bp_dtheme_ajax_querystring', 'custom_query_filter' );
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/technofreaky.wordpress.com/547/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/technofreaky.wordpress.com/547/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/technofreaky.wordpress.com/547/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/technofreaky.wordpress.com/547/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/technofreaky.wordpress.com/547/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/technofreaky.wordpress.com/547/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/technofreaky.wordpress.com/547/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/technofreaky.wordpress.com/547/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/technofreaky.wordpress.com/547/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/technofreaky.wordpress.com/547/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/technofreaky.wordpress.com/547/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/technofreaky.wordpress.com/547/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/technofreaky.wordpress.com/547/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/technofreaky.wordpress.com/547/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technofreaky.wordpress.com&amp;blog=8381385&amp;post=547&amp;subd=technofreaky&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://technofreaky.wordpress.com/2012/01/07/show-only-status-update-in-buddypress-activity-stream/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b6d6cbd64a935ebb79269d7f2b55599e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">technofreaky</media:title>
		</media:content>
	</item>
		<item>
		<title>Expand div on focus / click event in jquery</title>
		<link>http://technofreaky.wordpress.com/2012/01/02/expand-div-on-focus-click-event-in-jquery/</link>
		<comments>http://technofreaky.wordpress.com/2012/01/02/expand-div-on-focus-click-event-in-jquery/#comments</comments>
		<pubDate>Mon, 02 Jan 2012 05:44:04 +0000</pubDate>
		<dc:creator>technofreaky</dc:creator>
				<category><![CDATA[Jquery]]></category>

		<guid isPermaLink="false">http://technofreaky.wordpress.com/?p=536</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technofreaky.wordpress.com&amp;blog=8381385&amp;post=536&amp;subd=technofreaky&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><pre class="brush: plain;">
$(&quot;div&quot;).live(&quot;focus, click&quot;, function(e) {
	  var o = $(this),
	      expand_height = &quot;400px&quot;;
	  o.animate({height : expand_height}, function() {
	       o.style.display = 'block';
	  });
	});
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/technofreaky.wordpress.com/536/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/technofreaky.wordpress.com/536/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/technofreaky.wordpress.com/536/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/technofreaky.wordpress.com/536/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/technofreaky.wordpress.com/536/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/technofreaky.wordpress.com/536/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/technofreaky.wordpress.com/536/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/technofreaky.wordpress.com/536/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/technofreaky.wordpress.com/536/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/technofreaky.wordpress.com/536/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/technofreaky.wordpress.com/536/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/technofreaky.wordpress.com/536/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/technofreaky.wordpress.com/536/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/technofreaky.wordpress.com/536/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technofreaky.wordpress.com&amp;blog=8381385&amp;post=536&amp;subd=technofreaky&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://technofreaky.wordpress.com/2012/01/02/expand-div-on-focus-click-event-in-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b6d6cbd64a935ebb79269d7f2b55599e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">technofreaky</media:title>
		</media:content>
	</item>
		<item>
		<title>Display total number of attachments to a Post</title>
		<link>http://technofreaky.wordpress.com/2011/12/29/display-total-number-of-attachments-to-a-post/</link>
		<comments>http://technofreaky.wordpress.com/2011/12/29/display-total-number-of-attachments-to-a-post/#comments</comments>
		<pubDate>Thu, 29 Dec 2011 05:28:13 +0000</pubDate>
		<dc:creator>technofreaky</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[attachment]]></category>
		<category><![CDATA[count]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[files]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[total]]></category>

		<guid isPermaLink="false">http://technofreaky.wordpress.com/?p=534</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technofreaky.wordpress.com&amp;blog=8381385&amp;post=534&amp;subd=technofreaky&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><pre class="brush: plain;">
&lt;?php
global $post;
$attachments = get_children( array( 'post_parent' =&gt; $post-&gt;post_parent, 'post_status' =&gt; 'inherit', 'post_type' =&gt; 'attachment', 'post_mime_type' =&gt; 'image', 'order' =&gt; 'ASC', 'orderby' =&gt; 'menu_order ID' ) );

$count = count( $attachments );
$specific = array();
$i = 1;

foreach ( $attachments as $attachment ) {
    $specific[$attachment-&gt;ID] = $i;
    ++$i;
}

echo &quot;Image {$specific[$post-&gt;ID]} of {$count}&quot;;

?&gt;
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/technofreaky.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/technofreaky.wordpress.com/534/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/technofreaky.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/technofreaky.wordpress.com/534/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/technofreaky.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/technofreaky.wordpress.com/534/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/technofreaky.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/technofreaky.wordpress.com/534/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/technofreaky.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/technofreaky.wordpress.com/534/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/technofreaky.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/technofreaky.wordpress.com/534/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/technofreaky.wordpress.com/534/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/technofreaky.wordpress.com/534/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technofreaky.wordpress.com&amp;blog=8381385&amp;post=534&amp;subd=technofreaky&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://technofreaky.wordpress.com/2011/12/29/display-total-number-of-attachments-to-a-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b6d6cbd64a935ebb79269d7f2b55599e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">technofreaky</media:title>
		</media:content>
	</item>
		<item>
		<title>Display post attachments and custom Meta value for WordPress Gallery</title>
		<link>http://technofreaky.wordpress.com/2011/12/27/display-post-attachments-and-custom-meta-value-for-wordpress-gallery/</link>
		<comments>http://technofreaky.wordpress.com/2011/12/27/display-post-attachments-and-custom-meta-value-for-wordpress-gallery/#comments</comments>
		<pubDate>Tue, 27 Dec 2011 12:22:40 +0000</pubDate>
		<dc:creator>technofreaky</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[box]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[field]]></category>
		<category><![CDATA[galleriffic]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[meta]]></category>

		<guid isPermaLink="false">http://technofreaky.wordpress.com/?p=531</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technofreaky.wordpress.com&amp;blog=8381385&amp;post=531&amp;subd=technofreaky&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><pre class="brush: plain;">
&lt;?php
function gallery() {
global $post, $posts;
?&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;&lt;?php echo get_stylesheet_directory_uri(); ?&gt;/jm_library/components/gallery/galleriffic/css/galleriffic-2.css&quot; type=&quot;text/css&quot; /&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;&lt;?php echo get_stylesheet_directory_uri(); ?&gt;/jm_library/components/gallery/galleriffic/js/jquery.galleriffic.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;&lt;?php echo get_stylesheet_directory_uri(); ?&gt;/jm_library/components/gallery/galleriffic/js/jquery.opacityrollover.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;&lt;?php echo get_stylesheet_directory_uri(); ?&gt;/jm_library/components/gallery/galleriffic/js/galleriffic.js&quot;&gt;&lt;/script&gt;
&lt;?php
$images = get_children(array(
'post_parent'    =&gt; get_the_ID(),
'post_type'      =&gt; 'attachment',
'numberposts'    =&gt; -1, // show all
'post_status'    =&gt; null,
'post_mime_type' =&gt; 'image',
));
echo '&lt;div id=&quot;gallery&quot; class=&quot;content&quot;&gt;&lt;div id=&quot;controls&quot; class=&quot;controls&quot;&gt;&lt;/div&gt;&lt;div class=&quot;slideshow-container&quot;&gt;&lt;div id=&quot;loading&quot; class=&quot;loader&quot;&gt;&lt;/div&gt;&lt;div id=&quot;slideshow&quot; class=&quot;slideshow&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;';
echo '&lt;div id=&quot;thumbs&quot; class=&quot;navigation&quot;&gt;&lt;ul class=&quot;thumbs noscript&quot; style=&quot;margin:0;&quot;&gt;';
foreach($images as $image) {
$atturl   = wp_get_attachment_url($image-&gt;ID);
$source .= $atturl.',';
$at = rtrim($source, ',');
}
$image=get_post_meta($post-&gt;ID, 'images', true);
$img=explode(',',$image); 
for($i=0;$i&lt;sizeof($img);$i++)
{ 
$source1 .= $img[$i].',';
$at1 = rtrim($source1, ',');
}
if(at == '')
{
$collect = $at1;
}
elseif($at1 == '')
{
$collect = $at;
}
elseif($at1 != '' &amp;&amp; $at == '')
{
$collect = $at1;
}
else
{
$collect = $at.','.$at1;
}
$col=explode(',',$collect); 
for($i=0;$i&lt;sizeof($col);$i++)
{
if(($col[$i] == substr($col[$i],0,57).''.'.jpg') || ($col[$i] == substr($col[$i],0,57).''.'_s.jpg') || ($col[$i] == substr($col[$i],0,57).''.'_b.jpg') || ($col[$i] == substr($col[$i],0,57).''.'_m.jpg')) {
echo '&lt;li&gt;&lt;a class=&quot;thumb&quot; href=&quot;'.substr($col[$i],0,57).''.'_b.jpg'.'&quot;&gt;&lt;img src=&quot;'.get_stylesheet_directory_uri().'/timthumb.php?src='.substr($col[$i],0,57).''.'_s.jpg'.'&amp;h=75&amp;w=75&amp;zc=1'.'&quot;/&gt;&lt;/a&gt;';
}
else
{
echo '&lt;li&gt;&lt;a class=&quot;thumb&quot; href=&quot;'.$col[$i].'&quot;&gt;&lt;img src=&quot;'.get_stylesheet_directory_uri().'/timthumb.php?src='.$col[$i].'&amp;h=75&amp;w=75&amp;zc=1'.'&quot;/&gt;&lt;/a&gt;';
}
}
echo '&lt;/ul&gt;&lt;/div&gt;';
}
add_shortcode('owngallery', 'gallery');
?&gt;
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/technofreaky.wordpress.com/531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/technofreaky.wordpress.com/531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/technofreaky.wordpress.com/531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/technofreaky.wordpress.com/531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/technofreaky.wordpress.com/531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/technofreaky.wordpress.com/531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/technofreaky.wordpress.com/531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/technofreaky.wordpress.com/531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/technofreaky.wordpress.com/531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/technofreaky.wordpress.com/531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/technofreaky.wordpress.com/531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/technofreaky.wordpress.com/531/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/technofreaky.wordpress.com/531/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/technofreaky.wordpress.com/531/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=technofreaky.wordpress.com&amp;blog=8381385&amp;post=531&amp;subd=technofreaky&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://technofreaky.wordpress.com/2011/12/27/display-post-attachments-and-custom-meta-value-for-wordpress-gallery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b6d6cbd64a935ebb79269d7f2b55599e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">technofreaky</media:title>
		</media:content>
	</item>
	</channel>
</rss>
