<?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>danielmiessler.com &#187; Web Design</title>
	<atom:link href="http://danielmiessler.com/categories/web-design/feed" rel="self" type="application/rss+xml" />
	<link>http://danielmiessler.com</link>
	<description>grep understanding</description>
	<lastBuildDate>Thu, 24 May 2012 04:36:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Searching For a New Font Color Palette</title>
		<link>http://danielmiessler.com/blog/searching-for-a-new-font-color-palette</link>
		<comments>http://danielmiessler.com/blog/searching-for-a-new-font-color-palette#comments</comments>
		<pubDate>Wed, 13 Aug 2008 05:28:10 +0000</pubDate>
		<dc:creator>Daniel Miessler</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://dmiessler.com/blog/searching-for-a-new-font-color-palette</guid>
		<description><![CDATA[My buddy Calvin just showed me a great resource for building color palettes. kuler.adobe.com Wicked nice. Related ContentHow to View Your Otherwise Invisible Flash CookiesAdobe Reader Updates, Evil &#8212; Same ThingHow To Keep Track Of Your Book CollectionKiller Color Scheme GeneratorA Wicked String]]></description>
			<content:encoded><![CDATA[<p style="text-align:center"><img src="http://dmiessler.com/wp-content/uploaded_content/2008/08/kuler-screenshot.png" alt="kuler_screenshot" /></p>

<p>My buddy <a href="http://mayhemstudios.com" title="Mayhem Studios">Calvin</a> just showed me a great resource for building color palettes.</p>

<p><a href="http://kuler.adobe.com/" title="kuler">kuler.adobe.com</a></p>

<p>Wicked nice.</p>
<div id="crp_related"><h3>Related Content</h3><ul><li><a href="http://danielmiessler.com/blog/how-to-view-your-otherwise-invisible-flash-cookies" rel="bookmark" class="crp_title">How to View Your Otherwise Invisible Flash Cookies</a></li><li><a href="http://danielmiessler.com/blog/adobe-reader-updates-evil-same-thing" rel="bookmark" class="crp_title">Adobe Reader Updates, Evil &#8212; Same Thing</a></li><li><a href="http://danielmiessler.com/blog/how-to-keep-track-of-your-book-collection" rel="bookmark" class="crp_title">How To Keep Track Of Your Book Collection</a></li><li><a href="http://danielmiessler.com/blog/killer-color-scheme-generator" rel="bookmark" class="crp_title">Killer Color Scheme Generator</a></li><li><a href="http://danielmiessler.com/blog/a-wicked-string" rel="bookmark" class="crp_title">A Wicked String</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://danielmiessler.com/blog/searching-for-a-new-font-color-palette/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Include WordPress Components in Your Custom Web Pages</title>
		<link>http://danielmiessler.com/blog/how-to-include-wordpress-components-in-your-custom-web-pages</link>
		<comments>http://danielmiessler.com/blog/how-to-include-wordpress-components-in-your-custom-web-pages#comments</comments>
		<pubDate>Sun, 27 Jul 2008 21:28:29 +0000</pubDate>
		<dc:creator>Daniel Miessler</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://dmiessler.com/blog/how-to-include-wordpress-components-in-your-custom-web-pages</guid>
		<description><![CDATA[Ever wanted to take a piece of WordPress functionality and put it in a non-WordPress portion of your website? Like, for example, pulling your WordPress Sidebar and dropping it into a custom page of yours? Well, here&#8217;s how to make it work. The Wrong Way Many have tried doing this simple include below and have [...]]]></description>
			<content:encoded><![CDATA[<p><center><img src="http://dmiessler.com/wp-content/uploaded_content/2008/07/wordpress-logo.jpeg" alt="wordpress_logo" /></center></p>

<p>Ever wanted to take a piece of <a href="http://wordpress.org/" title="WordPress &#8250; Blog Tool and Weblog Platform">WordPress</a> functionality and put it in a non-WordPress portion of your website? Like, for example, pulling your WordPress Sidebar and dropping it into a custom page of yours?</p>

<p>Well, here&#8217;s how to make it work.</p>

<h2>The Wrong Way</h2>

<p>Many have tried doing this simple include below and have met with failure. What they did was add the include by itself, like so:</p>

<p>[php]<?php wp_get_archives('type=monthly'); ?>[/php]</p>

<p>This ends in a fail whale because PHP doesn&#8217;t know what to do with that request. Within a WordPress page it&#8217;s fine because you already have the required headers loaded, but in your own custom web site they aren&#8217;t there.</p>

<p>So we&#8217;ll add them.</p>

<h2>The Right Way</h2>

<p>[php]<?php
    // turn off WordPress themes and include the WordPress core:
    define('WP_USE_THEMES', false);
    require($_SERVER['DOCUMENT_ROOT'] . '/wp-blog-header.php');
?></p>

<p><?php wp_get_archives('type=monthly'); ?>[/php]</p>

<p>If you include the WordPress blog header first (wp-blog-header.php) and <strong>then</strong> invoke the piece of code you want, you&#8217;ll be able to add WordPress functionality anywhere you want on your custom pages!</p>

<p>The code above (<a href="http://codex.wordpress.org/Template_Tags/wp_get_archives" title="Template Tags/wp get archives &laquo; WordPress Codex">get_archives</a>) allows me to display my entire blog archive on any page of mine I want &#8212; even outside of a WordPress-generated page.</p>

<p>This lets you get tons of functionality from WordPress, including:</p>

<ol>
<li>Get a list of all your links</li>
<li>Pull your tag cloud from your posts</li>
<li>Pull your WordPress sidebar into a page</li>
</ol>

<p>&#8230;and there are dozens more <a href="http://codex.wordpress.org/Category:Template_Tags" title="Category:Template Tags &laquo; WordPress Codex">here</a>.</p>

<p class="banner_ad">
<script type="text/javascript"><!--
google_ad_client = "pub-2677272500934866";
/* Blog_Content_468x60 */
google_ad_slot = "2329464279";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>

<p>This is how I have created the page you&#8217;re reading this on. The entire page is custom code; I only have a couple of pieces of WordPress embedded within it &#8212; <a href="http://codex.wordpress.org/The_Loop" title="The Loop &laquo; WordPress Codex">the loop</a>, and my archives toward the bottom on the right. This gives me the ability to seamlessly blend my WordPress content with my custom content at <a href="http://dmiessler.com/study/" title="dmiessler.com | study">dmiessler.com/study</a> and <a href="http://dmiessler.com/writing/infoseccerts/" title="dmiessler.com | writing | infoseccerts">dmiessler.com/writing</a>.</p>

<p>It&#8217;s the perfect combination &#8212; custom control + WordPress functionality.</p>

<p>Ping me at <a href="mailto:daniel@dmiessler.com?Subject="WordPress Components">daniel@dmiessler.com</a> with any questions&#8230;</p>

<h3>Links</h3>

<p>[ <a href="http://codex.wordpress.org/Template_Tags/wp_get_archives" title="Template Tags/wp get archives &laquo; WordPress Codex">WordPress's get_archives | wordpress.org</a> ]<br />
[ <a href="http://codex.wordpress.org/Template_Tags" title="Template Tags &laquo; WordPress Codex">WordPress Template Tags | wordpress.org</a> ]<br />
[ <a href="http://codex.wordpress.org/The_Loop" title="The Loop &laquo; WordPress Codex">The WordPress Loop | wordpress.org</a> ]<br />
[ <a href="http://codex.wordpress.org/" title="Main Page &laquo; WordPress Codex">The WordPress Codex | wordpress.org</a> ]</p>
<div id="crp_related"><h3>Related Content</h3><ul><li><a href="http://danielmiessler.com/blog/wordpress-25" rel="bookmark" class="crp_title">WordPress 2.5</a></li><li><a href="http://danielmiessler.com/blog/wordpress-23" rel="bookmark" class="crp_title">WordPress 2.3</a></li><li><a href="http://danielmiessler.com/blog/friendly-reminder-upgrade-your-wordpress" rel="bookmark" class="crp_title">Friendly Reminder: Upgrade Your WordPress</a></li><li><a href="http://danielmiessler.com/blog/fixed-my-comment-form-display-issue" rel="bookmark" class="crp_title">Fixed My Comment Form Display Issue</a></li><li><a href="http://danielmiessler.com/blog/wordpress-26-upgrade-complete" rel="bookmark" class="crp_title">WordPress 2.6 Upgrade Complete</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://danielmiessler.com/blog/how-to-include-wordpress-components-in-your-custom-web-pages/feed</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Theme Envy</title>
		<link>http://danielmiessler.com/blog/theme-envy</link>
		<comments>http://danielmiessler.com/blog/theme-envy#comments</comments>
		<pubDate>Thu, 05 Apr 2007 02:27:21 +0000</pubDate>
		<dc:creator>Daniel Miessler</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Geek]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://dmiessler.com/archives/1259</guid>
		<description><![CDATA[I&#8217;m starting to get that feeling again &#8212; the one where I want to redesign my site. I am going to resist the temptation for now, though, since I have other things going on. Here&#8217;s a look that struck me, though: Related ContentBlog Ego MapBig Changes AfootTheme III: SpeedBMW and SemacodeThe New Theme]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m starting to get that feeling again &#8212; the one where I want to redesign my site. I am going to resist the temptation for now, though, since I have other things going on. Here&#8217;s a look that struck me, though:</p>

<p style="text-align: center"><img src="http://dmiessler.com/images/theme_envy.png" title="theme_envy" alt="theme_envy" height="503" width="611" /></p>
<div id="crp_related"><h3>Related Content</h3><ul><li><a href="http://danielmiessler.com/blog/blog-ego-map" rel="bookmark" class="crp_title">Blog Ego Map</a></li><li><a href="http://danielmiessler.com/blog/big-changes-afoot" rel="bookmark" class="crp_title">Big Changes Afoot</a></li><li><a href="http://danielmiessler.com/blog/theme-iii-speed" rel="bookmark" class="crp_title">Theme III: Speed</a></li><li><a href="http://danielmiessler.com/blog/bmw-and-semacode" rel="bookmark" class="crp_title">BMW and Semacode</a></li><li><a href="http://danielmiessler.com/blog/the-new-theme" rel="bookmark" class="crp_title">The New Theme</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://danielmiessler.com/blog/theme-envy/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

