<?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/" version="2.0">

<channel>
	<title>Web Design / Development | FLDtrace » Blog</title>
	
	<link>http://www.fldtrace.com</link>
	<description />
	<lastBuildDate>Fri, 03 Feb 2012 18:42:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/FldtraceBlog" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="fldtraceblog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>How WordPress Can Help Your Business</title>
		<link>http://www.fldtrace.com/wordpress/how-wordpress-can-help-your-business</link>
		<comments>http://www.fldtrace.com/wordpress/how-wordpress-can-help-your-business#comments</comments>
		<pubDate>Thu, 12 Jan 2012 19:40:13 +0000</pubDate>
		<dc:creator>Lucian Florian</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.fldtrace.com/?p=1404</guid>
		<description><![CDATA[WordPress started as a blogging platform and now evolved to a capable website content management system. Read on to find out how it can help your business.<h3>Related Posts</h3>
<ol>
		<li><a href="http://www.fldtrace.com/seo/grow-your-business-using-seo" rel="bookmark">Grow your business using SEO</a><!-- (5.3)--></li>
		<li><a href="http://www.fldtrace.com/wordpress/8-recommended-useful-plugins-for-wordpress" rel="bookmark">8 Recommended Useful Plugins for WordPress</a><!-- (3.5)--></li>
		<li><a href="http://www.fldtrace.com/wordpress/10-awesome-wordpress-plugins-roundup-with-useful-tips" rel="bookmark">10 Awesome WordPress plugins roundup with useful tips</a><!-- (2.8)--></li>
	</ol>
]]></description>
			<content:encoded><![CDATA[<h2>Managing Content On Your Own</h2>
<p>If in the past you had to pay your web designer each time you needed to add new content on the website, I assume that waiting time until the site was updated and the involved costs were frustrating. Thanks to WordPress, you don&#8217;t need any coding knowledge, so you can manage the content yourself. Adding new pages, text, navigation links, images, galleries, even videos is super easy now from a control panel back-end.</p>

<p>I always tell my clients that if they can work with Microsoft Word, they can manage their site. It takes only 1-2 hours to get used with everything.</p>

<p><img src="http://www.fldtrace.com/wp-content/uploads/2012/01/wordpress-back-end.jpg" alt="" title="wordpress-back-end" width="598" height="398" class="alignnone img_border size-full wp-image-1405" /><p>

<h2>Search Engine Optimized</h2>
<p>WordPress not only allows non-technical users easily manage their content easily but also has great SEO advantages, which means potential customers can find you easier in Google.</p>

<p>Installing few SEO plugins will enhance your visibility in Search Engines and that way you don&#8217;t need to pay a SEO company hundreds or thousands of dollars for a &#8220;Basic Setup Fee&#8221;. You&#8217;ll still need professional help for more advanced work but this will definitively get you started.</p>

<h3>SEO Plugins</h3>
<p>Here are few SEO plugins I recommend:</p>
<ul>
<li><a href="http://wordpress.org/extend/plugins/wordpress-seo/">Yoast WordPress SEO</a>. Custom titles and descriptions.</li>
<li><a href="http://wordpress.org/extend/plugins/all-in-one-seo-pack/">All in One SEO Pack</a>. Similar and can be used instead of the above.</li>
<li><a href="http://wordpress.org/extend/plugins/google-sitemap-generator/">Google XML Sitemaps</a>. Will help Search Engines index your blog better and faster.</li>
<li><a href="http://wordpress.org/extend/plugins/scribe/">Scribe SEO</a>. Analyzes your content and suggest what you can improve.</li>
</ul>

<p>&nbsp;</p>
<h2>Free Open Source platform</h2>

<p>WordPress is a tool that you don&#8217;t have to pay for. Virtually you can get a WordPress site for free. That&#8217;s if you don&#8217;t need a custom design and / or functionality, where you&#8217;ll need the help of a web designer.</p>

<p>Open source means that general public has access and rights to modify it. WordPress is being constantly improved and developed by volunteering developers and is not likely to go anywhere for a long time.</p>

<p>It also has thousands of free plugins that can let you build almost anything with it.</p>

<h3>Other Content management systems (CMS)</h3>
<ul>
<li><a href="http://expressionengine.com/">Expression Engine</a> is a $300 Premium CMS ideal for large sites. Content is harder and takes longer to manage, but is super flexible and powerfull.</li>
<li><a href="http://www.concrete5.org/">Concrete5</a> is a nice robust content management system. Free in the beginning you get to pay along the way for its add-ons. Can get quite costly.</li>
<li><a href="http://www.silverstripe.com/">Silverstripe</a> is dedicated CMS. It probably manages content better than WordPress but back-end interface is not as user friendly so clients still love WordPress more.</a></li>
</ul>

<p>&nbsp;</p>

<h2>Conclusion</h2>

<p>While WordPress is not perfect and not suited for every site, the ease of content management, large variety of plugins, simplicity of upgrading and the fact that is free, makes it the most popular choice nowadays for both clients and developers. Really, if there are millions using it, there is a good reason why they do: everyone loves it!</p>  <img src="http://www.fldtrace.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1404" width="1" height="1" style="display: none;" /><h3>Related Posts</h3>
<ol>
		<li><a href="http://www.fldtrace.com/seo/grow-your-business-using-seo" rel="bookmark">Grow your business using SEO</a><!-- (5.3)--></li>
		<li><a href="http://www.fldtrace.com/wordpress/8-recommended-useful-plugins-for-wordpress" rel="bookmark">8 Recommended Useful Plugins for WordPress</a><!-- (3.5)--></li>
		<li><a href="http://www.fldtrace.com/wordpress/10-awesome-wordpress-plugins-roundup-with-useful-tips" rel="bookmark">10 Awesome WordPress plugins roundup with useful tips</a><!-- (2.8)--></li>
	</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.fldtrace.com/wordpress/how-wordpress-can-help-your-business/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Grow your business using SEO</title>
		<link>http://www.fldtrace.com/seo/grow-your-business-using-seo</link>
		<comments>http://www.fldtrace.com/seo/grow-your-business-using-seo#comments</comments>
		<pubDate>Mon, 12 Dec 2011 22:25:02 +0000</pubDate>
		<dc:creator>Lucian Florian</dc:creator>
				<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://www.fldtrace.com/?p=1374</guid>
		<description><![CDATA[Search Engine Optimization (SEO) could make a real difference between your business success or complete failure. Here are some points you might need to consider if you wish to take advantage of SEO benefits for your website.<h3>Related Posts</h3>
<ol>
		<li><a href="http://www.fldtrace.com/wordpress/how-wordpress-can-help-your-business" rel="bookmark">How WordPress Can Help Your Business</a><!-- (6.2)--></li>
	</ol>
]]></description>
			<content:encoded><![CDATA[<h2>Keyword research</h2>
<p>For researching keywords we can brainstorm then refine the keywords using tools such: <a href="http://www.wordtracker.com/">WordTracker</a> or <a href="https://adwords.google.com/select/KeywordToolExternal">Google Keyword Tool</a></p>

<p>For a real chance showing up on the first page in Google search results, we should use specific instead of general keywords e.g: &#8220;Buy Modern White Long Dress&#8221; than &#8220;Nice Dress&#8221;</p>

<p>You may also want to maintain a WordPress blog and implement the write blog posts with certain keywords. That way you can use an indirect approach for bringing more traffic to your site. Many companies have great success using this strategy.</p>

<h2>Link Building</h2>
<p>This process can be the most time consuming but it&#8217;s considered the most important SEO factor after the content itself.</p>

<p>If you have great content or if you offer great products sometimes other websites link to you without asking it.</p>

<p>However, It doesn&#8217;t always work that way. As an alternative, guest blog post writing could work well. Paying for the links to premium related websites can be costly but gets the job done; although Google doesn&#8217;t encourage this practice it&#8217;s safe to use if the other site is legitimate.</p>
<p>If you&#8217;re active on forums or you often comment on other websites blog posts, always make sure you have a link back to your website in the signature or the link field. </p>

<h2>Build your website using SEO techniques </h2>
<p>Often neglected, if not done properly, how your site is built could affect negatively the overall SEO.</p>
<p>Here are few points to consider:</p>

<ul>
<li>Google takes in consideration the loading speed factor so make sure your site has optimized images for web, is built using optimized code and is not done entirely in flash.</li>
<li>There should be only a <strong>heading1</strong> headline on the page then using them decremental as needed, with few exceptions.</li>
<li>Each page should have <strong>title</strong> and <strong>description</strong> tags with the researched keywords we talked above.</li>
<li>The images should have <strong>ALT</strong> tag filled in with the keywords, where appropriate.</li>
<li>When HTML5 has better browser support, you can take advantage of the <strong>hgroup</strong> and <strong>microdata</strong> SEO additions, for improved results. If older versions of Internet Explorer are not relevant, you can start using those HTML5 elements now!</li>
</ul>

<h4>Thank you for reading. Please leave your thoughts below.</h4> <img src="http://www.fldtrace.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1374" width="1" height="1" style="display: none;" /><h3>Related Posts</h3>
<ol>
		<li><a href="http://www.fldtrace.com/wordpress/how-wordpress-can-help-your-business" rel="bookmark">How WordPress Can Help Your Business</a><!-- (6.2)--></li>
	</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.fldtrace.com/seo/grow-your-business-using-seo/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Working with Lemonstand shopping cart</title>
		<link>http://www.fldtrace.com/ecommerce/working-with-lemonstand-shopping-cart</link>
		<comments>http://www.fldtrace.com/ecommerce/working-with-lemonstand-shopping-cart#comments</comments>
		<pubDate>Thu, 06 Oct 2011 14:14:26 +0000</pubDate>
		<dc:creator>Lucian Florian</dc:creator>
				<category><![CDATA[Ecommerce]]></category>

		<guid isPermaLink="false">http://www.fldtrace.com/?p=1309</guid>
		<description><![CDATA[<a href="http://lemonstandapp.com">Lemonstand</a> is a self hosted shopping cart, 100% customizable, developer friendly and clients love it! <br />
So far I developed two websites using Lemonstand and have learned a lot in the process. Read on for more details.<h3>Related Posts</h3>

No related posts.
]]></description>
			<content:encoded><![CDATA[<h2>Why Lemonstand and not other shopping carts</h2>
<p>I specialize in building custom WordPress sites and I was always looking for a good Ecommerce alternative for my clients. It is known that Ecommerce plugins for WordPress are buggy and the few premium versions available are limited in terms of functionality and flexibility. </p>

<p>I wanted a self-hosted solution because it&#8217;s not always profitable for clients to pay commissions to the cloud hosted solutions such as Shopify, Volusion, and BigCommerce. Moreover, you have access to the database, which is important if you need full access and rights to your store. I researched a few options for self-hosted shopping carts. </p>
 
<p><strong>Here is the list I considered:</strong></p>

<h3><a href="http://www.magentocommerce.com/">Magento</a></h3> 
<p>Magento is a free Ecommerce solution, probably the most popular for complex sites but it&#8217;s also renowned for the steep learning curve, hard to maintain, and overkill for most clients.</p>

<h3><a href="http://digishop.sumeffect.com/">DigiShop</a></h3>
<p>Digishop is the self hosted version of CoreCommerce. It&#8217;s robust, but the price ($800-$1000) is too high compared to other alternatives. Also, I don&#8217;t think it&#8217;s straight forward to update.</p>

<h3><a href="http://www.cs-cart.com/">CS-Cart</a></h3>
<p>This cart was actually my first option and I would have considered it over Lemonstand since it has many functions. However, upgrading the cart overrides your custom theme (there is a method to build the theme so you can avoid that but it&#8217;s not straight forward). The support is located in Russia so you usually have to wait 12 to 24 hours for support, which is inconvenient. <br/>
The price is an affordable $300.
</p>

<h3><a href="http://lemonstandapp.com">Lemonstand</a></h3>
<p>I wanted something new, affordable, easy to maintain, upgrade, and develop, and easy for clients to manage the content. Lemonstand is a modern solution, started in 2010. It is complex but flexible and easy to develop with. Here is a link to their <a href="http://lemonstandapp.com/demo/">demo site</a>.</p>

<h2>Cool Lemonstand features</h2>
<p>I won&#8217;t go over all their features (you can see those on their site), so here are a few things that made me choose Lemonstand:</p>

<h3>One Click Upgrades</h3>

<p>Someone finally made a self hosted solution super easy to update without any work on the developer&#8217;s part. Click upgrade and you&#8217;re done! Your website files are untouched and your cart is up to date with the latest features and fixes. Easy and cheap to maintain.</p>

<h3>100% HTML / CSS Customizable</h3>

<p>I&#8217;ve never been a fan of taking an existing theme and customizing it to make it look like the original design. The site gets too cluttered with a lot of unnecessary code and it&#8217;s DIFFICULT to make it pixel perfect. That&#8217;s why I believe that creating everything from scratch is the way to go.</p>

<p>I can now start by coding the static site like I always do, then just copy and paste the HTML/CSS/jQuery in the Lemonstand back-end. If you can build WordPress sites, you definitely can built Ecommerce sites using Lemonstand.</p>

<h3>Flexibility</h3>

<p>You not only have 100% full access to the HTML / CSS but you can also alter the way the site works. You can build a custom check-out process, change how the pages interact with one another, and you&#8217;re not locked in a certain way to make things work.</p>

<p>Everything is straight forward to understand: the implementation consists of Pages, Templates, and Partials. Pages represent the content base. You can use Templates when you want different layouts for some Pages. Partials are code blocks that you can pull into your Pages or Templates (e.g. when you create a partial named Header with your header info).</p>

<p>If it doesn&#8217;t support certain functionality, then you can go ahead and develop a custom module for it or you can easily find other developers to do so.</p>

<h3>Back-end</h3>
<p>The back-end was another reason why I love the system. All main functions are organized in a drop-down and as you select each one, the secondary options load in a top menu. It&#8217;s easy to find your way around and this is one of the main reasons why clients have no trouble managing the content.</p>

<p>You can also edit the CSS and the PHP code in the back-end by default, so you don&#8217;t have to work locally then upload the files, but there is an option to do so if you want to. I figured out it&#8217;s easier to use the provided page editor, which includes syntax highlighting. You can even save a page from keyboard (CTRL+S / CMD+S).</p>

<h3>Great Customer Service</h3>
<p>The staff is very helpful and responsive and that is super important for somebody new to the system. Their documentation is helpful, but it&#8217;s still nice to see somebody covers your back.</p>

<p>The forums are good for starting out, but for existing clients they have a ticketing system in place where you get faster responses and help with more advanced questions.</p>


<h2>Would be nice to have</h2>
<p>Lemonstand is still in its early stages and may lack certain features, but it&#8217;s being improved continuously and it&#8217;s evolving fast.</p>
<p>Here are few areas where I think it could use improvements:</p>

<h3>It needs more modules</h3>
<p>Lemonstand has almost all the bells and whistles, but not quite all of them. The modules are being developed and more functionality is added to the core regularly.</p>

<h3>Small glitch in placing orders logic </h3>
<p>The only drawback I found in the checkout functionality is that Lemonstand requires an order to be placed before somebody can pay for it. If customers get to the Payment page and they change their mind without completing the payment, the order is placed in the back-end. Luckily, the orders are being marked in back-end as paid/unpaid so you won&#8217;t ship unpaid orders.</p>

<p>By default, when you get to the Payment page the cart empties, so if the customers wants to go and add another product they will lose all cart contents. Thankfully, there is a workaround for keeping the cart contents, but using that, it will show up in the back-end as multiple unpaid orders for each time this happens. This is not a deal breaker but it could lead to inaccurate reporting.</p>

<h3>Navigation</h3>
<p>Currently, Lemonstand does not allow clients to easily customize their site navigation links. WordPress custom menus would be awesome here. </p>

<h2>Conclusion</h2>
<p>Despite the few drawbacks Lemonstand has, its strengths outweigh the weaknesses. It&#8217;s an affordable solution that also saves me development time when building Ecommerce sites for my clients.</p>

<h3>Please share your thoughts below</h3> <img src="http://www.fldtrace.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1309" width="1" height="1" style="display: none;" /><h3>Related Posts</h3>
<p>No related posts.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fldtrace.com/ecommerce/working-with-lemonstand-shopping-cart/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Referral Conversion Tracking with WordPress Contact Form 7</title>
		<link>http://www.fldtrace.com/wordpress/referral-conversion-tracking-with-wordpress-contact-form-7</link>
		<comments>http://www.fldtrace.com/wordpress/referral-conversion-tracking-with-wordpress-contact-form-7#comments</comments>
		<pubDate>Wed, 27 Jul 2011 20:34:33 +0000</pubDate>
		<dc:creator>Lucian Florian</dc:creator>
				<category><![CDATA[Marketing]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.fldtrace.com/?p=1248</guid>
		<description><![CDATA[If you have received a message through your contact form, and always wanted to see the referral page the prospects came from,  read following instructions. <h3>Related Posts</h3>
<ol>
		<li><a href="http://www.fldtrace.com/wordpress/load-javascript-on-specific-pages-in-wordpress" rel="bookmark">How to load Javascript on specific pages in WordPress</a><!-- (3.5)--></li>
		<li><a href="http://www.fldtrace.com/wordpress/8-recommended-useful-plugins-for-wordpress" rel="bookmark">8 Recommended Useful Plugins for WordPress</a><!-- (3.4)--></li>
		<li><a href="http://www.fldtrace.com/wordpress/10-awesome-wordpress-plugins-roundup-with-useful-tips" rel="bookmark">10 Awesome WordPress plugins roundup with useful tips</a><!-- (3.1)--></li>
	</ol>
]]></description>
			<content:encoded><![CDATA[<h2>Steps for showing the referral URL in your email</h2>

<p>The initial settings are based on the following blog post: <a href="http://tonykwon.com/2010/09/can-we-capture-http-referer-information-upon-form-submission-using-contact-form-7/">Can we capture HTTP REFERER information upon form submission using Contact Form 7?</a>, however that method will allow you track only visitors who go directly to the contact page, where the form is. If the visitor comes from Google, browses the site, the referral will show the last page within your site, not initial Google link.</p>

<h3>Contact Form 7 initial settings</h3>
<p>We will follow the same initial steps like Tony mentioned in his <a href="http://tonykwon.com/2010/09/can-we-capture-http-referer-information-upon-form-submission-using-contact-form-7/">blog post</a>:</p>
<ul>
<li>You must have WordPress installed and <a href="http://wordpress.org/extend/plugins/contact-form-7/">Contact Form 7</a> configured to receive emails.</li>
<li>Add a Text Field element with a css class referer-page: <code>[text referer-page class:referer-page]</code></li>
<li>Add the following css to your styles.css: <code>input.referer-page { display:none; }</code></li>
<li>Add the following to the Contact Form 7 Message body (under Mail): <code>Referer Page: [referer-page]</code></li>
</ul>

<p>Here is a screenshot that explains better what happens in Contact form 7 settings:</p>
<p><a href="http://www.fldtrace.com/wp-content/uploads/2011/07/the-referral-code.png"><img src="http://www.fldtrace.com/wp-content/uploads/2011/07/the-referral-code-720x405.png" alt="" title="the-referral-code" width="720" height="405" class="img_border alignnone size-large wp-image-1251 fancybox" /></a></p>

<h3>Improved tracking based on visitor IP</h3>
<p>In order to make it all work we need to add the following code in the function.php within your theme folder.</p>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">	<span style="color: #666666; font-style: italic;">//--------------- Referer code for contact form 7</span>
<span style="color: #000000; font-weight: bold;">function</span> getIP<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #000088;">$sProxy</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">getenv</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'HTTP_CLIENT_IP'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> 
		<span style="color: #000088;">$sProxy</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REMOTE_ADDR'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$sIP</span>    <span style="color: #339933;">=</span> <span style="color: #990000;">getenv</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'HTTP_CLIENT_IP'</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span> 
	<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'HTTP_X_FORWARDED_FOR'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> 
		<span style="color: #000088;">$sProxy</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REMOTE_ADDR'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$sIP</span>    <span style="color: #339933;">=</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'HTTP_X_FORWARDED_FOR'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> 
	<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> 
		<span style="color: #000088;">$sIP</span>    <span style="color: #339933;">=</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'REMOTE_ADDR'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span> <span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$sProxy</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$sIP</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$sIP</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'via-proxy:'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$sProxy</span><span style="color: #339933;">;</span> 
	<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$sIP</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> setRefererTransient<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$uniqueID</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #009900; font-weight: bold;">false</span> <span style="color: #339933;">===</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$void</span> <span style="color: #339933;">=</span> get_transient<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$uniqueID</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #666666; font-style: italic;">// set a transient for 2 hours</span>
		set_transient<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$uniqueID</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'HTTP_REFERER'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">60</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">60</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">2</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> getRefererPage<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$form_tag</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>	
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$form_tag</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'referer-page'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$uniqueID</span> <span style="color: #339933;">=</span> getIP<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		setRefererTransient<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$uniqueID</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$form_tag</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'values'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span>  get_transient<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$uniqueID</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$form_tag</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span>is_admin<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	add_filter<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'wpcf7_form_tag'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'getRefererPage'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>




<p>The code will store the referral page at the moment the customer comes on the site for 2 hours. If they submit the form within this time, no matter how many pages the visited on the site, it will still show the initial referral.</p>

<h3>The final result</h3>

<p>After somebody submits the message through contact form, this is how it should look like in your email client:</p>
<p><a href="http://www.fldtrace.com/wp-content/uploads/2011/07/the-referral-result1.png" class="fancybox"><img src="http://www.fldtrace.com/wp-content/uploads/2011/07/the-referral-result1-720x308.png" alt="" title="the-referral-result" width="720" height="308" class="img_border alignnone size-large wp-image-1258" /></a></p>

<h2>Other notes:</h2>
<p>No tracking method, including Google Analytics is not 100% precise, as there are people with JS disabled, with cookies turned off, people who actually cannot be tracked using standard methods.</p>
<p>Same with this method, at times you might receive emails with a blank value for referral part. However the method works well for most time, enough to get real time feedback for your marketing efforts.</p> <img src="http://www.fldtrace.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1248" width="1" height="1" style="display: none;" /><h3>Related Posts</h3>
<ol>
		<li><a href="http://www.fldtrace.com/wordpress/load-javascript-on-specific-pages-in-wordpress" rel="bookmark">How to load Javascript on specific pages in WordPress</a><!-- (3.5)--></li>
		<li><a href="http://www.fldtrace.com/wordpress/8-recommended-useful-plugins-for-wordpress" rel="bookmark">8 Recommended Useful Plugins for WordPress</a><!-- (3.4)--></li>
		<li><a href="http://www.fldtrace.com/wordpress/10-awesome-wordpress-plugins-roundup-with-useful-tips" rel="bookmark">10 Awesome WordPress plugins roundup with useful tips</a><!-- (3.1)--></li>
	</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.fldtrace.com/wordpress/referral-conversion-tracking-with-wordpress-contact-form-7/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Display Latest Post Outside of WordPress with JSON and jQuery</title>
		<link>http://www.fldtrace.com/wordpress/display-latest-post-outside-of-wordpress-with-json-and-jquery</link>
		<comments>http://www.fldtrace.com/wordpress/display-latest-post-outside-of-wordpress-with-json-and-jquery#comments</comments>
		<pubDate>Tue, 24 May 2011 15:41:53 +0000</pubDate>
		<dc:creator>Lucian Florian</dc:creator>
				<category><![CDATA[Jquery]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.fldtrace.com/?p=1213</guid>
		<description><![CDATA[Pull the latest blog post from WordPress with JSON and jQuery, which works great on any static HTML page, PHP page or any CMS / Ecommerce platform you can imagine.

<p><a href="http://www.fldtrace.com/lab/jsonAPI.html" class="feather_link" target="_blank">View Demo</a></p><h3>Related Posts</h3>
<ol>
		<li><a href="http://www.fldtrace.com/css/center-a-dropdown-menu-using-css-and-jquery" rel="bookmark">Center a DropDown Menu Using CSS and jQuery</a><!-- (7.1)--></li>
		<li><a href="http://www.fldtrace.com/wordpress/wordpress-custom-post-types-custom-back-end-columns-and-post-thumbnails" rel="bookmark">WordPress custom post types, custom back-end columns and post thumbnails</a><!-- (6.9)--></li>
		<li><a href="http://www.fldtrace.com/wordpress/custom-post-types-numeric-title-order" rel="bookmark">WordPress Custom Post Types Numeric Title Order</a><!-- (6.5)--></li>
	</ol>
]]></description>
			<content:encoded><![CDATA[<h2>The PHP and MagicPie RSS methods</h2>
<p>There are two other methods you might want to try out, which are explained <a href="http://www.corvidworks.com/articles/wordpress-content-on-other-pages">in this article</a>, so I won&#8217;t go over them. The methods will throw a deprecated error if your hosting provider is using PHP5.</p>

<p>The shopping cart I used (<a href="lemonstandapp.com">Lemonstand</a>) had the error reporting turned on, with no (easy) way to turn it of and so, the solutions didn&#8217;t worked with this platform, although they worked with a basic .php file.</p>

<p><strong>Please follow the instructions closely, otherwise it will fail to work.</strong></p>

<h2>The JSON / jQuery method</h2>

<h3>1. Enable JSON API in the WordPress blog</h3>
<p>First thing you need to install the following plugin in WordPress: <a href="http://wordpress.org/extend/plugins/json-api/">http://wordpress.org/extend/plugins/json-api/</a>. <br />
Without it, we cannot pull the post information we need so make sure you also run a test to see if it works. The plugin is well documented so that should be straight forward.
</p>
<p>Make sure the <strong>core option is activated</strong> and the <strong>API base has <code>api</code></strong> as extension.</p>

<h3>2. Include jQuery in the outside WordPress file</h3>
<p>From this point on, we will work outside of WordPress where you want to show the latest post(s). For testing purposes you can even create a index.html file on your computer.</p>
<p>Next, we need to make sure we have the jQuery library included. You can link from the Google CDN for better performance: <br />


<div class="wp_syntax"><div class="code"><pre class="html4" style="font-family:monospace;">&lt;script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js'&gt;&lt;/script&gt;</pre></div></div>



</p>
<p>Or, you can also leave it included from WordPress so it will upgrade automatically along with WordPress (recommended)</p>

<h3>3. Include the JSON / jQuery code within head tags</h3>

<p>


<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #003366; font-weight: bold;">var</span> MYBLOG_LIMIT <span style="color: #339933;">=</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">var</span> MYWRAPPER_CLASS <span style="color: #339933;">=</span> <span style="color: #3366CC;">'homeblog'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> WP<span style="color: #339933;">=</span><span style="color: #009900;">&#123;</span><span style="color: #000066;">open</span><span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>b<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #003366; font-weight: bold;">var</span> a<span style="color: #339933;">=</span><span style="color: #009900;">&#123;</span>posts<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #003366; font-weight: bold;">var</span> d<span style="color: #339933;">=</span>MYBLOG_LIMIT<span style="color: #339933;">;</span>var e<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>var c<span style="color: #339933;">=</span><span style="color: #009900;">&#123;</span>all<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>g<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #003366; font-weight: bold;">var</span> f<span style="color: #339933;">=</span>b<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;/api/get_recent_posts/&quot;</span><span style="color: #339933;">;</span>f<span style="color: #339933;">+=</span><span style="color: #3366CC;">&quot;?count=&quot;</span><span style="color: #339933;">+</span>d<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&amp;page=&quot;</span><span style="color: #339933;">+</span>e<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&amp;callback=?&quot;</span><span style="color: #339933;">;</span>jQuery.<span style="color: #660066;">getJSON</span><span style="color: #009900;">&#40;</span>f<span style="color: #339933;">,</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>l<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #003366; font-weight: bold;">var</span> k<span style="color: #339933;">=</span>l.<span style="color: #660066;">posts</span><span style="color: #339933;">;</span>for<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> j<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>j<span style="color: #339933;">&lt;</span>k.<span style="color: #660066;">length</span><span style="color: #339933;">;</span>j<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #003366; font-weight: bold;">var</span> h<span style="color: #339933;">=</span>k<span style="color: #009900;">&#91;</span>j<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>h.<span style="color: #660066;">createComment</span><span style="color: #339933;">=</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>i<span style="color: #339933;">,</span>m<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>i.<span style="color: #660066;">postId</span><span style="color: #339933;">=</span>h.<span style="color: #660066;">id</span><span style="color: #339933;">;</span>a.<span style="color: #660066;">comments</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">create</span><span style="color: #009900;">&#40;</span>i<span style="color: #339933;">,</span>m<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#125;</span>g<span style="color: #009900;">&#40;</span>k<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>findBySlug<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>f<span style="color: #339933;">,</span>h<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #003366; font-weight: bold;">var</span> g<span style="color: #339933;">=</span>b<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;/api/get_post/&quot;</span><span style="color: #339933;">;</span>g<span style="color: #339933;">+=</span><span style="color: #3366CC;">&quot;?slug=&quot;</span><span style="color: #339933;">+</span>f<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&amp;callback=?&quot;</span><span style="color: #339933;">;</span>jQuery.<span style="color: #660066;">getJSON</span><span style="color: #009900;">&#40;</span>g<span style="color: #339933;">,</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>h<span style="color: #009900;">&#40;</span>i.<span style="color: #660066;">post</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>limit<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>f<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>d<span style="color: #339933;">=</span>f<span style="color: #339933;">;</span>return c<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>page<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>f<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>e<span style="color: #339933;">=</span>f<span style="color: #339933;">;</span>return c<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>return c<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>pages<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #003366; font-weight: bold;">var</span> c<span style="color: #339933;">=</span><span style="color: #009900;">&#123;</span>findBySlug<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>d<span style="color: #339933;">,</span>f<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #003366; font-weight: bold;">var</span> e<span style="color: #339933;">=</span>b<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;/api/get_page/&quot;</span><span style="color: #339933;">;</span>e<span style="color: #339933;">+=</span><span style="color: #3366CC;">&quot;?slug=&quot;</span><span style="color: #339933;">+</span>d<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&amp;callback=?&quot;</span><span style="color: #339933;">;</span>jQuery.<span style="color: #660066;">getJSON</span><span style="color: #009900;">&#40;</span>e<span style="color: #339933;">,</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>g<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>f<span style="color: #009900;">&#40;</span>g.<span style="color: #660066;">page</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>return c<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>categories<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #003366; font-weight: bold;">var</span> c<span style="color: #339933;">=</span><span style="color: #009900;">&#123;</span>all<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #003366; font-weight: bold;">var</span> d<span style="color: #339933;">=</span>b<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;/api/get_category_index/&quot;</span><span style="color: #339933;">;</span>d<span style="color: #339933;">+=</span><span style="color: #3366CC;">&quot;?callback=?&quot;</span><span style="color: #339933;">;</span>jQuery.<span style="color: #660066;">getJSON</span><span style="color: #009900;">&#40;</span>d<span style="color: #339933;">,</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>f<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>e<span style="color: #009900;">&#40;</span>f.<span style="color: #660066;">categories</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>return c<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>tags<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #003366; font-weight: bold;">var</span> c<span style="color: #339933;">=</span><span style="color: #009900;">&#123;</span>all<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #003366; font-weight: bold;">var</span> d<span style="color: #339933;">=</span>b<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;/api/get_tag_index/&quot;</span><span style="color: #339933;">;</span>d<span style="color: #339933;">+=</span><span style="color: #3366CC;">&quot;?callback=?&quot;</span><span style="color: #339933;">;</span>jQuery.<span style="color: #660066;">getJSON</span><span style="color: #009900;">&#40;</span>d<span style="color: #339933;">,</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>f<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>e<span style="color: #009900;">&#40;</span>f.<span style="color: #660066;">tags</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>return c<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>comments<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #003366; font-weight: bold;">var</span> c<span style="color: #339933;">=</span><span style="color: #009900;">&#123;</span>create<span style="color: #339933;">:</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>f<span style="color: #339933;">,</span>e<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #003366; font-weight: bold;">var</span> d<span style="color: #339933;">=</span>b<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;/api/submit_comment/&quot;</span><span style="color: #339933;">;</span>d<span style="color: #339933;">+=</span><span style="color: #3366CC;">&quot;?post_id=&quot;</span><span style="color: #339933;">+</span>f.<span style="color: #660066;">postId</span><span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&amp;name=&quot;</span><span style="color: #339933;">+</span>f.<span style="color: #000066;">name</span><span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&amp;email=&quot;</span><span style="color: #339933;">+</span>f.<span style="color: #660066;">email</span><span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&amp;content=&quot;</span><span style="color: #339933;">+</span>f.<span style="color: #660066;">content</span><span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&amp;callback=?&quot;</span><span style="color: #339933;">;</span>jQuery.<span style="color: #660066;">getJSON</span><span style="color: #009900;">&#40;</span>d<span style="color: #339933;">,</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>g<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>e<span style="color: #009900;">&#40;</span>g<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>return c<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>return a<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">var</span> blog <span style="color: #339933;">=</span> WP.<span style="color: #000066;">open</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'http://www.fldtrace.com/'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
blog.<span style="color: #660066;">posts</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">all</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>posts<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
  <span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> i <span style="color: #339933;">&lt;</span> posts.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    jQuery<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.'</span><span style="color: #339933;">+</span>MYWRAPPER_CLASS<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">append</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
      <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #009900;">&#40;</span>posts<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">thumbnail</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">?</span> <span style="color: #3366CC;">'&lt;a class=&quot;lastpost_title&quot; href=&quot;'</span><span style="color: #339933;">+</span>posts<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">url</span><span style="color: #339933;">+</span><span style="color: #3366CC;">'&quot;&gt;&lt;h4&gt;'</span><span style="color: #339933;">+</span>posts<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">title</span><span style="color: #339933;">+</span><span style="color: #3366CC;">'&lt;/h4&gt;&lt;/a&gt;&lt;a href=&quot;'</span><span style="color: #339933;">+</span>posts<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">url</span><span style="color: #339933;">+</span><span style="color: #3366CC;">'&quot;&gt;&lt;img src=&quot;'</span><span style="color: #339933;">+</span>posts<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">thumbnail</span><span style="color: #339933;">+</span><span style="color: #3366CC;">'&quot;/&gt;&lt;/a&gt;'</span> <span style="color: #339933;">:</span> <span style="color: #3366CC;">'&lt;a href=&quot;'</span><span style="color: #339933;">+</span>posts<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">url</span><span style="color: #339933;">+</span><span style="color: #3366CC;">'&quot;&gt;&lt;h4&gt;'</span><span style="color: #339933;">+</span>posts<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">title</span><span style="color: #339933;">+</span><span style="color: #3366CC;">'&lt;/h4&gt;&lt;/a&gt;'</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>



</p>

<h4>You need to configure the next options</h4>
<ul>
<li><strong>var MYBLOG_LIMIT = 1; </strong>will define how many posts will show. By default is 1. </li>
<li><strong>var MYWRAPPER_CLASS = &#8216;homeblog&#8217;;</strong> &#8211; the class name of HTML element where the post(s) will be shown.</li>
<li><strong>var blog = WP.open(&#8216;http://www.fldtrace.com/&#8217;);</strong> &#8211; this should link to your blog main domain (mandatory) </li>
<li>by default, will be shown the post thumbnail and title both linked. The rest is CSS customization, including adjusting the thumbnail size.</li>
</ul>

<h3>4. Define the place where the post should show up</h3>
<p>Apply the following class to an element somewhere within body tags: <br />


<div class="wp_syntax"><div class="code"><pre class="html4" style="font-family:monospace;">&lt;div class=&quot;homeblog&quot;&gt;
&lt;/div&gt;​</pre></div></div>



</p>

<h2>Notes</h2>
<p> Additionally you can pull more post information using the plugin&#8217;s JSON API documentation.</p>
<p>I&#8217;d say this method gives us a lot of freedom of showing posts from WordPress anywhere you need, compared to the PHP method where we have limitations.</p>
 <img src="http://www.fldtrace.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1213" width="1" height="1" style="display: none;" /><h3>Related Posts</h3>
<ol>
		<li><a href="http://www.fldtrace.com/css/center-a-dropdown-menu-using-css-and-jquery" rel="bookmark">Center a DropDown Menu Using CSS and jQuery</a><!-- (7.1)--></li>
		<li><a href="http://www.fldtrace.com/wordpress/wordpress-custom-post-types-custom-back-end-columns-and-post-thumbnails" rel="bookmark">WordPress custom post types, custom back-end columns and post thumbnails</a><!-- (6.9)--></li>
		<li><a href="http://www.fldtrace.com/wordpress/custom-post-types-numeric-title-order" rel="bookmark">WordPress Custom Post Types Numeric Title Order</a><!-- (6.5)--></li>
	</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.fldtrace.com/wordpress/display-latest-post-outside-of-wordpress-with-json-and-jquery/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Great blog resources for staying updated with Web Design trends</title>
		<link>http://www.fldtrace.com/others/great-blog-resources-for-staying-updated-with-web-design-trends</link>
		<comments>http://www.fldtrace.com/others/great-blog-resources-for-staying-updated-with-web-design-trends#comments</comments>
		<pubDate>Fri, 18 Mar 2011 21:14:01 +0000</pubDate>
		<dc:creator>Lucian Florian</dc:creator>
				<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://www.fldtrace.com/?p=1170</guid>
		<description><![CDATA[In a fast paced industry such as web design / development, it is really important keeping yourself updated with best practices and techniques.
Here is a list of resources I read daily and I recommend:<h3>Related Posts</h3>
<ol>
		<li><a href="http://www.fldtrace.com/news/fldtrace-2_0" rel="bookmark">FLDtrace 2.0 &#8211; New Design</a><!-- (2)--></li>
	</ol>
]]></description>
			<content:encoded><![CDATA[<h2>General Web Design Blogs</h2>

<ul>
<li><strong><a href="http://www.webdesignerdepot.com/">Web Designer Depot</a></strong> is my favorite one, as you get to learn best practices and it keeps you informed about other useful resources on the web. They publish articles almost each day and you get to learn even more, if you follow them on twitter.
<a href="http://www.webdesignerdepot.com/" class="feather_link nofloat_link">visit site</a>
</li> 


<li><strong><a href="http://css-tricks.com/">CSS Tricks</a></strong> &#8211; Chris Coyer, the owner of the blog, delights the web design community not only with &#8220;CSS tricks&#8221; but also jQuery and other cool implementations. A must follow.
<a href="http://css-tricks.com/" class="feather_link nofloat_link">visit site</a>
</li>


<li><strong><a href="http://perishablepress.com/">Perishable Press</a></strong> &#8211; Jeff Star, shares CSS tips and tricks along with WordPress advice but also offers unique insights on certain subjects. For example, I enjoyed reading one of his article &#8220;Switching from PC to MAC&#8221;, especially I&#8217;m planning do this move.
<a href="http://perishablepress.com" class="feather_link nofloat_link">visit site</a>
</li>


<li><strong><a href="http://net.tutsplus.com/">NetTuts</a></strong> &#8211; you can find here all kind of useful tutorials from how to make an illustration to how to code a website.
<a href="http://net.tutsplus.com/" class="feather_link nofloat_link">visit site</a>
</li>

<li><strong><a href="http://blogs.sitepoint.com/">SitePoint Blogs</a></strong> &#8211; Web design news and &#8220;how to&#8221; tutorials varying from PHP coding to jQuery, makes SitePoint an important resource and community website.
<a href="http://blogs.sitepoint.com/" class="feather_link nofloat_link">visit site</a>
</li>


<li><strong><a href="http://webdesignerwall.com/">Web Designer Wall</a></strong> is renowned for CSS techniques tutorials and best practices for how to build a website. The website itself can be taken as great example on how to build a responsive design.
<a href="http://webdesignerwall.com/" class="feather_link nofloat_link">visit site</a>
</li>

<li><strong><a href="http://24ways.org/">24Ways</a></strong> &#8211; I haven&#8217;t seen them posting in 3 months already, but it&#8217;s good to keep an eye for their further publications, as they provide high quality content.
<a href="http://24ways.org/" class="feather_link nofloat_link">visit site</a>
</li>


<li><strong><a href="http://www.smashingmagazine.com/">Smashing Magazine</a></strong> is one of the most popular Blogs around. They post articles very often and have long high quality materials, while addressing to a broad audience. That&#8217;s also their disadvantage. Materials are super long to read and you&#8217;ll not always find something that might interest you.
<a href="http://www.smashingmagazine.com/" class="feather_link nofloat_link">visit site</a>
</li>


<li><strong><a href="http://www.alistapart.com/">A List Apart</a></strong> represents the elite of web design community. They rarely post, but when they do so, you can rest assured that will become the trend.
<a href="http://www.alistapart.com/" class="feather_link nofloat_link">visit site</a>
</li>

</ul>

<h2>WordPress related resources</h2>

<ul>
<li><strong><a href="http://digwp.com/">Digging Into WordPress</a></strong> is one of the best WordPress resources around here. They even launched a book that I recommend purchasing. 
<a href="http://digwp.com/" class="feather_link nofloat_link">visit site</a>
</li>


<li><strong><a href="http://wpengineer.com/">WP Engineer</a></strong> comes up often with useful hacks and techniques for WordPress installs.
<a href="http://wpengineer.com/" class="feather_link nofloat_link">visit site</a>
</li>


<li><strong><a href="http://justintadlock.com/">Justin Tadlock</a></strong> one of the WordPress core developers, always provides good tutorials for new functionalities in WordPress. 
<a href="http://justintadlock.com/" class="feather_link nofloat_link">visit site</a>
</li>


<li><strong><a href="http://www.catswhocode.com/blog/">Cats Who Code</a></strong> is another very useful resource for WordPress but not limited to. 
<a href="http://www.catswhocode.com/blog/" class="feather_link nofloat_link">visit site</a>
</li>


<li><strong><a href="http://www.wprecipes.com">WP Recipes</a></strong> provides short snippets of code that you can just go and try on your site. 
<a href="http://www.wprecipes.com" class="feather_link nofloat_link">visit site</a>
</li>


<li><strong><a href="http://weblogtoolscollection.com/">Weblog Tools Collection</a></strong> keeps the WordPress community updated with important news, new free themes and plugins.  
<a href="http://weblogtoolscollection.com/" class="feather_link nofloat_link">visit site</a>
</li>


</ul>

<h2>Search Engine Optimization</h2>
<ul>
<li><strong><a href="http://www.seomoz.org/blog">SEO Moz</a></strong> comes up with great SEO tips and general SEO advices. </li>
<li><a href="http://www.seomoz.org/blog" class="feather_link nofloat_link">visit site</a></li>

<li><strong><a href="http://www.searchenginejournal.com/">Search Engine Journal</a></strong> &#8211; if you are subscribed to this one, you are pretty much covered on all SEO news and general SEO strategies. 
<a href="http://www.searchenginejournal.com/" class="feather_link nofloat_link">visit site</a>
</li>

</ul>
<h2>Freelancing</h2>
<ul>
<li><strong><a href="http://freelancefolder.com/">Freelance Folder</a></strong> is a great community of freelancers where you can discover different advices and resources.
<a href="http://freelancefolder.com/" class="feather_link nofloat_link">visit site</a>
</li>


<li><strong><a href="http://freelanceswitch.com/">Freelance Switch</a> </strong> is the most popular website for freelance community. You can find out here very useful posts for freelancers, a job board, forum and their featured hourly rate calculator. 
<a href="http://freelanceswitch.com/" class="feather_link nofloat_link">visit site</a>
</li>

</ul>
<h2>Tips for keeping up with everything</h2>
<ul>
<li>Reading so many Blogs, might get overwhelming at some point, that&#8217;s why make sure you use an RSS reader. <a href="http://www.google.com/reader">Google Reader</a> is a great free tool.</li>
<li>If you use Twitter make sure you follow them too.</li>
<li>Allocate a time of the day for this task, so you can be productive.</li>
</ul>
<h3>If you have other great Web Design resources, not mentioned here, please share in the comments.</h3> <img src="http://www.fldtrace.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1170" width="1" height="1" style="display: none;" /><h3>Related Posts</h3>
<ol>
		<li><a href="http://www.fldtrace.com/news/fldtrace-2_0" rel="bookmark">FLDtrace 2.0 &#8211; New Design</a><!-- (2)--></li>
	</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.fldtrace.com/others/great-blog-resources-for-staying-updated-with-web-design-trends/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>10 Awesome WordPress plugins roundup with useful tips</title>
		<link>http://www.fldtrace.com/wordpress/10-awesome-wordpress-plugins-roundup-with-useful-tips</link>
		<comments>http://www.fldtrace.com/wordpress/10-awesome-wordpress-plugins-roundup-with-useful-tips#comments</comments>
		<pubDate>Fri, 07 Jan 2011 20:56:14 +0000</pubDate>
		<dc:creator>Lucian Florian</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.fldtrace.com/?p=1095</guid>
		<description><![CDATA[After two years of intensive experience with WordPress and research for ways to extend it, I discovered some vital plugins that I want to share with you.<h3>Related Posts</h3>
<ol>
		<li><a href="http://www.fldtrace.com/wordpress/8-recommended-useful-plugins-for-wordpress" rel="bookmark">8 Recommended Useful Plugins for WordPress</a><!-- (7.1)--></li>
		<li><a href="http://www.fldtrace.com/wordpress/show-subpages-for-the-current-parent-page-in-wordpress" rel="bookmark">Show subpages only for the current parent page in WordPress</a><!-- (4.1)--></li>
		<li><a href="http://www.fldtrace.com/wordpress/load-javascript-on-specific-pages-in-wordpress" rel="bookmark">How to load Javascript on specific pages in WordPress</a><!-- (3.6)--></li>
	</ol>
]]></description>
			<content:encoded><![CDATA[<h2>1. Custom Field Template</h2>
<p><img src="http://www.fldtrace.com/wp-content/uploads/2011/01/custom-field-template.jpg" alt="" title="custom-field-template" width="520" height="178" class="img_border alignnone size-full wp-image-1128" /></p>
<p>It is my favorite because allows you to define fields on write post/page and it is the most robust solution of this kind with little bugs and awesome support. You can also show certain custom fields on specific pages, posts, custom posts or templates eliminating the clutter.</p>
<p>My tips: use the <a href="http://www.kevinleary.net/multiple-fields-groups-wordpress-custom-field-template-plugin/">duplicate fields function</a>; add field labels for instructions, enable wpautop for automatic paragraphs; leave enabled only the upload image icon (mediaOffImage = true). Your client will be your fan.</p>
<p><a href="http://wordpress.org/extend/plugins/custom-field-template/" class="feather_link">Official link</a></p>

<h2>2. Contact Form 7</h2>
<p><img src="http://www.fldtrace.com/wp-content/uploads/2011/01/contact-form-7.jpg" alt="" title="contact-form-7" width="520" height="178" class="img_border alignnone size-full wp-image-1133" /></p>
<p>This does exactly what it says and is the most popular contact form plugin for WordPress. It also supports translations so it works great with WPML translate plugin.</p>
<p>My tip: activate Akismet and integrate it with this plugin. No more Captcha and great anti-spam protection. Use the watermark feature for having the input title showing over the field itself.</p>
<p><a href="http://wordpress.org/extend/plugins/contact-form-7/" class="feather_link">Official link</a></p>


<h2>3. Image Widget</h2>
<p><img src="http://www.fldtrace.com/wp-content/uploads/2011/01/image-widget.jpg" alt="" title="image-widget" width="520" height="178" class="img_border alignnone size-full wp-image-1136" /></p>
<p>This plugin is perfect for uploading images to sidebars, or other regions in the site. The good part is that allows you to edit them too, so you don&#8217;t have to visit Media Library just for that!</p>
<p>My tip: the widget will also output the title, so if you don&#8217;t want that showing in the site, when you define the widget in your functions.php file, wrap the the widget&#8217;s title output in <strong><span class="invisible"></span></strong> than in CSS you hide that class: <strong>.invisible {position: absolute; text-indent: -9999px}</strong>.</p>
<p><a href="http://wordpress.org/extend/plugins/image-widget/" class="feather_link">Official link</a></p>

<h2>4. Subscribe2</h2>
<p><img src="http://www.fldtrace.com/wp-content/uploads/2011/01/subscribe2.jpg" alt="" title="subscribe2" width="520" height="178" class="img_border alignnone size-full wp-image-1139" /></p>
<p>Subscribe2 will allow your visitors to subscribe with their emails for new posts notifications. It will also act as a newsletter for subscribed users, so you can send periodic messages. You can import email addresses and has unsubscribe option, so those who don&#8217;t want to receive updates anymore, can easily unsubscribe.</p>
<p>My tip: The form subscription inputs, don&#8217;t have any classes / ids assigned by default. If you want to style it make sure you make use of the attributes selectors: <strong>input[name="Subscribe"] {css button styling here..}</strong>
</p>
<p><a href="http://wordpress.org/extend/plugins/subscribe2/" class="feather_link">Official link</a></p>

<h2>5. MapPress Easy Google Maps</h2>
<p><img src="http://www.fldtrace.com/wp-content/uploads/2011/01/mapress.jpg" alt="" title="mapress" width="520" height="178" class="img_border alignnone size-full wp-image-1137" /></p>
<p>If you ever tried to include an iFrame Google map in the WordPress editor, than later re-saved the page, you probably noticed that the map was gone. That&#8217;s because the editor strips the iframe code. There is a work-around for that, but there is a far better solution such as this great plugin.</p>
<p>What is awesome, is that when you click on directions, you get those within the site! See it in action on a <a href="http://fremont6.com/location">website I built</a>.</p>
<p>My tip: set the pop-up description to stay open all the time. You can use inline CSS to customize the text inside.</p>
<p><a href="http://wordpress.org/extend/plugins/mappress-google-maps-for-wordpress/" class="feather_link">Official link</a></p>

<h2>6. Ozh&#8217; Admin Drop Down Menu</h2>
<p><img src="http://www.fldtrace.com/wp-content/uploads/2011/01/ozh-dropdown-admin.jpg" alt="" title="ozh-dropdown-admin" width="520" height="178" class="img_border alignnone size-full wp-image-1138" /></p>
<p>It simplifies the back-end interface and places the navigation on horizontal, as it is supposed to be, for easier access. It also has nice colors and improved contrast.</p>
<p>Without this plugin, I could barely find my way around in a default WordPress installation. It&#8217;s the first I install, always!</p>

<p><a href="http://wordpress.org/extend/plugins/ozh-admin-drop-down-menu/" class="feather_link">Official link</a></p>

<h2>7. White Label CMS</h2>
<p><img src="http://www.fldtrace.com/wp-content/uploads/2011/01/white-label-cms.jpg" alt="" title="white-label-cms" width="520" height="178" class="img_border alignnone size-full wp-image-1140" /></p>
<p>White Label CMS is one of my ultimate WordPress powers. It simplifies the back-end by removing unnecessary links for Editor role and ads a nice professional touch to the control panel interface. It also simplifies dashboard and let you upload custom logos for log-in page, header logo and footer.</p>
<p>My tip: assign an editor role for your client and use together with Capability Manager, see next plugin.</p>

<p><a href="http://wordpress.org/extend/plugins/white-label-cms/" class="feather_link">Official link</a></p>

<h2>8. Capability Manager</h2>
<p><img src="http://www.fldtrace.com/wp-content/uploads/2011/01/capability-manager.jpg" alt="" title="capability-manager" width="520" height="178" class="img_border alignnone size-full wp-image-1132" /></p>
<p>This plugin let&#8217;s you tweak each user role. It is great when you want to give &#8220;admin like&#8221; rights with some limitations.</p>
<p>Create an editor role for your client and make sure you eliminate functions that he doesn&#8217;t need or he might use to mess things up.</p>
<p><a href="http://wordpress.org/extend/plugins/capsman/" class="feather_link">Official link</a></p>

<h2>9. Easy FancyBox</h2>
<p><img src="http://www.fldtrace.com/wp-content/uploads/2011/01/fancybox-light.jpg" alt="" title="Easy Fancybox" width="520" height="178" class="img_border alignnone size-full wp-image-1135" /></p>
<p>This is what I currently use for my portfolio lightbox. I love it because doesn&#8217;t creates any interferences with other jQuery plugins, it&#8217;s fast and has a great animation.</p>
<p>My tip is more related to the CSS part, but it is a nice touch to make all thumbnails that link to a large image, have a custom cursor on focus: <br/>
<strong>a.fancybox {cursor: url(&#8220;images/cursor-zoom.png&#8221;), pointer} <br /> 
a.fancybox {cursor: url(&#8220;images/cursor-zoom.png&#8221;), -moz-zoom-in}</strong> &#8211; make sure to add both lines for browser compatibility and link to your cursor image.</p>
<p><a href="http://wordpress.org/extend/plugins/easy-fancybox/" class="feather_link">Official link</a></p>

<h2>10. Disqus Comment System</h2>
<p><img src="http://www.fldtrace.com/wp-content/uploads/2011/01/disqus.jpg" alt="" title="disqus" width="520" height="178" class="img_border alignnone size-full wp-image-1134" /></p>
<p>If you ever tried to customize the look and maybe functionality of a WordPress commenting section, you know it is not quite piece of cake. This plugin replaces the commenting form with a more advanced functionality and has a nice design.</p>
<p>You&#8217;ll need to create an account but this would be a great addition to any blog and is great when the client is on a budget.</p>
<p><a href="http://wordpress.org/extend/plugins/disqus-comment-system/" class="feather_link">Official link</a></p>

<h3>Your turn</h3>
<p>I left out on purpose the most popular ones that everyone knows such: All in one SEO and DB backup, but if you can recommend a great plugin not listed here, please share.</p>  <img src="http://www.fldtrace.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1095" width="1" height="1" style="display: none;" /><h3>Related Posts</h3>
<ol>
		<li><a href="http://www.fldtrace.com/wordpress/8-recommended-useful-plugins-for-wordpress" rel="bookmark">8 Recommended Useful Plugins for WordPress</a><!-- (7.1)--></li>
		<li><a href="http://www.fldtrace.com/wordpress/show-subpages-for-the-current-parent-page-in-wordpress" rel="bookmark">Show subpages only for the current parent page in WordPress</a><!-- (4.1)--></li>
		<li><a href="http://www.fldtrace.com/wordpress/load-javascript-on-specific-pages-in-wordpress" rel="bookmark">How to load Javascript on specific pages in WordPress</a><!-- (3.6)--></li>
	</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.fldtrace.com/wordpress/10-awesome-wordpress-plugins-roundup-with-useful-tips/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bluehost vs Godaddy</title>
		<link>http://www.fldtrace.com/wordpress/bluehost-vs-godaddy</link>
		<comments>http://www.fldtrace.com/wordpress/bluehost-vs-godaddy#comments</comments>
		<pubDate>Fri, 05 Nov 2010 17:28:21 +0000</pubDate>
		<dc:creator>Lucian Florian</dc:creator>
				<category><![CDATA[Others]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.fldtrace.com/?p=1069</guid>
		<description><![CDATA[During my development career, I got to work with various hosting providers, but mainly I worked the most with Bluehost and Godaddy. I would like now to share my opinion based on my experience with them.<h3>Related Posts</h3>

No related posts.
]]></description>
			<content:encoded><![CDATA[<h2>1. Price</h2>
<p>First, I want to compare them by price. While Godaddy provides a cheaper offer at $4.99/month, compared by the number of features offered, Bluehost comes first at only $6.95/month at unlimited databases and emails. The same unlimited plan costs $14.99/month at Godaddy.</p>
<p><strong>Bluehost is Cheaper!</strong></p>

<h2>2. Speed and Downtime</h2>
<p>While every hosting provider has periods of downtime, I have noticed about the same down-time for both, whenever they have a maintenance going on.</p>
<p>The sites powered by WordPress are loading noticeable faster on Bluehost. Here, I refer mainly at the time the connection is  made to database, before even the site is being loaded. At Godaddy, that waiting is longer by 1-3 seconds depending on the database size. I do not even want to mention the hosting provider FatCow where this waiting time is 15-20 seconds!</p>

<p><strong>Bluehost is Faster!</strong></p>

<h2>3. Features supported on the server</h2>
<p>In case you want to have plug-ins or additional functionality running properly, DON&#8217;T sign up with Godaddy!</p>
<p>I remember I had a very bad experience in the past, when a client of mine wanted a newsletter software installed on his Godaddy server. I managed to install it, but than, it would not send mass emails. Testing the same functionality on Bluehost, it worked with no problems.</p>
<p>Speaking with Godaddy technical support, they told me we need to upgrade the account and pay like $150/month, so we can have that feature supported! No thanks.</p>

<p><strong>Bluehost has more features configured and installed!</strong></p>

<h2>4. Automatic Database Back-ups</h2>
<p>Another bitter experience with Godaddy, it was when we have lost information on a website we were developing, with no manual back-up at that time. After we figured out some problems with the content and that after few days, we found out that Godaddy only stores the back-ups for 1 day. If you need to go to an earlier date, their programmers need to go in there manually and restore it for you for the cost of $150. Your mistake your pay!</p>
<p>In exchange, on Bluehost they store the back-ups for 30 days so you don&#8217;t even have to worry about using your own back-up manager.</p>
<p><strong>Bluehost is more trusted! Godaddy plays dirty!</strong></p>

<h2>5. Database and username setup waiting time</h2>
<p>For some unexplained reason, on Godaddy, whenever we make a fresh install of WordPress we need to wait at least 30 minutes for the database and username to get created. In case you need to change the FTP password you need to wait another 30 minutes, waiting precious time just waiting when you have that deadline in few days.</p>
<p>I haven&#8217;t heard of such non-sens on other hosting providers including Bluehost.</p>
<p><strong>Bluehost saves developers time!</strong></p>

<h2>6. Customer service and support</h2>
<p>Both companies respond in pretty quick to phone calls, however on Godaddy the waiting is higher due is a large company with more clients.</p>
<p>What I liked on Bluehost, is that sometimes they do things for you and they really want to help without charging you extra.</p>
<p>On Godaddy, they always try to up-sell or have no clue about my problem.</p>
<p><strong>Bluehost support is more professional!</strong></p>

<h2>Bluehost is the winner!</h2>
<p>Because I love working with WordPress on Bluehost, save me time and money to clients in long run, I became a proudly Bluehost affiliate; in case you still haven&#8217;t decided on a hosting provider I strongly recommend you sign-up: <a href="http://www.bluehost.com/track/fldtrace/CODE13">http://www.bluehost.com/track/fldtrace/CODE13</a>.</p>

<h3>Your experience</h3>
<p>While Godaddy is a very large company and can focus on marketing better, that&#8217;s a reason why everyone heard about and trust them, while they should not.</p>
<p>What is your experience with both? Is there any other good hosting provider worth considering?</p> <img src="http://www.fldtrace.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1069" width="1" height="1" style="display: none;" /><h3>Related Posts</h3>
<p>No related posts.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fldtrace.com/wordpress/bluehost-vs-godaddy/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WordPress Custom Post Types Numeric Title Order</title>
		<link>http://www.fldtrace.com/wordpress/custom-post-types-numeric-title-order</link>
		<comments>http://www.fldtrace.com/wordpress/custom-post-types-numeric-title-order#comments</comments>
		<pubDate>Sun, 19 Sep 2010 16:49:57 +0000</pubDate>
		<dc:creator>Lucian Florian</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.fldtrace.com/?p=1039</guid>
		<description><![CDATA[When you order custom post types or regular posts by title, WordPress sees them as alphabetical characters and treat them accordingly, but when we want to have a top 10 list, the number 10 will follow 1.  <h3>Related Posts</h3>
<ol>
		<li><a href="http://www.fldtrace.com/wordpress/wordpress-custom-post-types-custom-back-end-columns-and-post-thumbnails" rel="bookmark">WordPress custom post types, custom back-end columns and post thumbnails</a><!-- (17.3)--></li>
		<li><a href="http://www.fldtrace.com/wordpress/how-to-display-parent-page-title-in-wordpress" rel="bookmark">How To Display Parent Page Title in WordPress</a><!-- (7.4)--></li>
		<li><a href="http://www.fldtrace.com/wordpress/display-latest-post-outside-of-wordpress-with-json-and-jquery" rel="bookmark">Display Latest Post Outside of WordPress with JSON and jQuery</a><!-- (6.7)--></li>
	</ol>
]]></description>
			<content:encoded><![CDATA[<p>In this post, I will explain how you can order properly numeric custom post types by title, so the number 10 will be the 10th not the second.</p>
<p>At this point, I assume we already have created the custom post type for our top 10 and I will focus only on the ordering part. In my last <a href="http://www.fldtrace.com/?p=991">article</a>, I have already explained how to create custom post types and improve the back-end interface.</p>

<h2>Numeric Custom Post Ordering in Front End and Back End view</h2>

<p>First step would be to create the custom post types and give them numbers as titles</p>

<p>Add the following code in active theme&#8217;s <strong>functions.php</strong> file:</p>
<p>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"> <span style="color: #666666; font-style: italic;">//order numeric posts </span>
 <span style="color: #000000; font-weight: bold;">function</span> orderby_post_title_int<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$orderby</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">return</span> <span style="color: #0000ff;">'(wp_posts.post_title+0) ASC'</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
&nbsp;
 <span style="color: #666666; font-style: italic;">//order back-end posts in numeric order</span>
 <span style="color: #000000; font-weight: bold;">function</span> set_custom_post_types_admin_order<span style="color: #009900;">&#40;</span><span style="color: #000088;">$wp_query</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
   <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_admin<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
   <span style="color: #666666; font-style: italic;">// Get the post type from the query  </span>
     <span style="color: #000088;">$post_type</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wp_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'post_type'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> 
&nbsp;
   	  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$post_type</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">'reviews'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> 
     	add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'posts_orderby'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'orderby_post_title_int'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	  <span style="color: #009900;">&#125;</span>
   <span style="color: #009900;">&#125;</span>  
 <span style="color: #009900;">&#125;</span>  
 add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'pre_get_posts'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'set_custom_post_types_admin_order'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>



</p>

<p>In your theme file (e.g index.php), where you want to display the list with the custom post types, add the code before the loop:</p>

<p>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'posts_orderby'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'orderby_post_title_int'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$loop</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> WP_Query<span style="color: #009900;">&#40;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'post_type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'reviews'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'orderby'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'title'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'order'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'ASC'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'posts_per_page'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">10</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
remove_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'posts_orderby'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'orderby_post_title_int'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>



</p>

<p><strong>Note that our custom post type is called reviews and you need to replace that name with yours.</strong></p>

<h2>Final Thoughts</h2>
<p>The method uses a filter <strong>posts_orderby</strong>, which in an unofficial blog it states that is not included in WordPress 3, however I can see that it works; in future major releases it might become deprecated but I don&#8217;t see it very likely.</p>
<p>I hope this will help other developers who encountered this issues; let me know if you have any troubles with the code.</p>
 <img src="http://www.fldtrace.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=1039" width="1" height="1" style="display: none;" /><h3>Related Posts</h3>
<ol>
		<li><a href="http://www.fldtrace.com/wordpress/wordpress-custom-post-types-custom-back-end-columns-and-post-thumbnails" rel="bookmark">WordPress custom post types, custom back-end columns and post thumbnails</a><!-- (17.3)--></li>
		<li><a href="http://www.fldtrace.com/wordpress/how-to-display-parent-page-title-in-wordpress" rel="bookmark">How To Display Parent Page Title in WordPress</a><!-- (7.4)--></li>
		<li><a href="http://www.fldtrace.com/wordpress/display-latest-post-outside-of-wordpress-with-json-and-jquery" rel="bookmark">Display Latest Post Outside of WordPress with JSON and jQuery</a><!-- (6.7)--></li>
	</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.fldtrace.com/wordpress/custom-post-types-numeric-title-order/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WordPress custom post types, custom back-end columns and post thumbnails</title>
		<link>http://www.fldtrace.com/wordpress/wordpress-custom-post-types-custom-back-end-columns-and-post-thumbnails</link>
		<comments>http://www.fldtrace.com/wordpress/wordpress-custom-post-types-custom-back-end-columns-and-post-thumbnails#comments</comments>
		<pubDate>Fri, 20 Aug 2010 14:00:15 +0000</pubDate>
		<dc:creator>Lucian Florian</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.fldtrace.com/?p=991</guid>
		<description><![CDATA[Wordpress 3.0 added very useful and cool new functionalities. One of the most popular is ability to create custom post types, so we are not limited only to pages and posts.
In following article I will explain why custom post types are easier to use, how you can register and call in your theme the custom post types and how you can customize their back-end custom overview columns.  <h3>Related Posts</h3>
<ol>
		<li><a href="http://www.fldtrace.com/wordpress/custom-post-types-numeric-title-order" rel="bookmark">WordPress Custom Post Types Numeric Title Order</a><!-- (14.9)--></li>
		<li><a href="http://www.fldtrace.com/wordpress/display-latest-post-outside-of-wordpress-with-json-and-jquery" rel="bookmark">Display Latest Post Outside of WordPress with JSON and jQuery</a><!-- (6.4)--></li>
		<li><a href="http://www.fldtrace.com/wordpress/load-javascript-on-specific-pages-in-wordpress" rel="bookmark">How to load Javascript on specific pages in WordPress</a><!-- (4)--></li>
	</ol>
]]></description>
			<content:encoded><![CDATA[<p>Basically, most of times, you can achieve the custom post types functionality using regular posts and categories. However, it is much harder for a non-techie user, such our clients, to create a post, assign it to the right category and make sure it won&#8217;t screw other thinks up.</p>

<p>While the possibilities of using custom post types are limitless, for the sake of simplicity, I will use as example a simple investment website, which will feature a title, description and a thumbnail with a property.</p>

<h2>Register and calling the custom post type</h2>
<p>First, I want to exemplify how the back-end of our custom post type will look like. As you can see, the interface is simplified and contains only the necessary editing areas.</p>
<p><a href="http://www.fldtrace.com/wp-content/uploads/2010/08/add-new-investment.png"><img src="http://www.fldtrace.com/wp-content/uploads/2010/08/add-new-investment.png" alt="" title="add-new-investment" width="660" height="277" class="alignnone size-full wp-image-1000 img_border" /></a></p>

<h3>Register the custom post type</h3>

<p>In the <strong>functions.php</strong> file from the active theme directory, add the following code:</p>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">//-----------register custom post type</span>
  register_post_type<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'investments'</span><span style="color: #339933;">,</span>
    <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
      <span style="color: #0000ff;">'labels'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
        <span style="color: #0000ff;">'name'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'Investments'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">//this name will be used when will will call the investments in our theme</span>
        <span style="color: #0000ff;">'singular_name'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'Investment'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'add_new'</span> <span style="color: #339933;">=&gt;</span> _x<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Add New'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'investment'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'add_new_item'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Add New Investment'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">//custom name to show up instead of Add New Post. Same for the following</span>
		<span style="color: #0000ff;">'edit_item'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Edit Investment'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'new_item'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'New Investment'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'view_item'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'View Investment'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
      <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
      <span style="color: #0000ff;">'public'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span>
	  <span style="color: #0000ff;">'show_ui'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span>
	  <span style="color: #0000ff;">'hierarchical'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">//it means we cannot have parent and sub pages</span>
	  <span style="color: #0000ff;">'capability_type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'post'</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">//will act like a normal post</span>
	  <span style="color: #0000ff;">'rewrite'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'investment'</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">//this is used for rewriting the permalinks</span>
	  <span style="color: #0000ff;">'query_var'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span>
	  <span style="color: #0000ff;">'supports'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'title'</span><span style="color: #339933;">,</span>	<span style="color: #0000ff;">'editor'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'thumbnail'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'excerpts'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'revisions'</span><span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">//the editing regions that will support</span>
    <span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>




<p>For more information regarding <strong>register_post_type</strong> please visit the official codex documentation: <a href="http://codex.wordpress.org/Function_Reference/register_post_type">http://codex.wordpress.org/Function_Reference/register_post_type</a>.</p>

<p>At this point, you can go ahead in back-end and add a new investment, which will show up next in our site, after we do the following step.</p>

<h3>Creating and calling the custom post type in our template</h3>
<p>Next, we will create a file called <strong>investments.php</strong> and add the following code to it:</p>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">/*
Template Name: Investments
*/</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_header<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
                    <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$loop</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> WP_Query<span style="color: #009900;">&#40;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'post_type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'investments'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'posts_per_page'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #cc66cc;">10</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
					<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$loop</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">have_posts</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000088;">$loop</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">the_post</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
                                &lt;div class=&quot;invest_thumb&quot;&gt; 
                                    <span style="color: #000000; font-weight: bold;">&lt;?php</span>
										<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> has_post_thumbnail<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
											&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_post_thumbnail<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;
										<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
											&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;&lt;img src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'template_directory'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>/i/post-no-img.png&quot; alt=&quot; &quot;/&gt;&lt;/a&gt;
										<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span>
									<span style="color: #000000; font-weight: bold;">?&gt;</span> 
                                &lt;/div&gt;
                                &lt;div class=&quot;investment_info&quot;&gt;
                                    &lt;h2&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/h2&gt;
                                    <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
                                &lt;/div&gt;
                    <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_footer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>



<p>As you can see at the top, we specified to this page a special template name. In back-end, we have to create a page, which we can be named investments (or any other name), than assign it our newly created template. This page, will display our investments and now we can organize our general navigation easily.</p>
<p><a href="http://www.fldtrace.com/wp-content/uploads/2010/08/investments_template.png"><img src="http://www.fldtrace.com/wp-content/uploads/2010/08/investments_template.png" alt="" title="investments_template" width="660" height="171" class="alignnone img_border size-full wp-image-1009" /></a></p>
<p>We specified that our custom post type should behave like a post, which means we can have single post view. We can do that by duplicating our <strong>investments.php</strong> file and name it: <strong>investments-single.php</strong>. For this file we don&#8217;t need anymore the template name anymore at the top, so make sure you remove that part, so we don&#8217;t mess up the first template.</p>

<h2>Custom post thumbnails in edit post / custom type overview</h2>
<p>Starting with WordPress 2.9, we have the ability to easily attach to any post or page a featured image. Our purpose is to show up a preview of this thumbnails in our investments back-end overview.</p>
<p>In <strong>functions.php</strong> file add the following code:</p>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">//ENABLE POST THUMBNAILS FOR ALL POSTS AND PAGES</span>
add_theme_support<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'post-thumbnails'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
set_post_thumbnail_size<span style="color: #009900;">&#40;</span> <span style="color: #cc66cc;">200</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">125</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// hard crop mode true</span>
&nbsp;
<span style="color: #666666; font-style: italic;">//------enable post thumbnail preview for custom columns </span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'fb_AddThumbColumn'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'add_theme_support'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// for post and investments</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">function</span> fb_AddThumbColumn<span style="color: #009900;">&#40;</span><span style="color: #000088;">$cols</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> 
		<span style="color: #000088;">$cols</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'thumbnail'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Thumbnail'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
		<span style="color: #b1b100;">return</span> <span style="color: #000088;">$cols</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">function</span> fb_AddThumbValue<span style="color: #009900;">&#40;</span><span style="color: #000088;">$column_name</span><span style="color: #339933;">,</span> <span style="color: #000088;">$post_id</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
			<span style="color: #000088;">$width</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>int<span style="color: #009900;">&#41;</span> <span style="color: #cc66cc;">200</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$height</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>int<span style="color: #009900;">&#41;</span> <span style="color: #cc66cc;">125</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
			<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'thumbnail'</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$column_name</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
				<span style="color: #666666; font-style: italic;">// thumbnail of WP 2.9</span>
				<span style="color: #000088;">$thumbnail_id</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$post_id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'_thumbnail_id'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				<span style="color: #666666; font-style: italic;">// image from gallery</span>
				<span style="color: #000088;">$attachments</span> <span style="color: #339933;">=</span> get_children<span style="color: #009900;">&#40;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'post_parent'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$post_id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'post_type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'attachment'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'post_mime_type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'image'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$thumbnail_id</span><span style="color: #009900;">&#41;</span>
					<span style="color: #000088;">$thumb</span> <span style="color: #339933;">=</span> wp_get_attachment_image<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$thumbnail_id</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$width</span><span style="color: #339933;">,</span> <span style="color: #000088;">$height</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				<span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$attachments</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
					<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$attachments</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$attachment_id</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$attachment</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
						<span style="color: #000088;">$thumb</span> <span style="color: #339933;">=</span> wp_get_attachment_image<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$attachment_id</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$width</span><span style="color: #339933;">,</span> <span style="color: #000088;">$height</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #009900;">&#125;</span>
				<span style="color: #009900;">&#125;</span>
					<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$thumb</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$thumb</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
						<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$thumb</span><span style="color: #339933;">;</span>
					<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
						<span style="color: #b1b100;">echo</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'None'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
					<span style="color: #009900;">&#125;</span>
			<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// for posts</span>
	add_filter<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'manage_posts_columns'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'fb_AddThumbColumn'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'manage_posts_custom_column'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'fb_AddThumbValue'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">10</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">2</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// for investments</span>
	add_filter<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'manage_investments_columns'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'fb_AddThumbColumn'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'manage_investments_custom_column'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'fb_AddThumbValue'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">10</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">2</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>



<h2>Custom back-end columns overview</h2>
<p>By default, any WordPress post or page will display the title, author, categories, date which is not relevant to our investment page, where we want to display only title, description and the investment thumbnail, like in following image:</p>
<p><a href="http://www.fldtrace.com/wp-content/uploads/2010/08/custom-columns-overview.png"><img src="http://www.fldtrace.com/wp-content/uploads/2010/08/custom-columns-overview.png" alt="" title="custom-columns-overview" width="660" height="248" class="alignnone img_border size-full wp-image-1015" /></a></p>
<p>The only left thing to do, is to add in <strong>functions.php</strong> file the next code:</p>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">//----------------edit custom columns display for back-end </span>
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;manage_posts_custom_column&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;my_custom_columns&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;manage_edit-investments_columns&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;my_investments_columns&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> my_investments_columns<span style="color: #009900;">&#40;</span><span style="color: #000088;">$columns</span><span style="color: #009900;">&#41;</span> <span style="color: #666666; font-style: italic;">//this function display the columns headings</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$columns</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
		<span style="color: #0000ff;">&quot;cb&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;&lt;input type=<span style="color: #000099; font-weight: bold;">\&quot;</span>checkbox<span style="color: #000099; font-weight: bold;">\&quot;</span> /&gt;&quot;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">&quot;title&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Investment Title&quot;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">&quot;description&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Description&quot;</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">&quot;thumbnail&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;Thumbnail&quot;</span>
	<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$columns</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> my_custom_columns<span style="color: #009900;">&#40;</span><span style="color: #000088;">$column</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$post</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;ID&quot;</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$column</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//displays title</span>
	<span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;description&quot;</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$column</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_content</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//displays the content excerpt</span>
	<span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;thumbnail&quot;</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$column</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_thumbnail</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//shows up our post thumbnail that we previously created.</span>
<span style="color: #009900;">&#125;</span></pre></div></div>



<h2>Resources</h2>
<h3>Custom columns:</h3>
<p><a href="http://kovshenin.com/archives/custom-post-types-in-wordpress-3-0/">http://kovshenin.com/archives/custom-post-types-in-wordpress-3-0/</a></p>

<h3>Post thumbnail post and page overview:</h3>
<p><a href="http://wpengineer.com/1960/display-post-thumbnail-post-page-overview/">http://wpengineer.com/1960/display-post-thumbnail-post-page-overview/</a></p>

<h2>Conclusion</h2>
<p>Using custom post types we can provide easy to use content management systems, yet powerful and flexible.</p>
<p>Going the extra mile and customize the WordPress back-end, it makes a difference between good developers and great developers, while our clients can enjoy their polished and simple to use websites.</p> <img src="http://www.fldtrace.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=991" width="1" height="1" style="display: none;" /><h3>Related Posts</h3>
<ol>
		<li><a href="http://www.fldtrace.com/wordpress/custom-post-types-numeric-title-order" rel="bookmark">WordPress Custom Post Types Numeric Title Order</a><!-- (14.9)--></li>
		<li><a href="http://www.fldtrace.com/wordpress/display-latest-post-outside-of-wordpress-with-json-and-jquery" rel="bookmark">Display Latest Post Outside of WordPress with JSON and jQuery</a><!-- (6.4)--></li>
		<li><a href="http://www.fldtrace.com/wordpress/load-javascript-on-specific-pages-in-wordpress" rel="bookmark">How to load Javascript on specific pages in WordPress</a><!-- (4)--></li>
	</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.fldtrace.com/wordpress/wordpress-custom-post-types-custom-back-end-columns-and-post-thumbnails/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>

