<?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>A Wordpress Development Blog &#187; Headline</title>
	<atom:link href="http://www.binarspace.com/category/headline/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.binarspace.com</link>
	<description>Another WordPress Development Blog</description>
	<lastBuildDate>Mon, 29 Nov 2010 10:34:47 +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>Binar Zeo Theme &#8211; Beta Release</title>
		<link>http://www.binarspace.com/headline/binar-zeo-theme-beta-release/</link>
		<comments>http://www.binarspace.com/headline/binar-zeo-theme-beta-release/#comments</comments>
		<pubDate>Wed, 17 Nov 2010 12:58:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Binar Zeo Theme]]></category>
		<category><![CDATA[Headline]]></category>

		<guid isPermaLink="false">http://www.binarspace.com/?p=179</guid>
		<description><![CDATA[Binar Zeo Theme is now available in Beta version. It is designed to be a Wordpress Magazine Theme and in comparison with other similar options it comes with an advanced pack of features. ]]></description>
			<content:encoded><![CDATA[<p>Binar Zeo Theme is now available in Beta version. It is designed to be a WordPress Magazine Theme and in comparison with other similar options it comes with an advanced pack of features. </p>
<p>Please report any bugs or improvements requests at cremus at binarspace.com.<a href="http://www.binarspace.com/downloads/zeo.rar"> Download the theme here </a> or <a href="http://zeo.binarspace.com/">see the demo here</a>.</p>
<p><a href="http://www.binarspace.com/wp-content/uploads/2010/11/zeo1.jpg"><img src="http://www.binarspace.com/wp-content/uploads/2010/11/zeo1.jpg" alt="" title="zeo" width="400" height="330" class="aligncenter size-full wp-image-212" /></a></p>
<p><strong>The Binar Zeo Theme includes:</strong></p>
<p><strong>Editable Carousel on main page:</strong>  You can add custom pictures and link them to the most successful posts.<br />
Highly customizable design: From the admin dashboard design interface you can customize almost all the elements on the front end (such as background colors, font sizes or colors). </p>
<p><strong>Content Customizations:</strong> You choose the number of posts to be published on the front page. You can also control if you want the header menu displayed or not. Plus you can switch on and off the various add spaces available.</p>
<p><strong>Custom Menus:</strong> There are two menus (one of them can be turned on or off) that can be fully controlled via the WordPress menu interface.</p>
<p><strong>Custom Background:</strong> You can easily custom the background feature developed by WordPress. You can select the background color or upload an image and tile it.</p>
<p><strong>Ads Administration:</strong> There are 5 advertising zones in this theme. You can insert your own ads or 3rd party ads and display them in different sections on the Front End.</p>
<p><strong>AutoThumb: </strong> Binar Zeo uses timthumb script in order to create automatic thumbs.</p>
<p><strong>Sidebar and Footer widgets: </strong>You can drag and drop widgets in the 4 widgets area (one in the sidebar and three in the footer)</p>
<p><object width="300" height="193"><param name="movie" value="http://www.youtube.com/v/bYJJNTxj4b8?fs=1&amp;hl=ro_RO"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/bYJJNTxj4b8?fs=1&amp;hl=ro_RO" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="300" height="193"></embed></object></p>
<p><strong>Install</strong></p>
<p>1.	Download and extract the zip file.<br />
2.	Upload the theme file to your server at “/wp-content/themes/” folder.<br />
3.	Activate the theme. (Admin Panel -> Presentation -> Themes)</p>
<p><strong>After Install</strong></p>
<p>- See the videos located here: <a href="http://www.youtube.com/binarspace#p/u">http://www.youtube.com/binarspace#p/u </a> . They are helpful to make yourself an idea about what this theme can do.</p>
<p>- To “enable” front page thumbs you need to create a custom field called “Image” for each post that reaches the front site. As value for this custom field you can place the image path. The thumb script will do the rest. </p>
<p>- Make sure that the theme can create thumbs. If the thumb creation is not working you need to give 777 rights on the folder cache located in zeo/scripts/</p>
<p>- Upload images and set the Carousel.</p>
<p>- The theme comes with a predefined design. Play with the colors, sizes and other features until you get the look you want.</p>
<h2  class="related_post_title">Random Posts</h2><ul class="related_post"><li><a href="http://www.binarspace.com/wordpress-tips-and-tricks/using-custom-background-function-to-style-any-other-div/" title="Using custom background function to style any other div">Using custom background function to style any other div</a></li><li><a href="http://www.binarspace.com/wordpress-tips-and-tricks/change-background-on-a-wordpress-theme/" title="Change background on a wordpress theme">Change background on a wordpress theme</a></li><li><a href="http://www.binarspace.com/wordpress-tips-and-tricks/add-custom-content-afteror-before-each-post/" title="Add custom content after(or before) each post">Add custom content after(or before) each post</a></li><li><a href="http://www.binarspace.com/wordpress-tips-and-tricks/how-to-display-author%e2%80%99s-avatar/" title="How to display author’s avatar">How to display author’s avatar</a></li><li><a href="http://www.binarspace.com/wordpress-tips-and-tricks/random-posts-in-wordpress/" title="Random posts in Wordpress">Random posts in Wordpress</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.binarspace.com/headline/binar-zeo-theme-beta-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to test different Adsense units</title>
		<link>http://www.binarspace.com/wordpress-tips-and-tricks/how-to-test-different-adsense-units/</link>
		<comments>http://www.binarspace.com/wordpress-tips-and-tricks/how-to-test-different-adsense-units/#comments</comments>
		<pubDate>Mon, 15 Nov 2010 10:56:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Headline]]></category>
		<category><![CDATA[Wordpress Tips and Tricks]]></category>

		<guid isPermaLink="false">http://www.binarspace.com/?p=188</guid>
		<description><![CDATA[If you are using Adsense you probably played with various add types and positions. And if you are trying to make the blog profitable you probably consider Adsense optimization (playing with various ad styles, formats and position to get the most money in.)]]></description>
			<content:encoded><![CDATA[<p>If you are using Adsense you probably played with various add types and positions. And if you are trying to make the blog profitable you probably consider Adsense optimization (playing with various ad styles, formats and position to get the most money in.)</p>
<p>Today‘s tip can help you determine what is the best choice when dealing with various Adsense units.<br />
Let’s assume that the page where Adsense is displayed is the main one. So open the index.php and paste this code in the beginning:</p>
<p><code><br />
//update_option('test_version',0);<br />
$test=get_option('test_version');</p>
<p>if ($test==1){<br />
			update_option('test_version',0);<br />
			require (file1.php);<br />
			}</p>
<p>else if($test==0){<br />
			update_option('test_version',1);<br />
			require (file2.php);<br />
}</p>
<p></code></p>
<p>The code above read the ‘test_version’ option from the database and loads a file if the value is 0 and another file if the value is 1.  The first line need to be commented or removed after the first run(it’s just for adding the new row in the wp_options table.)</p>
<p>After that, put in file1.php and file2.php the versions of the main page code. To track the Adsense units just create separate ads for each page version, assigned those to new channels, and see who brings the most money or have the biggest CTR%.</p>
<p>You can extend the code above for 3 or more versions but I recommend doing these optimizations in small steps. Also make sure that your experiments benefits from enough traffic.</p>
<h2  class="related_post_title">Random Posts</h2><ul class="related_post"><li><a href="http://www.binarspace.com/wordpress-tips-and-tricks/display-post-images-via-custom-fields/" title="Display post images via Custom fields">Display post images via Custom fields</a></li><li><a href="http://www.binarspace.com/wordpress-tips-and-tricks/random-posts-in-wordpress/" title="Random posts in Wordpress">Random posts in Wordpress</a></li><li><a href="http://www.binarspace.com/wordpress-tips-and-tricks/automatically-insert-adsense-code-in-old-posts/" title="Automatically insert Adsense code in old posts.">Automatically insert Adsense code in old posts.</a></li><li><a href="http://www.binarspace.com/wordpress-tips-and-tricks/use-widgets-to-display-ads-between-posts/" title="Use widgets to display ads between posts">Use widgets to display ads between posts</a></li><li><a href="http://www.binarspace.com/wordpress-tips-and-tricks/add-a-subtitle-under-the-post-title/" title="Add a subtitle under the post title">Add a subtitle under the post title</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.binarspace.com/wordpress-tips-and-tricks/how-to-test-different-adsense-units/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exclude posts in multiple loops</title>
		<link>http://www.binarspace.com/wordpress-tips-and-tricks/exclude-posts-in-multiple-loops/</link>
		<comments>http://www.binarspace.com/wordpress-tips-and-tricks/exclude-posts-in-multiple-loops/#comments</comments>
		<pubDate>Wed, 10 Nov 2010 10:35:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Headline]]></category>
		<category><![CDATA[Wordpress Tips and Tricks]]></category>

		<guid isPermaLink="false">http://www.binarspace.com/?p=169</guid>
		<description><![CDATA[The idea of this post came to me while I was installing a new theme on this blog. Some magazine themes have featured or headline sections (I have both). When you have a interesting post you may want to feature him and make sure is always on first page (at least for a couple of days).]]></description>
			<content:encoded><![CDATA[<p>The idea of this post came to me while I was installing a new theme on this blog. Some magazine themes have featured or headline sections (I have both). When you have a interesting post you may want to feature him and make sure is always on first page (at least for a couple of days).</p>
<p>The solution is simple: You create a category Featured or Headline (or both), assign the post to them (and to his original category) and create extra loops. For example, if you have the Headline and Featured section (like on this blog) you will create two additional loops. </p>
<p>The query for loops is simple: </p>
<p><code></p>
<p>query_posts("showposts=1&#038;category_name=Headline");<br />
while (have_posts()) : the_post();<br />
// display post title, excerpt, thumb, etc…<br />
endwhile;</p>
<p></code></p>
<p>or</p>
<p><code></p>
<p>query_posts("showposts=3&#038;category_name=Featured");<br />
while (have_posts()) : the_post();<br />
// display post title, excerpt, thumb, etc…<br />
endwhile;</p>
<p></code></p>
<p>But you notice the hot post that you just publish &#038; selected as Headline appears also in the normal post list. And this can be really annoying especially if you are using pictures near the excerpts and you see the same thumb twice on front page.</p>
<p>The solution is to capture the post id’s you are displaying in the first loops and exclude those ids in the main one. To do this you need to save those ids in an array. </p>
<p><code></p>
<p>query_posts("showposts=1&#038;category_name=Headline");<br />
while (have_posts()) : the_post();<br />
$exclude[]=get_the_ID(); // capture the ids<br />
endwhile;</p>
<p></code></p>
<p>In the main loop you will exclude the post’s id saved in $exclude array.</p>
<p><code><br />
$args=array('posts_per_page'=&gt;7,<br />
   'post__not_in'=&gt;$exclude<br />
);</p>
<p>query_posts($args);<br />
while (have_posts()) : the_post();<br />
// display post title, excerpt, thumb ,etc…<br />
endwhile;</p>
<p></code></p>
<p>If you have the first loops in header.php or in any other file other that the one who keeps the main loop you need to add global $exclude; in the beginning. Otherwise you will not be able to access the array in main loop.</p>
<h2  class="related_post_title">Random Posts</h2><ul class="related_post"><li><a href="http://www.binarspace.com/wordpress-tips-and-tricks/use-widgets-to-display-ads-between-posts/" title="Use widgets to display ads between posts">Use widgets to display ads between posts</a></li><li><a href="http://www.binarspace.com/wordpress-tips-and-tricks/change-background-on-a-wordpress-theme/" title="Change background on a wordpress theme">Change background on a wordpress theme</a></li><li><a href="http://www.binarspace.com/wordpress-tips-and-tricks/using-the-menus-in-wordpress/" title="Using the Menus in Wordpress">Using the Menus in Wordpress</a></li><li><a href="http://www.binarspace.com/wordpress-tips-and-tricks/moving-kubrick-gradient-into-other-wordpress-themes/" title="Moving Kubrick gradient into other wordpress themes">Moving Kubrick gradient into other wordpress themes</a></li><li><a href="http://www.binarspace.com/headline/binar-zeo-theme-beta-release/" title="Binar Zeo Theme &#8211; Beta Release">Binar Zeo Theme &#8211; Beta Release</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.binarspace.com/wordpress-tips-and-tricks/exclude-posts-in-multiple-loops/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom length for excerpts</title>
		<link>http://www.binarspace.com/wordpress-tips-and-tricks/custom-length-for-excerpts/</link>
		<comments>http://www.binarspace.com/wordpress-tips-and-tricks/custom-length-for-excerpts/#comments</comments>
		<pubDate>Mon, 08 Nov 2010 10:31:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Headline]]></category>
		<category><![CDATA[Wordpress Tips and Tricks]]></category>

		<guid isPermaLink="false">http://www.binarspace.com/?p=146</guid>
		<description><![CDATA[Here is a trick you may want to use when playing with the post’s excerpts .More exactly: when you want to display different length excerpts for each category.]]></description>
			<content:encoded><![CDATA[<p>Here is a trick you may want to use when playing with the post’s excerpts .More exactly: when you want to display different length excerpts for each category.</p>
<p>In this case all you need to do is add the code below into functions.php</p>
<p><code><br />
add_filter('excerpt_length', 'my_excerpt_length');<br />
function my_excerpt_length($length) {<br />
    if(in_category('category-slug')) {<br />
        return 3;<br />
	} else if (in_category('other-category-slug')){<br />
	 	return 7;<br />
	}<br />
	else {<br />
        return 40;<br />
    }<br />
}<br />
</code></p>
<p>A few notes :<br />
- The function above will return the number of words and not the number of charters.<br />
- The code above don’t work if you have custom excerpts<br />
- You can use it for posts also by changing the “if” clause (although I think custom excerpts may work better in this case.)</p>
<h2  class="related_post_title">Random Posts</h2><ul class="related_post"><li><a href="http://www.binarspace.com/wordpress-tips-and-tricks/using-the-menus-in-wordpress/" title="Using the Menus in Wordpress">Using the Menus in Wordpress</a></li><li><a href="http://www.binarspace.com/wordpress-tips-and-tricks/using-widgets-inside-a-wordpress-theme/" title="Using Widgets inside a Wordpress theme">Using Widgets inside a Wordpress theme</a></li><li><a href="http://www.binarspace.com/wordpress-tips-and-tricks/static-content-on-a-wordpress-home-page/" title="Static content on a wordpress home page">Static content on a wordpress home page</a></li><li><a href="http://www.binarspace.com/wordpress-tips-and-tricks/exclude-posts-in-multiple-loops/" title="Exclude posts in multiple loops">Exclude posts in multiple loops</a></li><li><a href="http://www.binarspace.com/wordpress-tips-and-tricks/display-post-images-via-custom-fields/" title="Display post images via Custom fields">Display post images via Custom fields</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.binarspace.com/wordpress-tips-and-tricks/custom-length-for-excerpts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

