<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>A Wordpress Development Blog</title>
	
	<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>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/binar-space" /><feedburner:info uri="binar-space" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>binar-space</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Use widgets to display ads between posts</title>
		<link>http://feedproxy.google.com/~r/binar-space/~3/R2XN2-SuJUA/</link>
		<comments>http://www.binarspace.com/wordpress-tips-and-tricks/use-widgets-to-display-ads-between-posts/#comments</comments>
		<pubDate>Mon, 29 Nov 2010 10:34:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress Tips and Tricks]]></category>

		<guid isPermaLink="false">http://www.binarspace.com/?p=239</guid>
		<description><![CDATA[In case you want to show ads between the posts displayed on the main page you may want to look into the “widget solution”. Here is a how you can do that.]]></description>
			<content:encoded><![CDATA[<p>In case you want to show ads between the posts displayed on the main page you may want to look into the “widget solution”. Here is a how you can do that.</p>
<p>First of all you need to register a widget. This widget will not be used on sidebar or footer but inside the index page. Copy this code inside functions.php</p>
<p><code><br />
register_sidebar( array(<br />
       'name' =&gt; 'advertising',<br />
        'id' =&gt; 'advertising',<br />
        'before_widget' =&gt; '&lt;div id="advertising_div"&gt;',<br />
        'after_widget' =&gt; '&lt;/div&gt;',<br />
        'before_title' =&gt; '&lt;h3 class="advertising_div_h"&gt;',<br />
        'after_title' =&gt; '&lt;/h3&gt;'<br />
    ) );<br />
</code></p>
<p>After that, open the index.php and find the loop. Look for endwhile; instruction – It’s marking the end of the loop.  Before this line post the code:</p>
<p><code><br />
$count_posts++;<br />
if ($count_posts==2)<br />
	{<br />
	dynamic_sidebar('advertising');<br />
	$count_posts=0;<br />
	}<br />
</code></p>
<p>This code will display the widget advertising every 2 posts. To change this just edit the  <em>$count_posts==2</em> and use the number you want.</p>
<p>Also you need to put this line <em>$count_posts=0;</em>  before the loop(just to keep things simple – write it as first line) . </p>
<h2  class="related_post_title">Random Posts</h2><ul class="related_post"><li><a href="http://www.binarspace.com/wordpress-tips-and-tricks/custom-length-for-excerpts/" title="Custom length for excerpts">Custom length for excerpts</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/how-to-test-different-adsense-units/" title="How to test different Adsense units">How to test different Adsense units</a></li><li><a href="http://www.binarspace.com/wordpress-tips-and-tricks/how-to-re-start-a-wordpress-blog/" title="How to re start a wordpress blog">How to re start a wordpress blog</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><img src="http://feeds.feedburner.com/~r/binar-space/~4/R2XN2-SuJUA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.binarspace.com/wordpress-tips-and-tricks/use-widgets-to-display-ads-between-posts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.binarspace.com/wordpress-tips-and-tricks/use-widgets-to-display-ads-between-posts/</feedburner:origLink></item>
		<item>
		<title>Binar Zeo – Add New Page</title>
		<link>http://feedproxy.google.com/~r/binar-space/~3/Ji9eIFYEgdo/</link>
		<comments>http://www.binarspace.com/binar-zeo-theme/binar-zeo-add-new-page/#comments</comments>
		<pubDate>Wed, 24 Nov 2010 14:27:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Binar Zeo Theme]]></category>

		<guid isPermaLink="false">http://www.binarspace.com/?p=233</guid>
		<description><![CDATA[In this video you can see how you can publish a new post. Also, you can see how you can set the text and image for main page display.
]]></description>
			<content:encoded><![CDATA[<p>In this video you can see how you can publish a new post. Also, you can see how you can set the text and image for main page display.</p>
<p><object width="450" height="278"><param name="movie" value="http://www.youtube.com/v/UdXlAdwuXfg?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/UdXlAdwuXfg?fs=1&amp;hl=ro_RO" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="450" height="278"></embed></object></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-categories-in-multiple-columns/" title="Display categories in multiple columns">Display categories in multiple columns</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/adding-content-in-footerheader-without-changing-theme-files/" title="Adding content in footer/header without changing theme files">Adding content in footer/header without changing theme files</a></li><li><a href="http://www.binarspace.com/wordpress-tips-and-tricks/extending-a-wordpress-theme-with-a-new-php-page/" title="Extending a  wordpress theme with a new php page.">Extending a  wordpress theme with a new php page.</a></li><li><a href="http://www.binarspace.com/wordpress-tips-and-tricks/creating-image-thumbs-in-wordpress/" title="Creating image thumbs in wordpress">Creating image thumbs in wordpress</a></li></ul><img src="http://feeds.feedburner.com/~r/binar-space/~4/Ji9eIFYEgdo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.binarspace.com/binar-zeo-theme/binar-zeo-add-new-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.binarspace.com/binar-zeo-theme/binar-zeo-add-new-page/</feedburner:origLink></item>
		<item>
		<title>Using Widgets inside a WordPress theme</title>
		<link>http://feedproxy.google.com/~r/binar-space/~3/0byl63XVI2w/</link>
		<comments>http://www.binarspace.com/wordpress-tips-and-tricks/using-widgets-inside-a-wordpress-theme/#comments</comments>
		<pubDate>Fri, 19 Nov 2010 10:26:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress Tips and Tricks]]></category>

		<guid isPermaLink="false">http://www.binarspace.com/?p=224</guid>
		<description><![CDATA[We all know what the wordpress widgets are. And we all appreciate the drag and drop and management simplicity. But very few think about using them outside their usual place which is the sidebar (or footer on some themes).]]></description>
			<content:encoded><![CDATA[<p>We all know what the wordpress widgets are. And we all appreciate the drag and drop and management simplicity. But very few think about using them outside their usual place which is the sidebar (or footer on some themes).</p>
<p>If you are doing a magazine theme you can use the widgets inside the content area. Here is how you can do it</p>
<p>First “register ” the widget area . Insert this code in functions.php </p>
<p><code></p>
<p>	register_sidebar(array('name' =&gt; New widget area,<br />
	'before_widget' =&gt; '',<br />
	'after_widget' =&gt; '',<br />
	'before_title' =&gt; '',<br />
	'after_title' =&gt; ''));</p>
<p></code></p>
<p>After that you need to open the file that will keep the widget area and paste this code in the right place.</p>
<p><code></p>
<p>if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(2) ) : ?><br />
<?php endif; ?></p>
<p></code></p>
<p>Save and go to Widgets area in admin to use the created zone.</p>
<h2  class="related_post_title">Random Posts</h2><ul class="related_post"><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/creating-image-thumbs-in-wordpress/" title="Creating image thumbs in wordpress">Creating image thumbs in wordpress</a></li><li><a href="http://www.binarspace.com/wordpress-tips-and-tricks/how-to-change-the-admin-logo/" title="How to change the admin logo">How to change the admin logo</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><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></ul><img src="http://feeds.feedburner.com/~r/binar-space/~4/0byl63XVI2w" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.binarspace.com/wordpress-tips-and-tricks/using-widgets-inside-a-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.binarspace.com/wordpress-tips-and-tricks/using-widgets-inside-a-wordpress-theme/</feedburner:origLink></item>
		<item>
		<title>Binar Zeo – the Carousel Help</title>
		<link>http://feedproxy.google.com/~r/binar-space/~3/Gb5AHWH-mWg/</link>
		<comments>http://www.binarspace.com/binar-zeo-theme/binar-zeo-the-carousel-help/#comments</comments>
		<pubDate>Thu, 18 Nov 2010 14:46:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Binar Zeo Theme]]></category>

		<guid isPermaLink="false">http://www.binarspace.com/?p=219</guid>
		<description><![CDATA[In this video we show how you can setup and use the Binar Zeo Carousel .]]></description>
			<content:encoded><![CDATA[<p>In this video we show how you can setup and use the Binar Zeo Carousel .</p>
<p><object width="450" height="278"><param name="movie" value="http://www.youtube.com/v/yEX9BFXVKXU?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/yEX9BFXVKXU?fs=1&amp;hl=ro_RO" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="450" height="278"></embed></object></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/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/extending-a-wordpress-theme-with-a-new-php-page/" title="Extending a  wordpress theme with a new php page.">Extending a  wordpress theme with a new php page.</a></li><li><a href="http://www.binarspace.com/wordpress-tips-and-tricks/update_optionget_option-and-php-serialize/" title="Update_option/get_option and PHP serialize">Update_option/get_option and PHP serialize</a></li><li><a href="http://www.binarspace.com/wordpress-tips-and-tricks/moving-kubrick-gradient-into-other-wordpress-themes-part2/" title="Moving Kubrick gradient into other wordpress themes &#8211; part2">Moving Kubrick gradient into other wordpress themes &#8211; part2</a></li></ul><img src="http://feeds.feedburner.com/~r/binar-space/~4/Gb5AHWH-mWg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.binarspace.com/binar-zeo-theme/binar-zeo-the-carousel-help/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.binarspace.com/binar-zeo-theme/binar-zeo-the-carousel-help/</feedburner:origLink></item>
		<item>
		<title>Binar Zeo Theme – Beta Release</title>
		<link>http://feedproxy.google.com/~r/binar-space/~3/H5N6py802cs/</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/how-to-change-the-admin-logo/" title="How to change the admin logo">How to change the admin logo</a></li><li><a href="http://www.binarspace.com/wordpress-tips-and-tricks/display-post-images-via-attachments/" title="Display post images via attachments">Display post images via attachments</a></li><li><a href="http://www.binarspace.com/wordpress-tips-and-tricks/how-to-re-start-a-wordpress-blog/" title="How to re start a wordpress blog">How to re start a wordpress blog</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/binar-zeo-theme/binar-zeo-the-carousel-help/" title="Binar Zeo &#8211; the Carousel Help">Binar Zeo &#8211; the Carousel Help</a></li></ul><img src="http://feeds.feedburner.com/~r/binar-space/~4/H5N6py802cs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.binarspace.com/headline/binar-zeo-theme-beta-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.binarspace.com/headline/binar-zeo-theme-beta-release/</feedburner:origLink></item>
		<item>
		<title>Using the Menus in WordPress</title>
		<link>http://feedproxy.google.com/~r/binar-space/~3/rI6ne4wVxP4/</link>
		<comments>http://www.binarspace.com/wordpress-tips-and-tricks/using-the-menus-in-wordpress/#comments</comments>
		<pubDate>Wed, 17 Nov 2010 10:55:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Wordpress Tips and Tricks]]></category>

		<guid isPermaLink="false">http://www.binarspace.com/?p=201</guid>
		<description><![CDATA[Today’s tip is about using the wordpress built in menu functions. If implemented correctly these will let you customize the menus and help you manage the blog much more easier.
]]></description>
			<content:encoded><![CDATA[<p>Today’s tip is about using the wordpress built in menu functions. If implemented correctly these will let you customize the menus and help you manage the blog much more easier.</p>
<p>First you need to open functions.php and “register” the menus. Just put in the following line: </p>
<p><code><br />
register_nav_menus( array(<br />
		'primary' =&gt; __( 'Primary Navigation', 'test binar' ),<br />
		) );</p>
<p></code></p>
<p>The code above will register only one menu. If you want more just extend the array.</p>
<p>Once the menus are registered the only thing that needs to be done is to “mark” their position in the template.</p>
<p>Open the template file (usually header.php) and locate the menu lines.  The menus are built using html code or wordpress functions like wp_list_pages. Replace those lines with:</p>
<p><code></p>
<p>wp_nav_menu( array( 'container_class' =&gt; 'menu-header', 'theme_location' =&gt; 'primary' ) );</p>
<p></code></p>
<p>Save and go in Admin Appearance tab. You will see the Menu interface is enabled and ready to use.Just build a menu, put some links in and assign them to primary location and you are ready to go.</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/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/extending-a-wordpress-theme-with-a-new-php-page/" title="Extending a  wordpress theme with a new php page.">Extending a  wordpress theme with a new php 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/adding-content-in-footerheader-without-changing-theme-files/" title="Adding content in footer/header without changing theme files">Adding content in footer/header without changing theme files</a></li></ul><img src="http://feeds.feedburner.com/~r/binar-space/~4/rI6ne4wVxP4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.binarspace.com/wordpress-tips-and-tricks/using-the-menus-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.binarspace.com/wordpress-tips-and-tricks/using-the-menus-in-wordpress/</feedburner:origLink></item>
		<item>
		<title>Add custom content after(or before) each post</title>
		<link>http://feedproxy.google.com/~r/binar-space/~3/oc0xxuUAmbs/</link>
		<comments>http://www.binarspace.com/wordpress-tips-and-tricks/add-custom-content-afteror-before-each-post/#comments</comments>
		<pubDate>Tue, 16 Nov 2010 12:38:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress Tips and Tricks]]></category>

		<guid isPermaLink="false">http://www.binarspace.com/?p=196</guid>
		<description><![CDATA[If you want to add custom content after each post you have 2 options: You edit the template or you use the wordpress filter function. The second method has the advantage of not editing the template files. You just need to copy paste the code below.]]></description>
			<content:encoded><![CDATA[<p>If you want to add custom content after each post you have 2 options: You edit the template or you use the wordpress filter function. The second method has the advantage of not editing the template files. You just need to copy paste the code below.</p>
<p><code><br />
function custom_content($content) {<br />
	if(is_single()) {<br />
		$content .= 'add here the custom content';<br />
	}<br />
	return $content;<br />
}<br />
add_filter('the_content', 'custom_content');<br />
</code></p>
<p>Just edit the function above to add your information.</p>
<p>You can use the same function  if you want to display the content before the post. Just replace the line<br />
<em>$content .= &#8216;add here the custom content&#8217;;</em> with <em>$content =&#8217;add here the custom content&#8217;.$content  ;</em></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-attachments/" title="Display post images via attachments">Display post images via attachments</a></li><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/binar-zeo-theme/binar-zeo-add-new-page/" title="Binar Zeo &#8211; Add New Page">Binar Zeo &#8211; Add New Page</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/moving-kubrick-gradient-into-other-wordpress-themes-part2/" title="Moving Kubrick gradient into other wordpress themes &#8211; part2">Moving Kubrick gradient into other wordpress themes &#8211; part2</a></li></ul><img src="http://feeds.feedburner.com/~r/binar-space/~4/oc0xxuUAmbs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.binarspace.com/wordpress-tips-and-tricks/add-custom-content-afteror-before-each-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.binarspace.com/wordpress-tips-and-tricks/add-custom-content-afteror-before-each-post/</feedburner:origLink></item>
		<item>
		<title>How to test different Adsense units</title>
		<link>http://feedproxy.google.com/~r/binar-space/~3/Uym3V8u8-mY/</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/how-to-re-start-a-wordpress-blog/" title="How to re start a wordpress blog">How to re start a wordpress blog</a></li><li><a href="http://www.binarspace.com/wordpress-tips-and-tricks/moving-kubrick-gradient-into-other-wordpress-themes-part2/" title="Moving Kubrick gradient into other wordpress themes &#8211; part2">Moving Kubrick gradient into other wordpress themes &#8211; part2</a></li><li><a href="http://www.binarspace.com/wordpress-tips-and-tricks/update_optionget_option-and-php-serialize/" title="Update_option/get_option and PHP serialize">Update_option/get_option and PHP serialize</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><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><img src="http://feeds.feedburner.com/~r/binar-space/~4/Uym3V8u8-mY" height="1" width="1"/>]]></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>
		<feedburner:origLink>http://www.binarspace.com/wordpress-tips-and-tricks/how-to-test-different-adsense-units/</feedburner:origLink></item>
		<item>
		<title>How to change the admin logo</title>
		<link>http://feedproxy.google.com/~r/binar-space/~3/TJnA6fXrw-o/</link>
		<comments>http://www.binarspace.com/wordpress-tips-and-tricks/how-to-change-the-admin-logo/#comments</comments>
		<pubDate>Fri, 12 Nov 2010 11:03:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress Tips and Tricks]]></category>

		<guid isPermaLink="false">http://www.binarspace.com/?p=180</guid>
		<description><![CDATA[Here is a fun trick for today : is about changing the admin logo with a custom one .]]></description>
			<content:encoded><![CDATA[<p>Here is a fun trick for today : is about changing the admin logo with a custom one .</p>
<p>Just add in the functions.php</p>
<p><code></p>
<p>add_action('admin_head', 'my_custom_logo');</p>
<p>function my_custom_logo() {<br />
print' &lt;style type="text/css"&gt;<br />
         #header-logo {<br />
	   width:40px;<br />
           height:40px;<br />
	   background:url("'.get_bloginfo('template_directory').'/images/custom_logo.jpg") no-repeat scroll center center transparent;<br />
		 }<br />
      &lt;/style&gt;';<br />
}</p>
<p></code></p>
<p>Upload in image folder, (on current theme directory)the new logo (in this case the file is custom_logo.jpg). I use also the height and width declarations in order to control the image size.</p>
<p>If the image is too big for the gray band on admin top you can add the following code in the above function.</p>
<p><code></p>
<p>print ' &lt;style type="text/css"&gt;<br />
	#wphead {<br />
	height:100px;<br />
	background: #FFF;	}<br />
	 &lt;/style&gt;';</p>
<p></code></p>
<p>I also changed the band color from grey to white – it’s works better with my logo <img src='http://www.binarspace.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h2  class="related_post_title">Random Posts</h2><ul class="related_post"><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/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/share-on-facebook-code-for-wordpress/" title="Share on Facebook code for Wordpress">Share on Facebook code for Wordpress</a></li><li><a href="http://www.binarspace.com/wordpress-tips-and-tricks/update_optionget_option-and-php-serialize/" title="Update_option/get_option and PHP serialize">Update_option/get_option and PHP serialize</a></li></ul><img src="http://feeds.feedburner.com/~r/binar-space/~4/TJnA6fXrw-o" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.binarspace.com/wordpress-tips-and-tricks/how-to-change-the-admin-logo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.binarspace.com/wordpress-tips-and-tricks/how-to-change-the-admin-logo/</feedburner:origLink></item>
		<item>
		<title>Extending a  wordpress theme with a new php page.</title>
		<link>http://feedproxy.google.com/~r/binar-space/~3/mRyZ9KieYbA/</link>
		<comments>http://www.binarspace.com/wordpress-tips-and-tricks/extending-a-wordpress-theme-with-a-new-php-page/#comments</comments>
		<pubDate>Thu, 11 Nov 2010 11:55:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress Tips and Tricks]]></category>

		<guid isPermaLink="false">http://www.binarspace.com/?p=175</guid>
		<description><![CDATA[There are situations when you need to integrate a new php page (with some custom code) in a wordpress installation.To achieve this goal just follow these steps: ]]></description>
			<content:encoded><![CDATA[<p>There are situations when you need to integrate a new php page (with some custom code) in a wordpress installation. </p>
<p>To achieve this goal just follow these steps:</p>
<p>1. First you need to create the page in the theme folder. (say test.php)</p>
<p>2. Copy&#038;paste the code from single.php and remove the functions that display the content but kee the divs  structure.</p>
<p>3. Add as first line require_once(&#8216;../../../wp-load.php&#8217; ); This will initialize all the wordpress function and will make get_header &#038; co functional</p>
<p>4. Add the code in the place where the content was displayed in the original single page.</p>
<p>5. Optional: Rewrite the url (from httaces) to make a nice url</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-categories-in-multiple-columns/" title="Display categories in multiple columns">Display categories in multiple columns</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><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/how-to-change-the-admin-logo/" title="How to change the admin logo">How to change the admin logo</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></ul><img src="http://feeds.feedburner.com/~r/binar-space/~4/mRyZ9KieYbA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.binarspace.com/wordpress-tips-and-tricks/extending-a-wordpress-theme-with-a-new-php-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.binarspace.com/wordpress-tips-and-tricks/extending-a-wordpress-theme-with-a-new-php-page/</feedburner:origLink></item>
	</channel>
</rss>

