<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
<channel>
<title>CSSReflex &#187; Code</title>
<atom:link href="http://www.cssreflex.com/code/feed/" rel="self" type="application/rss+xml" />
<link>http://www.cssreflex.com</link>
<description>The CSSReflex blog covers all of Tutorials, Design News, Web Development, Showcases, Freebies, WordPress Tutorials And Blogger Templates.</description>
<lastBuildDate>Fri, 03 Feb 2012 13:23:02 +0000</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<item>
<title>Free PHP Learning Resources For Beginners</title>
<link>http://www.cssreflex.com/2011/10/learning-php-beginner.html/</link>
<comments>http://www.cssreflex.com/2011/10/learning-php-beginner.html/#comments</comments>
<pubDate>Wed, 26 Oct 2011 13:50:55 +0000</pubDate>
<dc:creator>Abdullah</dc:creator>
<category>
<![CDATA[Web Development]]>
</category>
<category>
<![CDATA[Code]]>
</category>
<category>
<![CDATA[Free]]>
</category>
<category>
<![CDATA[Learning]]>
</category>
<category>
<![CDATA[PHP]]>
</category>
<category>
<![CDATA[Server side scripting]]>
</category>
<category>
<![CDATA[tutorials]]>
</category>
<guid isPermaLink="false">http://www.cssreflex.com/?p=4415</guid>
<description>
<![CDATA[This post features ten websites where you can learn PHP for free. PHP is an open source Server-side HTML embedded scripting language. It provides web developers with a full suite of tools for building dynamic website. CSSReflex is powered by WordPress, which is built on PHP. 1. Home and learn This is a complete and...]]>
</description>
<content:encoded>
<![CDATA[<p>This post features ten websites where you can learn PHP for free. <a title="13 Fresh PHP Tutorials" href="http://www.cssreflex.com/2011/10/fresh-php-tutorials-for-beginners.html/" target="_blank">PHP</a> is an open source Server-side HTML embedded scripting language. It provides web developers with a full suite of tools for building dynamic website. CSSReflex is powered by <a title="WordPress" href="http://www.cssreflex.com/category/wordpress" target="_blank">WordPress</a>, which is built on PHP.</p>
<h2>1. <a href="http://www.homeandlearn.co.uk/php/php.html" target="_blank">Home and learn</a></h2>
<p>This is a complete and free PHP programming course for beginners. Everything you need to get started is set out in sections.</p>
<p><a href="http://www.homeandlearn.co.uk/php/php.html"><img class="alignnone size-full wp-image-4732" src="http://www.cssreflex.com/wp-content/uploads/2011/10/Best-free-PHP-learning-resources-for-beginners-freephp.jpg" alt="Best free PHP learning resources for beginners-freephp" width="600" height="250" /></a></p>
<h2>2. <a href="http://www.learnphponline.com/" target="_blank"><strong></strong><strong>Learn PHP Online</strong></a></h2>
<p>LearnPHPOnline.com was founded under the concept of offering a complete learning experience for no fees to the end user. In accomplishing this goal, we hope to educate future PHP developers and entrepreneurs to reach their dreams of success and prosperity.</p>
<p><a href="http://www.learnphponline.com/"><img class="alignnone size-full wp-image-4733" src="http://www.cssreflex.com/wp-content/uploads/2011/10/Best-free-PHP-learning-resources-for-beginners-learnphp.jpg" alt="Best free PHP learning resources for beginners-learnphp" width="600" height="250" /></a></p>
<h2>3. <a href="http://www.webmonkey.com/2010/02/php_tutorial_for_beginners/" target="_blank">Webmonkey</a></h2>
<p>This tutorial is for the person who understands HTML but doesn’t know much about PHP. One of PHP’s greatest attributes is that it’s a freely distributed open-source language, so there’s all kinds of excellent reference material about it out there, which means that once you understand the basics, it’s easy to find the materials that you need to push your skills.</p>
<p><a href="http://www.webmonkey.com/2010/02/php_tutorial_for_beginners/"><img class="alignnone size-full wp-image-4735" src="http://www.cssreflex.com/wp-content/uploads/2011/10/Best-free-PHP-learning-resources-for-beginners-webmonkey.jpg" alt="Best free PHP learning resources for beginners-webmonkey" width="600" height="250" /></a></p>
<h2>4. <a href="http://www.developphp.com/" target="_blank">Develop PHP</a></h2>
<p>This website has a complete solution for webmaster which include PHP which is one of their most important  content they will provide you with the complete basic training of PHP and its uses.</p>
<p><a href="http://www.developphp.com/"><img class="alignnone size-full wp-image-4737" src="http://www.cssreflex.com/wp-content/uploads/2011/10/Best-free-PHP-learning-resources-for-beginners-developphp.jpg" alt="Best free PHP learning resources for beginners-developphp" width="600" height="250" /></a></p>
<h2>5.<a href="http://www.learnphp.org/" target="_blank"> LearnPHP</a></h2>
<p>LearnPHP.org is a comprehensive resource of categorized web development tutorials. They intend to make it the richest online database of web development tutorials, including, but not limited to, PHP and MySQL tutorials. Enjoy browsing their growing selection of free professional PHP/MySQL tutorials to find out that you don’t need to be a Super Brain to learn web development in all its minutest details. Create web pages with dynamic content, develop web based software applications, design your own PHP projects, and all that with their PHP tutorials.</p>
<p><a href="http://www.learnphp.org/"><img class="alignnone size-full wp-image-4740" src="http://www.cssreflex.com/wp-content/uploads/2011/10/Best-free-PHP-learning-resources-for-beginners-learnphporg.jpg" alt="Best free PHP learning resources for beginners-learnphporg" width="600" height="250" /></a></p>
<h2>6. <a href="http://www.w3schools.com/" target="_blank">W3Schools</a></h2>
<p>PHP is a powerful tool for making dynamic and interactive Web pages. PHP is the widely-used, free, and efficient alternative to competitors such as Microsoft’s ASP. In their PHP tutorial you will learn about PHP, and how to execute scripts on your server.<a href="http://www.w3schools.com/"><img class="alignnone size-full wp-image-4741" src="http://www.cssreflex.com/wp-content/uploads/2011/10/Best-free-PHP-learning-resources-for-beginners-w3schools.jpg" alt="Best free PHP learning resources for beginners-w3schools" width="600" height="250" /></a></p>
<h2>7. <a href="http://www.tizag.com" target="_blank">Tizag</a></h2>
<p>If you want to learn the basics of PHP, then you’ve come to the right place. The goal of this tutorial is to teach you the basics of PHP.</p>
<p><a href="http://www.tizag.com"><img class="alignnone size-full wp-image-4742" src="http://www.cssreflex.com/wp-content/uploads/2011/10/Best-free-PHP-learning-resources-for-beginners-tizag.jpg" alt="Best free PHP learning resources for beginners-tizag" width="600" height="250" /></a></p>
<h2>8. <a href="http://www.php.net/" target="_blank">PHP.net</a></h2>
<p>This is the Official website for PHP you can follow the website and find some useful examples, resources which will help you increase your knowledge about PHP. I would recommend this site to every web developers.</p>
<p><a href="http://www.php.net/"><img class="alignnone size-full wp-image-4743" src="http://www.cssreflex.com/wp-content/uploads/2011/10/Best-free-PHP-learning-resources-for-beginners-phpnet.jpg" alt="Best free PHP learning resources for beginners-phpnet" width="600" height="250" /></a></p>
<h2>9. <a href="http://www.phpbuddy.com/" target="_blank">PHP Buddy</a></h2>
<p>This site is designed to help you learn PHP programming here you will find high quality PHP articles, Quick Start PHP tutorials and scripts that will help to you learn PHP quickly.</p>
<p><a href="http://www.phpbuddy.com/"><img class="alignnone size-full wp-image-4745" src="http://www.cssreflex.com/wp-content/uploads/2011/10/Best-free-PHP-learning-resources-for-beginners-phpbuddy.jpg" alt="Best free PHP learning resources for beginners-phpbuddy" width="600" height="250" /></a></p>
<h2>10. <a href="http://stackoverflow.com/" target="_blank">Stackoverflow</a></h2>
<p>Stack Overflow is a programming Q &amp; A site that’s free. Free to ask questions, free to answer questions, free to read, free to index, built with plain old HTML, no fake rot13 text on the home page, no scammy google-cloaking tactics, no salespeople, no JavaScript windows dropping down in front of the answer asking for $12.95 to go away. You can register if you want to collect karma and win valuable flair that will appear next to your name, but otherwise, it’s just free. And fast. Very, very fast.</p>
<p><a href="http://stackoverflow.com/"><img class="alignnone size-full wp-image-4746" src="http://www.cssreflex.com/wp-content/uploads/2011/10/Best-free-PHP-learning-resources-for-beginners-stackoverflow.jpg" alt="Best free PHP learning resources for beginners-stackoverflow" width="600" height="250" /></a></p>
]]>
</content:encoded>
<wfw:commentRss>http://www.cssreflex.com/2011/10/learning-php-beginner.html/feed/</wfw:commentRss>
<slash:comments>1</slash:comments>
</item>
<item>
<title>15 Useful Web Based Code Editors</title>
<link>http://www.cssreflex.com/2011/10/web-based-code-editors.html/</link>
<comments>http://www.cssreflex.com/2011/10/web-based-code-editors.html/#comments</comments>
<pubDate>Mon, 17 Oct 2011 06:28:57 +0000</pubDate>
<dc:creator>Abdullah</dc:creator>
<category>
<![CDATA[Web Development]]>
</category>
<category>
<![CDATA[Code]]>
</category>
<category>
<![CDATA[CSS]]>
</category>
<category>
<![CDATA[editor]]>
</category>
<category>
<![CDATA[HTML]]>
</category>
<category>
<![CDATA[PHP]]>
</category>
<category>
<![CDATA[Tools]]>
</category>
<category>
<![CDATA[Web Based]]>
</category>
<guid isPermaLink="false">http://www.cssreflex.com/?p=4454</guid>
<description>
<![CDATA[You will find many web based code editors over the internet, but here is a list of the 15 best Web based code editors which you can code from on your browser. You can share your favorite code editors with us by commenting below and don&#8217;t forget to subscribe! You may also be interested in...]]>
</description>
<content:encoded>
<![CDATA[<p>You will find many web based <a title="7 HTML5 Tools Every Web Designer &amp; Developer Should Know" href="http://www.cssreflex.com/2011/10/7-html5-tools-every-web-designer-developer.html/">code</a> editors over the internet, but here is a list of the 15 best Web based code editors which you can code from on your browser. You can share your favorite code editors with us by commenting below and don&#8217;t forget to subscribe!</p>
<p><strong>You may also be interested in one of these older posts</strong><a href="http://cssreflex.com/2009/11/awesome-and-free-fonts-for-web-designers.html" target="_blank"><br />
</a> <a href="../2010/04/20-awesome-firefox-add-ons-for-web-developers.html" target="_blank">20 Awesome Firefox Add-ons For Web Developers</a><strong><br />
</strong><a href="../2010/04/20-awesome-firefox-add-ons-for-web-developers.html" target="_blank"> 12 Indispensable Adobe AIR Apps for Web Developers</a><strong><br />
</strong> <a href="../2010/04/130-free-seo-web-tools-and-search-engine-optimization-software.html" target="_blank">130+ Free SEO Web Tools and Search Engine Optimization Software</a><strong><br />
</strong> <a href="../2010/03/essential-php-cheatsheets.html" target="_blank">List Of Essential PHP Quick References And CheatSheets</a><strong><br />
</strong><a href="../2010/02/8-fantastic-wordpress-theme-options-page-tutorials.html" target="_blank">10+ Rare WordPress Theme Options Page Tutorials To Get You Started</a></p>
<h2>1. Coderun</h2>
<h2><a href="http://coderun.com/" target="_blank"><img style="padding-left: 0px; padding-right: 0px; padding-top: 0px; border: 0px;" src="http://www.cssreflex.com/wp-content/uploads/2011/10/coderun1.jpg" alt="coderun" width="600" height="250" border="0" /></a></h2>
<p>CodeRun Studio is a cross-platform Integrated Development Environment (IDE), designed for the cloud. It enables you to easily develop, debug and deploy web applications using your browser.CodeRun Studio can be used instead or alongside your existing desktop IDE</p>
<p><a href="http://coderun.com/" target="_blank">Try Coderun</a></p>
<h2>2. Kodingen</h2>
<p><a href="http://kodingen.com/" target="_blank"><img style="padding-left: 0px; padding-right: 0px; padding-top: 0px; border: 0px;" src="http://www.cssreflex.com/wp-content/uploads/2011/10/Kodigen1.jpg" alt="Kodigen" width="600" height="250" border="0" /></a></p>
<p>Kodingen started with two brothers (Devrim &amp; Sinan) coming together to give something back to developers community.It is an Online Development Environment, Online Code Editor,cloud coding and Web-based code editor.</p>
<p><a href="http://kodingen.com/" target="_blank">Try Kodigen</a></p>
<h2>3. Cloud9ide</h2>
<p><a href="http://cloud9ide.com/" target="_blank"><img style="padding-left: 0px; padding-right: 0px; padding-top: 0px; border: 0px;" src="http://www.cssreflex.com/wp-content/uploads/2011/10/cloud9ide1.jpg" alt="cloud9ide" width="600" height="275" border="0" /></a></p>
<p>Cloud9 is a state-of-the-art IDE that runs in your browser and lives in the cloud, allowing you to run, debug and deploy applications from anywhere, anytime. A complete game-changer that will change the way we develop applications forever.</p>
<p><a href="http://cloud9ide.com/" target="_blank">Try Cloud9ide</a></p>
<h2>4. Amy Editor</h2>
<p><a href="http://www.amyeditor.com/" target="_blank"><img style="padding-left: 0px; padding-right: 0px; padding-top: 0px; border: 0px;" src="http://www.cssreflex.com/wp-content/uploads/2011/10/armyeditor1.jpg" alt="armyeditor" width="600" height="250" border="0" /></a></p>
<p>Created in 2007 by Petr Krontorád, Amy Editor is an advanced editor with a look and feel of a Mac. Amy Editor features lots of useful options, such as line numbers, syntax highlighting, snippets for more than 20 languages, collaboration, and more.Amy can edit, save and export files. It can also manage projects.</p>
<p><a href="http://www.amyeditor.com/" target="_blank">Try Army Editor</a></p>
<h2>5. JSBin</h2>
<p><a href="http://jsbin.com/" target="_blank"><img style="padding-left: 0px; padding-right: 0px; padding-top: 0px; border: 0px;" src="http://www.cssreflex.com/wp-content/uploads/2011/10/jsbin1.jpg" alt="jsbin" width="600" height="270" border="0" /></a></p>
<p>As you can guess, JSBin is an online text editor primarily focused on Javascript. I really love the clean and simple interface. Each code can be tested using a powerful “Preview” feature, and then exported into a text file.Another good thing to note is that JSBin can import popular Javascript frameworks such as jQuery or Mootools, so you can test your js plugins as well.</p>
<p><a href="http://jsbin.com/" target="_blank">Try JSBin</a></p>
<h2>6. Bespin</h2>
<p><a href="https://bespin.mozilla.com/" target="_blank"><img style="padding-left: 0px; padding-right: 0px; padding-top: 0px; border: 0px;" src="http://www.cssreflex.com/wp-content/uploads/2011/10/bespin1.jpg" alt="bespin" width="600" height="250" border="0" /></a></p>
<p>Using HTML5 quite intensively, Bespin is a new project from Mozilla Labs. This online editor is very powerful and has lots of cool options. In order to use Bespin, you have to create an account. Note that Bespin can be downloaded and then embedded in any kind of web project, only by adding two files in your header!</p>
<p><a href="https://bespin.mozilla.com/" target="_blank">Try Bespin</a></p>
<h2>7. Codeita</h2>
<p><a href="http://www.codeita.com/" target="_blank"><img style="padding-left: 0px; padding-right: 0px; padding-top: 0px; border: 0px;" src="http://www.cssreflex.com/wp-content/uploads/2011/10/codeita1.jpg" alt="codeita" width="600" height="300" border="0" /></a></p>
<p>Codeita is a powerful, easy to use, cloud-based, web development environment.  It’s a powerful code editor, an advanced svg image editor, and an out of this world project management and collaboration tool. It allows users to code, develop, brainstorm, communicate and then publish projects and files to your web server.</p>
<p><a href="http://www.codeita.com/" target="_blank">Try Codeita</a></p>
<h2>8. ecoder</h2>
<p><a href="http://ecoder.quintalinda.com/" target="_blank"><img style="padding-left: 0px; padding-right: 0px; padding-top: 0px; border: 0px;" src="http://www.cssreflex.com/wp-content/uploads/2011/10/ecoder1.jpg" alt="ecoder" width="600" height="275" border="0" /></a></p>
<p>ecoder is a simple, web-based code editor, which includes a file browser, file uploader, and tabbed system to allow multiple files to be edited at the same time. using this web-application developers can edit code directly online, real-time syntax highlighting is handled by textarea and keyboard short-cuts lend it the feel of a locally installed application.</p>
<p><a href="http://ecoder.quintalinda.com/" target="_blank">Try Ecoder</a></p>
<h2>9. Workspace</h2>
<p><a href="http://www.createworkspace.com/" target="_blank"><img style="padding-left: 0px; padding-right: 0px; padding-top: 0px; border: 0px;" src="http://www.cssreflex.com/wp-content/uploads/2011/10/workspace1.jpg" alt="workspace" width="600" height="250" border="0" /></a></p>
<p>Workspace is a online development environment that facilitates the complete management of your Web-based projects. With a syntax highlighting editor built right in, it provides the ability to edit text, PHP, JavaScript, HTML, Java, Perl, SQL and other types of files directly on a remote server. Finding and managing those files is made easy with a cutting-edge file management utility embedded right in the app. With this utility, users can connect to, and manage the files on an arbitrary number of ftp sites simultaneously.</p>
<p><a href="http://www.createworkspace.com/" target="_blank">Try Workspace</a></p>
<h2>10. EditPad</h2>
<p><a href="http://www.editpad.org/" target="_blank"><img style="padding-left: 0px; padding-right: 0px; padding-top: 0px; border: 0px;" src="http://www.cssreflex.com/wp-content/uploads/2011/10/editpad1.jpg" alt="editpad" width="600" height="268" border="0" /></a></p>
<p>Unlike the first few editors featured in this post, EditPad is simple and minimal. No syntax highlighting, no project management…Just a plain page to type your text without any distractions. I’m not a big fan, but this “online notepad” can be a life saver on a particularly slow machine.</p>
<p><a href="http://www.editpad.org/" target="_blank">Try Editpad</a></p>
<h2>11. 9ne</h2>
<p><a href="http://robrohan.com/projects/9ne/" target="_blank"><img style="padding-left: 0px; padding-right: 0px; padding-top: 0px; border: 0px;" src="http://www.cssreflex.com/wp-content/uploads/2011/10/9ne1.jpg" alt="9ne" width="600" height="255" border="0" /></a></p>
<p>9ne (Pronounced <em>Nine</em>) is a nice online text editor, based on the well known GNU Emacs. 9ne provides most of the basic Emacs functionalities and currently supports XML and Javascript syntax highlighting modes.</p>
<p><a href="http://robrohan.com/projects/9ne/" target="_blank">Try 9ne</a></p>
<h2>12. jsvi</h2>
<p><a href="http://www.cssreflex.com/wp-content/uploads/2011/10/jsvi.jpg"><img style="padding-left: 0px; padding-right: 0px; padding-top: 0px; border: 0px;" src="http://www.cssreflex.com/wp-content/uploads/2011/10/jsvi_thumb.jpg" alt="jsvi" width="600" height="250" border="0" /></a></p>
<p>JSVi has always been one of my favorite text editors of all times. Why? Because it is powerful, fast, and you’ll find it everywhere: GNU/linux distros, Mac, web servers… Now, you’ll also find Vi online with this implementation called JSVI. Most Vi functions have been implemented into this web-based version.</p>
<p><a href="http://gpl.internetconnection.net/vi/" target="_blank">Try Jsvi</a></p>
<h2>13. Squad</h2>
<p><a href="https://squadedit.com/" target="_blank"><img style="padding-left: 0px; padding-right: 0px; padding-top: 0px; border: 0px;" src="http://www.cssreflex.com/wp-content/uploads/2011/10/squad1.jpg" alt="squad" width="600" height="250" border="0" /></a></p>
<p>Squad is a web-based collaborative code editor which means you can access it from anywhere and your settings are always with you. No need to install a clunky desktop application.</p>
<p><a href="https://squadedit.com/" target="_blank">Try Squad</a></p>
<h2>14. DarkCopy</h2>
<p><a href="http://darkcopy.com/" target="_blank"><img style="padding-left: 0px; padding-right: 0px; padding-top: 0px; border: 0px;" src="http://www.cssreflex.com/wp-content/uploads/2011/10/dark1.jpg" alt="dark" width="600" height="250" border="0" /></a></p>
<p>Have you ever felt distracted when working on a buggy piece of code? If yes, there’s no doubt that you will enjoy DarkCopy. This simple online text editor has limited functions but it provides a dark, clutter-free environment so you can concentrate on the most important: getting things done.</p>
<p><a href="http://darkcopy.com/" target="_blank">Try Darkcopy</a></p>
<h2>15. ShifEdit</h2>
<p><a href="http://shiftedit.net/" target="_blank"><img style="padding-left: 0px; padding-right: 0px; padding-top: 0px; border: 0px;" src="http://www.cssreflex.com/wp-content/uploads/2011/10/shifedit1.jpg" alt="shifedit" width="600" height="250" border="0" /></a></p>
<p><a href="http://shiftedit.net/" target="_blank">Try Shifedit</a></p>
]]>
</content:encoded>
<wfw:commentRss>http://www.cssreflex.com/2011/10/web-based-code-editors.html/feed/</wfw:commentRss>
<slash:comments>1</slash:comments>
</item>
<item>
<title>Top 10 WordPress Codes Every Designer Should Know</title>
<link>http://www.cssreflex.com/2009/08/top-10-wordpress-codes-every-designer-should-know.html/</link>
<comments>http://www.cssreflex.com/2009/08/top-10-wordpress-codes-every-designer-should-know.html/#comments</comments>
<pubDate>Fri, 07 Aug 2009 05:00:22 +0000</pubDate>
<dc:creator>Naeem Noor</dc:creator>
<category>
<![CDATA[Web Development]]>
</category>
<category>
<![CDATA[WordPress]]>
</category>
<category>
<![CDATA[Code]]>
</category>
<category>
<![CDATA[Code Snippets]]>
</category>
<category>
<![CDATA[template tags]]>
</category>
<guid isPermaLink="false">http://www.cssreflex.com/?p=586</guid>
<description>
<![CDATA[Hello there! Here I collected a very great collection of 10 WordPress codes that I consider the most commonly used by any WordPress developer. The content was reformatted for quick reference from the Template Tag section of the WordPress.org Codex, a relative encyclopedia to WordPress themeing, and great reference for your WordPress questions. You may...]]>
</description>
<content:encoded>
<![CDATA[<p>Hello there! Here I collected a very great collection of 10 WordPress codes that I consider the most commonly used by any WordPress developer. The content was reformatted for quick reference from the Template Tag section of the <a href="http://codex.wordpress.org/Template_Tags" target="_blank">WordPress.org Codex</a>, a relative encyclopedia to WordPress themeing, and great reference for your WordPress questions.</p>
<p><a href="http://www.cssreflex.com/wp-content/uploads/2009/08/most-commonly-used-wordpress-code-snippets.jpg"><img class="aligncenter size-full wp-image-559" title="wp-code" src="http://www.cssreflex.com/wp-content/uploads/2009/08/most-commonly-used-wordpress-code-snippets.jpg" alt="wp-code" width="490" height="182" /></a></p>
<p><strong>You may be interested in these older posts</strong><a title="13 Magnificent Free WordPress Portfolio Themes" href="http://www.cssreflex.com/2009/07/13-magnificent-free-wordpress-portfolio-themes.html"><br />
13 Magnificent Free WordPress Portfolio Themes</a><br />
<a title="15 Free Awesome Social Bookmark Icons Sets" href="http://www.cssreflex.com/2009/06/15-free-awesome-social-bookmark-icons-sets.html">15 Free Awesome Social Bookmark Icons Sets<br />
</a><a title="5 Essential Google Cheat Sheets Which Surely Will Come in Handy" href="http://www.cssreflex.com/2009/07/5-essential-google-cheat-sheets-which-surely-will-come-in-handy.html" target="_self">5 Essential Google Cheat Sheets Which Surely Will Come in Handy</a></p>
<p>Here are the list of most commonly used WordPress code snippets by designers. If I&#8217;ve missed any WordPress code, please comment below.</p>
<h3>Display Recent Posts</h3>
<p><code class="html">&lt;?php wp_get_archives('type=postbypost&amp;limit=5'); ?&gt;</code><br />
or</p>
<p><code class="html">&lt;?php  $recentposts = get_posts('numberposts=12&amp;category=4');<br />
foreach ($recentposts as $post) :       setup_postdata($post);  ?&gt;<br />
&lt;li&gt;&lt;a href="&lt;?php the_permalink() ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/li&gt;  &lt;?php endforeach; ?&gt;</code></p>
<h3>Display Categories</h3>
<p><code class="html">&lt;h2&gt;Categories&lt;/h2&gt;<br />
&lt;ul&gt;<br />
&lt;?php wp_list_cats('sort_column=name'); ?&gt;<br />
&lt;/ul&gt;</code></p>
<h3>Display Archives</h3>
<p><code class="html"> &lt;h2&gt;Archives&lt;/h2&gt;<br />
&lt;ul&gt;<br />
&lt;?php wp_get_archives('type=monthly'); ?&gt;<br />
&lt;/ul&gt;</code></p>
<h3>Display WordPress Tags Cloud</h3>
<p><code class="html"> &lt;?php wp_tag_cloud('smallest=8&amp;largest=36&amp;'); ?&gt;</code></p>
<h3>Display Blogroll</h3>
<p><code class="html">&lt;ul&gt;  &lt;?php wp_list_bookmarks('title_li=&amp;categorize=0'); ?&gt;  &lt;/ul&gt;</code></p>
<h3>Display WordPress Tags</h3>
<p><code class="html"> &lt;?php the_tags(); ?&gt;</code></p>
<h3>Display a Pages Menu</h3>
<p><code class="html">&lt;h2&gt;Pages&lt;/h2&gt;<br />
&lt;ul&gt;<br />
&lt;?php wp_list_pages('title_li='); ?&gt;<br />
&lt;/ul&gt;</code></p>
<h3>Display Recent Comments</h3>
<p><code class="html">&lt;?php<br />
global $wpdb;<br />
$sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID,<br />
comment_post_ID, comment_author, comment_date_gmt, comment_approved,<br />
comment_type,comment_author_url,<br />
SUBSTRING(comment_content,1,30) AS com_excerpt<br />
FROM $wpdb-&gt;comments<br />
LEFT OUTER JOIN $wpdb-&gt;posts ON ($wpdb-&gt;comments.comment_post_ID =<br />
$wpdb-&gt;posts.ID)<br />
WHERE comment_approved = '1' AND comment_type = '' AND<br />
post_password = ''<br />
ORDER BY comment_date_gmt DESC<br />
LIMIT 10";<br />
$comments = $wpdb-&gt;get_results($sql);<br />
$output = $pre_HTML;<br />
$output .= "\n&lt;ul&gt;";<br />
foreach ($comments as $comment) {<br />
$output .= "\n&lt;li&gt;".strip_tags($comment-&gt;comment_author)<br />
.":" . "&lt;a href=\"" . get_permalink($comment-&gt;ID) .<br />
"#comment-" . $comment-&gt;comment_ID . "\" title=\"on " .<br />
$comment-&gt;post_title . "\"&gt;" . strip_tags($comment-&gt;com_excerpt)<br />
."&lt;/a&gt;&lt;/li&gt;";<br />
}<br />
$output .= "\n&lt;/ul&gt;";<br />
$output .= $post_HTML;<br />
echo $output;?&gt;</code></p>
<h3>Display Admin Section</h3>
<p><code class="html">&lt;ul&gt;<br />
&lt;?php wp_register(); ?&gt;<br />
&lt;li&gt;&lt;?php wp_loginout(); ?&gt;&lt;/li&gt;<br />
&lt;li&gt;&lt;a href="http://www.wordpress.org/"&gt;WordPress&lt;/a&gt;&lt;/li&gt;<br />
&lt;?php wp_meta(); ?&gt;<br />
&lt;li&gt;&lt;a href="http://validator.w3.org/check?uri=referer"&gt;XHTML&lt;/a&gt;&lt;/li&gt;<br />
&lt;/ul&gt;</code></p>
<h3>Display Top Comments</h3>
<p><code class="html">&lt;?php $result = $wpdb-&gt;get_results("SELECT<br />
comment_count,ID,post_title FROM $wpdb-&gt;posts ORDER BY comment_count<br />
DESC LIMIT 0 , 10");<br />
foreach ($result as $topten) {<br />
$postid = $topten-&gt;ID;<br />
$title = $topten-&gt;post_title;<br />
$commentcount = $topten-&gt;comment_count;<br />
if ($commentcount != 0) { ?&gt;<br />
&lt;li&gt;&lt;a href="&lt;?php echo get_permalink($postid); ?&gt;"<br />
title="&lt;?php echo $title ?&gt;"&gt;&lt;?php echo $title<br />
?&gt;&lt;/a&gt;&lt;/li&gt;<br />
&lt;?php } } ?&gt;</code></p>
]]>
</content:encoded>
<wfw:commentRss>http://www.cssreflex.com/2009/08/top-10-wordpress-codes-every-designer-should-know.html/feed/</wfw:commentRss>
<slash:comments>65</slash:comments>
</item>
</channel>
</rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 10/25 queries in 0.151 seconds using disk: basic
Object Caching 443/466 objects using disk: basic

Served from: www.cssreflex.com @ 2012-02-04 08:42:46 -->
