<?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>Adal Design</title>
	<atom:link href="http://adaldesign.com/feed" rel="self" type="application/rss+xml" />
	<link>http://adaldesign.com</link>
	<description>Websites. Design, Promotion &#38; Development</description>
	<lastBuildDate>Sat, 19 Nov 2011 04:18:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Responsive design with CSS3</title>
		<link>http://adaldesign.com/web-development/training/responsive-design-css3</link>
		<comments>http://adaldesign.com/web-development/training/responsive-design-css3#comments</comments>
		<pubDate>Sat, 19 Nov 2011 04:15:07 +0000</pubDate>
		<dc:creator>Adal Bermann</dc:creator>
				<category><![CDATA[Training]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[responsive]]></category>

		<guid isPermaLink="false">http://adaldesign.com/?p=1008</guid>
		<description><![CDATA[Using media queries, we can define exceptions to the general 1024px+ screen size. This method is tested and true, and ready for some simple copy-pasting action in your existing theme.]]></description>
			<content:encoded><![CDATA[<p>CSS3 is absolutely fabulous and allows companies like Adal Design to provide always better websites to their clients, in this case by building sites that display optimized in different screen sizes.</p>
<h2>Using media queries, we can define exceptions to the general 1024px+ screen size:</h2>
<p>&nbsp;</p>
<pre>/* Smartphones ----------- */
@media only screen and (max-device-width : 768px),
       only screen and (max-width : 768px) {
	element.class { rule: value; }
	...
}

/* ipads (portrait) ----------- */
@media only screen and (min-device-width : 768px) and (max-device-width : 1000px),
       only screen and (min-width : 768px) and (max-width : 1000px) {
	element.class { rule: value; }
	...
}

/* iPhone 4 ----------- */
@media only screen and (-webkit-min-device-pixel-ratio : 1.5),
       only screen and (min-device-pixel-ratio : 1.5) {
	element.class { rule: value; }
	...
}</pre>
<h2>You might also want to load an entire style-sheet conditionally, why not based on page (with php) AND screen size (@media):</h2>
<p>&nbsp;</p>
<pre>&lt;?php if( is_page(99)) { ?&gt;
  &lt;link rel="stylesheet" media="only screen and (max-width: 768px),
     only screen and (max-device-width: 768px)"
     href="css/mobile.css" /&gt;
&lt;?php } ?&gt;</pre>
<h2>Finally, place this meta tag for androit 2.2 (don&#8217;t ask):</h2>
<p>&nbsp;</p>
<pre>&lt;meta name="viewport" content="width=device-width" /&gt;</pre>
<p>&nbsp;</p>
<p>There are a lot of posts sharing methods to do this, but few really work. Try this one, it worked for me!</p>
]]></content:encoded>
			<wfw:commentRss>http://adaldesign.com/web-development/training/responsive-design-css3/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using WP 3+ menus in your theme</title>
		<link>http://adaldesign.com/web-development/wordpress-web-development/wp-3-menus-theme</link>
		<comments>http://adaldesign.com/web-development/wordpress-web-development/wp-3-menus-theme#comments</comments>
		<pubDate>Thu, 10 Nov 2011 22:30:04 +0000</pubDate>
		<dc:creator>Adal Bermann</dc:creator>
				<category><![CDATA[Training]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://adaldesign.com/?p=1005</guid>
		<description><![CDATA[Register the menu location: Set the location in the theme Then make sure to assign the menu in WP admin and create your menu there. This article has more details&#8230; and google has much more.]]></description>
			<content:encoded><![CDATA[<h3>Register the menu location:</h3>
<p><script src="http://snipt.org/embed/Hyn4"></script></p>
<h3>Set the location in the theme</h3>
<p><script src="http://snipt.org/embed/HHh0"></script></p>
<p>Then make sure to assign the menu in WP admin and create your menu there.<br />
This <a href="http://4coder.info/en/blog/2010/using-wp3-menu/" title="WP 3 menu code" target="_blank">article</a> has more details&#8230; and <a href="https://www.google.com/search?aq=f&#038;gcx=w&#038;ix=c2&#038;sourceid=chrome&#038;ie=UTF-8&#038;q=wp+3+menus" title="Google WP menus" target="_blank">google</a> has much more.</p>
]]></content:encoded>
			<wfw:commentRss>http://adaldesign.com/web-development/wordpress-web-development/wp-3-menus-theme/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Query and display content from other pages / posts</title>
		<link>http://adaldesign.com/web-development/wordpress-web-development/query-display-content-pages-posts</link>
		<comments>http://adaldesign.com/web-development/wordpress-web-development/query-display-content-pages-posts#comments</comments>
		<pubDate>Thu, 10 Nov 2011 22:14:07 +0000</pubDate>
		<dc:creator>Adal Bermann</dc:creator>
				<category><![CDATA[Training]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://adaldesign.com/?p=1000</guid>
		<description><![CDATA[Find and display first attachment of children pages as links to those pages (album style) New query on regular page to display links to recent posts Also read up on WP_Query, get_post_meta and the_post_thumbnail.]]></description>
			<content:encoded><![CDATA[<h3>Find and display first attachment of children pages as links to those pages (album style)</h3>
<p><script src="http://snipt.org/embed/Htn0"></script></p>
<h3>New query on regular page to display links to recent posts</h3>
<p><script src="http://snipt.org/embed/Hwp8"></script></p>
<p>Also read up on <a href="http://codex.wordpress.org/Class_Reference/WP_Query" title="WP Query" target="_blank">WP_Query</a>, <a href="http://codex.wordpress.org/Function_Reference/get_post_meta" title="Get Post Meta WP" target="_blank">get_post_meta</a> and <a href="http://codex.wordpress.org/Function_Reference/the_post_thumbnail" title="The Post Thumbnail WP" target="_blank">the_post_thumbnail</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://adaldesign.com/web-development/wordpress-web-development/query-display-content-pages-posts/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>choosing a development desktop</title>
		<link>http://adaldesign.com/uncategorized/choosing-development-desktop</link>
		<comments>http://adaldesign.com/uncategorized/choosing-development-desktop#comments</comments>
		<pubDate>Wed, 05 Oct 2011 21:32:14 +0000</pubDate>
		<dc:creator>Adal Bermann</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://adaldesign.com/?p=990</guid>
		<description><![CDATA[Hey Susan, I need a computer to run a dual screen setup (2 x 1600&#215;1200). I will be using Dreamweaver (or Aptana), Photoshop, Illustrator and multiple browsers simultaneously on a regular basis. I kind of like Dell, so the computers I&#8217;m looking at are from that company but I&#8217;m open. My budget is $1000 max [...]]]></description>
			<content:encoded><![CDATA[<p>Hey Susan,</p>
<p>I need a computer to run a dual screen setup (2 x 1600&#215;1200).</p>
<p>I will be using Dreamweaver (or Aptana), Photoshop, Illustrator and multiple browsers simultaneously on a regular basis.</p>
<p>I kind of like Dell, so the computers I&#8217;m looking at are from that company but I&#8217;m open.</p>
<p>My budget is $1000 max</p>
<p>&nbsp;</p>
<p>In the Small Business section</p>
<p><a href="http://adaldesign.com/adaldesign/wp-content/uploads/2011/10/computer_comparison.pdf">Dell Optiplex 790 and Precision T3500 companrison</a></p>
<p>&nbsp;</p>
<p>In the Home Office section</p>
<p><a href="http://adaldesign.com/adaldesign/wp-content/uploads/2011/10/XPS_8300.pdf">Dell XPS_8300</a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Thanks for taking a look Susan!</p>
]]></content:encoded>
			<wfw:commentRss>http://adaldesign.com/uncategorized/choosing-development-desktop/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving WordPress websites to a new server and domain</title>
		<link>http://adaldesign.com/web-development/training/move-wordpress-website-server-domain</link>
		<comments>http://adaldesign.com/web-development/training/move-wordpress-website-server-domain#comments</comments>
		<pubDate>Tue, 04 Oct 2011 00:38:44 +0000</pubDate>
		<dc:creator>Adal Bermann</dc:creator>
				<category><![CDATA[Training]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[move]]></category>
		<category><![CDATA[transfer]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://adaldesign.com/?p=987</guid>
		<description><![CDATA[Moving a WordPress website from one server to another can be complicated, especially under a different domain. These steps and resources should help make things better.]]></description>
			<content:encoded><![CDATA[<p>Shortly put, to move a WordPress website to an entirely new server, under a new domain&#8230;</p>
<ol>
<li>Download a backup of all the wp-content folder with FTP.</li>
<li>Download a backup of the entire database with phpMyAdmin</li>
<li>Create a new WordPress site on your new server (hopefully using ActionScript).</li>
<li>FTP up the wp-content folder contents to the new server.</li>
<li>Open the SQL database backup with a text editor like NotePad++</li>
<li>Find and Replace all occurrences of the old domain (http://olddomain.com/) with the new domain (http://newdomain.com/)</li>
<li>Import the database using phpMyAdmin</li>
<li>Refresh the Theme and the Permalinks.</li>
<li>Test, test, test!</li>
</ol>
<div>Steve Taylor took a little more time to describe this process in detail:</div>
<div><a href="http://sltaylor.co.uk/blog/moving-wordpress-new-domain-server/">http://sltaylor.co.uk/blog/moving-wordpress-new-domain-server/</a></div>
<div>Also, if you can, try to use the <a title="Move Plugin" href="http://wordpress.org/extend/plugins/wordpress-move/">Move plugin</a>.</div>
]]></content:encoded>
			<wfw:commentRss>http://adaldesign.com/web-development/training/move-wordpress-website-server-domain/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Simple Master-Child pages</title>
		<link>http://adaldesign.com/web-development/wordpress-web-development/simple-master-child-pages</link>
		<comments>http://adaldesign.com/web-development/wordpress-web-development/simple-master-child-pages#comments</comments>
		<pubDate>Mon, 26 Sep 2011 23:01:39 +0000</pubDate>
		<dc:creator>Adal Bermann</dc:creator>
				<category><![CDATA[Training]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://adaldesign.com/?p=972</guid>
		<description><![CDATA[When using WordPress as a CMS, Adal Design wants to insure that it is simple for clients to update their website. One frequent feature that often comes up in website development is the need for Master-Children pages other than those automatically provided by WordPress blogging. Let&#8217;s image a client wants a Team page with a master [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>When using WordPress as a CMS, Adal Design wants to insure that it is <em>simple for clients to update their website</em>. One frequent feature that often comes up in website development is the need for Master-Children pages other than those automatically provided by WordPress blogging.</p></blockquote>
<p>Let&#8217;s image a client wants a Team page with a master page containing a list of team member thumbnails and names, each linking to the child page containing a larger image and a Bio. We want to deliver a site in which the client only inputs the image, bio and name once, having the navigation and master page updated automatically.</p>
<p>It can be tempting to use Posts for children pages and modify index.php to generate our master page. That would work fine, but then we lose the ability to <em>implement a blog</em> on the site.</p>
<h3>2 solid solutions to creating our Master-Child Team section:</h3>
<ul>
<li>Using Custom Post Types.<br />
This solution is the most solid, however it requires slightly more setup time.</li>
<li>Coding a smart pageTemplate.php<br />
This solution will be quick to implement and is OK for small sites.</li>
</ul>
<h2>Creating a pageTeam.php Page Template</h2>
<p>First, note that we didn&#8217;t name the file teamPage.php for alphabetical reasons.</p>
<p>We want to create a child page that looks like this:</p>
<p><a href="http://adaldesign.com/adaldesign/wp-content/uploads/2011/09/master-chid-team.png"><img class="alignnone size-medium wp-image-973" title="Team page with master-child setup" src="http://adaldesign.com/adaldesign/wp-content/uploads/2011/09/master-chid-team-300x209.png" alt="" width="300" height="209" /></a></p>
<h3>What&#8217;s the functionality here?</h3>
<p>The title at the top left will be same on each page, as well as the thumbnails linking to the various different team members.</p>
<p>However the content box in the middle and the image to the right will be specific to the child page (team member) we are viewing.</p>
<h3>In WordPress English please&#8230;</h3>
<p>There is only one pageTeam.php page template.</p>
<p>It calls the parent page&#8217;s page title, followed by a list of child small &#8216;post thumbnails&#8217; linking to those child pages below.</p>
<p>In the middle it calls the_content() of the child page.</p>
<p>To the right, it calls a larger version of the post thumbnail.</p>
<h3>How about some CODE?</h3>
<p>1/ Register two image sizes in functions.php:</p>
<pre>if ( function_exists( 'add_image_size' ) ) add_theme_support( 'post-thumbnails' );
if ( function_exists( 'add_image_size' ) ) {
  add_image_size( 'team-thumb', 50, 75, true );      // this one is cropped
  add_image_size( 'team-large', 200, 300, false ); // this one is resized
}</pre>
<p>2/ In pageTeam.php, echo the parent page title, the children page thumbnails with links, and the current page&#8217;s content and large thumb.</p>
<p>Assuming the parent&#8217;s page ID is 16&#8230;</p>
<pre>// Echo the Section Title (Using Parent Page Title) and hard code text
&lt;h1 class="pageTitle"&gt;&lt;?php echo get_the_title(16) ?&gt;&lt;/h1&gt;
&lt;p&gt;Click on a teacher below to read a bio:&lt;/p&gt;

// Echo list of thumb links to children
&lt;?php $pages = get_pages(array('child_of' =&gt; 16)); ?&gt;
  &lt;?php foreach ($pages as $page): ?&gt;
     &lt;?php if ( has_post_thumbnail($page-&gt;ID)) {
     echo '&lt;a href="' . get_permalink( $page-&gt;ID ) . '" title="' . esc_attr( $page-&gt;post_title ) . '"&gt;';
     echo get_the_post_thumbnail($page-&gt;ID, 'team-thumb');
     echo '&lt;/a&gt;';
     } ?&gt;
  &lt;?php endforeach; ?&gt;

// Call the content
&lt;div class="entry"&gt;
  &lt;?php the_content(); ?&gt;
&lt;/div&gt;

// Call the featured image (large)
&lt;?php echo get_the_post_thumbnail($id, 'team-large', array('class' =&gt; 'team-large-image')); ?&gt;</pre>
<h3>Now use your smarts, write any necessary extra HTML and CSS and create those child pages.</h3>
<p>Don&#8217;t forget: the way we coded will require that every child page is assigned a post thumbnail. But no need to open Photoshop, WordPress will be doing all the cropping.</p>
]]></content:encoded>
			<wfw:commentRss>http://adaldesign.com/web-development/wordpress-web-development/simple-master-child-pages/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>9 reasons to switch from Drupal to WordPress</title>
		<link>http://adaldesign.com/business/wordpress-better-cms-than-drupal</link>
		<comments>http://adaldesign.com/business/wordpress-better-cms-than-drupal#comments</comments>
		<pubDate>Mon, 26 Sep 2011 08:29:45 +0000</pubDate>
		<dc:creator>Adal Bermann</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://adaldesign.com/business/9-reasons-to-switch-from-drupal-to-wordpress-poynter</guid>
		<description><![CDATA[The webmaster of web100.com wrote about how his personal experience made him decide on using WordPress as his Content Management System over Drupal. Top benefits cited include: An overall easier experience, especially for non-developers. A more friendly, diverse community. A more cost effective solution to web publishing and content management. You can read the full [...]]]></description>
			<content:encoded><![CDATA[<p>The webmaster of web100.com wrote about how his personal experience made him decide on using WordPress as his Content Management System over Drupal.</p>
<h2>Top benefits cited include:</h2>
<ul>
<li>An overall easier experience, especially for non-developers.</li>
<li>A more friendly, diverse community.</li>
<li>A more cost effective solution to web publishing and content management.</li>
</ul>
<div>You can read the full article here:</div>
<div><a href="http://www.poynter.org/how-tos/digital-strategies/144404/9-reasons-to-switch-from-drupal-to-wordpress/">http://www.poynter.org/how-tos/digital-strategies/144404/9-reasons-to-switch-from-drupal-to-wordpress/</a></div>
]]></content:encoded>
			<wfw:commentRss>http://adaldesign.com/business/wordpress-better-cms-than-drupal/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom Field Template manual and help guide</title>
		<link>http://adaldesign.com/web-development/training/custom-field-template-manual-help-guide</link>
		<comments>http://adaldesign.com/web-development/training/custom-field-template-manual-help-guide#comments</comments>
		<pubDate>Fri, 23 Sep 2011 23:48:49 +0000</pubDate>
		<dc:creator>Adal Bermann</dc:creator>
				<category><![CDATA[Training]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[custom fields]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[help]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://adaldesign.com/?p=946</guid>
		<description><![CDATA[Custom fields allow users to save extra data in a page. With the use of get_the_meta() and pageTemplates.php, we can then echo that extra content however we please.
This awesome solution is made 10x better by the fabulous plugin: Custom Field Template.]]></description>
			<content:encoded><![CDATA[<p>At Adal Design, we take graphic designs and turn them into client-proof, <em>easily editable websites</em> by creating custom themes and customizing the WordPress CMS platform.</p>
<p>One challenge is to place content in different content boxes on a single page, to which there are 3 popular solutions:</p>
<ul>
<li>Switch to HTML view in the content box and place custom HTML and CSS.<br />
This method is terrible for the client because changing the content means potentially breaking the page&#8217;s layout and style. It&#8217;s by far the worst solution, sadly employed by many WordPress developers.</li>
<li>Engineer complex sidebar and widget trickery.<br />
I&#8217;ve seen many themes that have dozens of sidebars registered to accomplish this task. It&#8217;s confusing for the client and takes long to set up. Sidebars should be used for exactly what their name suggests.</li>
<li>Use <em>custom fields </em>and<em> page templates</em>.<br />
Custom fields allow users to save extra data in a page. With the use of get_the_meta() and pageTemplates.php, we can then echo that extra content however we please.<br />
This awesome solution is made 10x better by the fabulous plugin: <a title="Custom Field Template - WordPress plugin" href="http://wordpress.org/extend/plugins/custom-field-template/" target="_blank">Custom Field Template</a>.</li>
</ul>
<p><span id="more-946"></span></p>
<h2>The concept behind the custom fields method.</h2>
<p>The whole point of using <a title="WordPress codex - Custom Fields" href="http://codex.wordpress.org/Custom_Fields" target="_blank">custom fields</a> is so that we can avoid placing important HTML in WordPress page content.</p>
<p>I often see <em>WordPress developers</em> placing  a <strong>&lt;div class=&#8221;top-content-box&#8221;&gt;</strong> and a <strong>&lt;div class=&#8221;left-content-box&#8221;&gt;</strong> directly in the content box using HTML edit mode. Instead, you should look at the amount of &#8216;content zones&#8217; the page has and create as many custom fields (minus the main content zone that should use the_content() of the main content box). So instead of the HTML example above we would have two custom fields named <strong>top-content-box </strong>and <strong>left-content-box.</strong></p>
<p>Then create a new pageTemplate.php, and place your divs with unique ID&#8217;s and classes there.</p>
<blockquote><p>This ties into the wider concept of using page templates to write custom HTML, instead of placing it in WordPress page content: the most important concept to <em>use WordPress as a high-end CMS</em>.</p>
<p>Otherwise it will be confusing for the client trying to understand where his content is going to display. Remember: these sites must be editable by <em>people who do not understand HTML</em> and web publishing in general.</p></blockquote>
<p>So do not hesitate to create several new pageTemplates.php in the theme if necessary to obtain the same results without placing HTML in the custom fields or content boxes in WordPress.</p>
<p>In <strong>some</strong> situations, you can differentiate how the page layout displays using smart CSS rather than creating a new page template, for example if there are two pages with the same amount of content boxes, but a slight difference in their position or background color.</p>
<h2>How to use the Custom Fields Template plugin</h2>
<h3>Install the plugin</h3>
<p>This part is easy:</p>
<ul>
<li>In WordPress, go to Plugins &gt; Add New</li>
<li>Search for Custom Field Template</li>
<li>It should come up first. Click Install Now.</li>
<li>Activate the plugin.</li>
</ul>
<p>Now take a quick look to better understand</p>
<p>Edit ANY page on your site. Make sure that <em>custom fields</em> are made visible in the screen settings.<br />
You now see a custom form instead of custom fields&#8230; this is an example of what we can accomplish.</p>
<h3>Create a custom field template<br />
Example 1: adding two more content boxes using a textarea field type</h3>
<p>Now navigate to the plugin settings in Settings &gt; Custom Field Template</p>
<p>Here we are going to edit the default Template #0</p>
<p>This default template is already populated with some example form fields. Take a few minutes to look at them and realize how they generate the form that you saw in the previous step.</p>
<p>For the purpose of this lesson, we will create the fields described above. Erase everything and paste the following:</p>
<pre>[top-content-box]
type = textarea
rows = 20
cols = 40
tinyMCE = true
htmlEditor = true

[left-content-box]
type = textarea
rows = 20
cols = 40
tinyMCE = true
htmlEditor = true</pre>
<p>The short code is fairly self-explanatory: we created two separate content boxes as custom fields.</p>
<pre>[left-content-box]  // this is the [custom field name]
type = textarea     // this determines the type of form field
rows = 20           // vertical size of textarea
cols = 40           // horizontal size
tinyMCE = true      // textarea only: this enables the tinyMCE editing buttons
htmlEditor = true   // textarea only: this enables the Visual / HTML toggle button</pre>
<p>Now all pages basically have 2 <em>extra content boxes</em>!</p>
<p>With this plugin, you can easily<em> control where the custom field template appears</em>: only posts, only pages, only pages using a specific pageTemplate.php or even only certain custom post types. It&#8217;s that&#8217;s powerful.</p>
<p>For our purpose, click on the link that says &#8220;Page Template file name(s) (comma-deliminated):&#8221; just above where we created our textareas. In the text field that appears, type <strong>pageTemplate.php</strong></p>
<p>You can now click the big blue Update Options button to save.</p>
<h3>Echo the textarea custom field in a page template</h3>
<p>Now let&#8217;s <a title="How to create page templates" href="http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates" target="_blank">create a new page template</a>, that will have the file-name <strong>pageTemplate.php</strong> - this is case sensitive!</p>
<p>Wherever you see fit in the HTML structure, place these snippets of <em>WordPress specific PHP</em>:</p>
<pre>&lt;?php if ( get_post_meta($post-&gt;ID, 'top-content-box', true) ) { ?&gt;
     	&lt;div class="right-content-box"&gt;
&lt;?php echo apply_filters('the_content', get_post_meta($post-&gt;ID, 'top-content-box', true)); ?&gt;
        &lt;/div&gt;
&lt;?php } ?&gt;</pre>
<p>&#8230;and&#8230;</p>
<pre>&lt;?php if ( get_post_meta($post-&gt;ID, 'right-content-box', true) ) { ?&gt;
     	&lt;div class="right-content-box"&gt;
&lt;?php echo apply_filters('the_content', get_post_meta($post-&gt;ID, 'right-content-box', true)); ?&gt;
        &lt;/div&gt;
&lt;?php } ?&gt;</pre>
<p>Now your page template will look for those custom fields, and if they have content, it will echo that content, wrapping them in &lt;div&gt; elements with a unique class to distinguish them.</p>
<p>Note that we are echoing the custom field with this line:</p>
<pre>&lt;?php echo apply_filters('the_content', get_post_meta($post-&gt;ID, 'right-content-box', true)); ?&gt;</pre>
<p>We are applying the same filters as for <strong>the_content()</strong> template tag so that autop and everything else works the same&#8230; the clients doesn&#8217;t see a difference.</p>
<p>If we were working with a different type of form field type, like &#8216;text&#8217; or &#8216;file&#8217; things would be different, but we will cover that further down. For now, let&#8217;s bring our example to completion.</p>
<h3>Test some content and live-edit your CSS</h3>
<p>Now go edit some Sample Page in WordPress:</p>
<ul>
<li>Go to Pages &gt; Sample Page &gt; Edit</li>
<li>Set the page template to our <strong>Page Template</strong></li>
<li>You will see two new content boxes in the &#8220;Custom Field Template&#8221; area below the content box, instead of the default form we saw after first activating the plugin</li>
<li>In the <strong>top-content-box</strong> box, type &#8220;This is the top content box&#8221;</li>
<li>In the <strong>right-content-box</strong> box, type &#8220;This is the right content box&#8221;</li>
<li>Save your page and view it</li>
</ul>
<p>You should now see two lines of text, respectively &#8221;This is the top content box&#8221;, and &#8221;This is the right content box&#8221;.<br />
Now use <a title="Get Firebug for firefox" href="getfirebug.com">firebug</a> or the <a title="Edit CSS with Chrome Element Inspector" href="http://code.google.com/chrome/devtools/docs/elements-styles.html" target="_blank">chrome element inspector</a> to live-edit your CSS and make things look the way they should!</p>
<h3>Example 2: Adding an extra featured image using a file type field</h3>
<p>Something that comes up every now and then is the need for more than one featured image. One of the advantages of <em>featured images</em>, is that you can <a title="Add an image size" href="http://codex.wordpress.org/Function_Reference/add_image_size" target="_blank">register a custom image size</a> in <strong>functions.php</strong> and then echo the post thumbnail (just another term for featured image) at the size you registered.</p>
<p>This way WordPress does the cropping/re-sizing for your client automatically, and with custom page templates and CSS, the theme places it exactly where it belongs.</p>
<p>Using <em>custom field template</em> you can take advantage of this amazing functionality, for <strong>more than one featured image</strong>.</p>
<h4>The process is almost the same as above.</h4>
<p>Start by creating a new custom field template (if you are following this tutorial, use Template#1), and paste this short code in:</p>
<pre>[second-featured-image]
type = file</pre>
<p>Then create the <strong>pageWithTwoFeaturedImages.php</strong> page template, and inside it paste:</p>
<pre>&lt;?php
   $second-featured-image = get_post_meta($post-&gt;ID, 'second-featured-image', true));
   if ( $second-featured-image != '' ) {
?&gt; 
&lt;div class="second-featured-image"&gt;
   &lt;?php echo wp_get_attachment_image($second-featured-image, 'custom-image-size'); ?&gt;
&lt;/div&gt;
&lt;?php } ?&gt;</pre>
<h3>Using multiple custom fields</h3>
<p>With the <em>custom field template</em> plugin, you can create duplicate-able custom fields. This is very useful for example to create multiple slides on a page without having to register a custom post type the way Woo Themes does.</p>
<p>There is already an amazing article written on <a title="Multiple fields with custom field template" href="http://www.kevinleary.net/multiple-fields-groups-wordpress-custom-field-template-plugin/" target="_blank">multiple custom fields</a>, one of the only other well-written posts about the plugin, so I will simply send you there.</p>
<p>&nbsp;</p>
<h2>Other great posts written on the subject:</h2>
<p><a href="http://www.kevinleary.net/advanced-content-management-wordpress-custom-field-templates/">http://www.kevinleary.net/advanced-content-management-wordpress-custom-field-templates/</a></p>
<p><a href="http://www.kevinleary.net/multiple-fields-groups-wordpress-custom-field-template-plugin/">http://www.kevinleary.net/multiple-fields-groups-wordpress-custom-field-template-plugin/</a></p>
<p><a href="http://www.kevinleary.net/7-ways-create-custom-write-panels-meta-boxes-wordpress/">http://www.kevinleary.net/7-ways-create-custom-write-panels-meta-boxes-wordpress/</a></p>
<p>I hope this article helped you, and if you work for Adal Design, start implementing today!</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://adaldesign.com/web-development/training/custom-field-template-manual-help-guide/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use smarter CSS rather than precise HTML</title>
		<link>http://adaldesign.com/web-development/training/smarter-css-precise-html</link>
		<comments>http://adaldesign.com/web-development/training/smarter-css-precise-html#comments</comments>
		<pubDate>Fri, 23 Sep 2011 21:19:08 +0000</pubDate>
		<dc:creator>Adal Bermann</dc:creator>
				<category><![CDATA[Training]]></category>
		<category><![CDATA[best practices]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://adaldesign.com/?p=947</guid>
		<description><![CDATA[Never place layout HTML in the content box Because we want everything to work seamlessly for the client who doesn&#8217;t know HTML, we should focus on CSS instead when customizing the display of content in WordPress. This is the old concept of separating content (HTML) from design (CSS) applied to using WordPress as a CMS. [...]]]></description>
			<content:encoded><![CDATA[<h2>Never place layout HTML in the content box</h2>
<blockquote><p>Because we want everything to work seamlessly for the client who doesn&#8217;t know HTML, we should focus on CSS instead when customizing the display of content in WordPress. This is the old concept of <em>separating content (HTML) from design (CSS)</em> applied to using <em>WordPress as a CMS</em>.</p></blockquote>
<p>For example, we don&#8217;t want to place a <strong>class=&#8221;left-content-box&#8221;</strong> in an HTML tag in the page content. If the client erases this content and puts something else, he will never be able to make it look the same.</p>
<p>Instead of this:</p>
<pre>HTML:   &lt;h2&gt;Bigger text&lt;/h2&gt;</pre>
<pre>CSS:    h2.left-content-box { font-size: 120%; }</pre>
<p>Try this:</p>
<pre>HTML:   &lt;div class="left-content-box"&gt;&lt;h2&gt;Bigger text&lt;/h2&gt;&lt;/div&gt;</pre>
<pre>CSS:    div.left-content-box h2 { font-size: 120%; }</pre>
<p>This way, the client can easily change content without losing styling.<br />
The bottom line is that we want these websites to be fool-proof and future-proof.</p>
<h2>Deciding between a new pageTemplate.php or more CSS rules for different pages</h2>
<blockquote><p>Something I will keep repeating constantly: CSS is more powerful than HTML for styling.</p></blockquote>
<h3>So we&#8217;ve already learnt to remove HTML from the content boxes which is good progress.<br />
Instead we start writing more CSS rules in styles.css.<br />
Now nothing is stopping you to write a little more CSS to distinguish some pages from each other even if they are using the same page template.</h3>
<p>For example:</p>
<pre>body.page-template-pagetwocolumns-php.page-id-86 #left-design-pages h1
  { padding-left: 30px; }</pre>
<p>This will move the the header more to the right, on a given page, without creating a new page template.</p>
<h3>It comes down a decision:</h3>
<ul>
<li>Does this page deserve an entirely different page template?<br />
<em>It has a very different layout, more content boxes, custom functionality.</em></li>
<li>Or simply some extra precise CSS rules?<br />
<em>There are a few changes just for style, there will be only one page that looks EXACTLY like it.</em></li>
</ul>
<p>In the theme framework I use, and many others, there are so many distinguishing ID&#8217;s and CLASSes you can use to customize your CSS.<br />
Be careful not to delete them, they often look similar to this:</p>
<pre>&lt;div <span style="color: #ff0000;">id="post-&lt;?php the_ID(); ?&gt;"</span>&gt;</pre>
<p>They are used to give each post a unique ID for custom CSS styling.</p>
]]></content:encoded>
			<wfw:commentRss>http://adaldesign.com/web-development/training/smarter-css-precise-html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Online Business Tools</title>
		<link>http://adaldesign.com/business/online-business-tools</link>
		<comments>http://adaldesign.com/business/online-business-tools#comments</comments>
		<pubDate>Fri, 09 Sep 2011 18:55:42 +0000</pubDate>
		<dc:creator>Adal Bermann</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[apps]]></category>
		<category><![CDATA[could]]></category>
		<category><![CDATA[productivity]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://adaldesign.com/?p=925</guid>
		<description><![CDATA[This is a list of 'software as service' Business tools that will help you automate and organize your business without having to learn or install complicated software.]]></description>
			<content:encoded><![CDATA[<h2>Recently I was asked to share my favorite business tools with a networking group I attend weekly. So I compiled this list of <strong>online business tools I couldn&#8217;t live without</strong>.</h2>
<p>All of these tools have helped keep me organized and more productive. So here goes:</p>
<h2><a href="http://www.getharvest.com/">Harvest</a></h2>
<p>This website allows you sign up for the &#8220;Harvest&#8221; online application (software as service). It is an AMAZING time tracking, billing and reports system. From collecting retainers to tracking project progress and business income, this tool is very easy to use and convenient. It also comes with all sorts of integrations with other technologies. Starting price for 1 user and unlimited clients is $12/mth</p>
<h2><a href="http://outright.com/">OutRight</a></h2>
<p>This website also offers a software as service solution, for finances this time. I connects with your online banking portal and extracts data. The end result is a self-generated visual report on Profit/Loss as well as the ability to easily categorize all your income and expenses&#8230; leading to a self-calculated amount of taxes due (quarterly or yearly). This tool can also be used to connect with your harvest account, but I personally prefer connecting it directly to my business bank account. Starting price is $10/mth.</p>
<h2><a href="http://www.google.com/apps/intl/en/business/index.html">Google Apps</a></h2>
<p>Google apps for business is just about the most affordable, reliable and flexible solution for business email, calendars, documents and a whole bunch more. From using Gmail for you @mydomain.com account to collaborating in real time on the writing of a document, it&#8217;s a priceless resource for tech-savvy business owners. I couldn&#8217;t live without it (or my android phone for that sake). Single user is free&#8230; business solutions start at $50/yr/user.</p>
<h2><a href="http://insight.ly/">Insightly</a></h2>
<p>Another software as service solution (like all above), this time for CRM and project management. There are two things I really like about this app. The first is that it offers, without the complication of something heavy like salesforce, a ton of functionalities that would normally be obtained by using several, non integrated solutions. Opportunity tracking, project tracking, email and attachments archiving, to do task lists (with the ability to create task sets and pipelines) and client database. It allows you to track all these things as well as all sorts of meta data to easily search through them. The other thing that I just LOVE about this app, is that it integrates SO WELL with Gmail and Google calendar. You can literally do your project management within Gmail. You get an email referral and just click the &#8220;save opportunity&#8221; button and enter the estimated price, chance of winning, close date etc right there and then. Same for tasks. Basic plan is free.</p>
<h2><a href="https://manymoon.com/">ManyMoon</a></h2>
<p>An alternative to Insightly, Manymoon is more project management focused, so it offers a narrower business solution, but what it does, it does smoothly. It&#8217;s like basecamp but way nicer. It also integrates pretty darn well with Gmail. Basic plan is free.</p>
<h2><a title="Amazing Project Management Application" href="http://trello.com/" target="_blank">Trello</a></h2>
<p>I don&#8217;t even know where to start to describe the awesomeness of this web application I just discovered.<br />
It is by far the most intuitive and fast application I have ever used in a browser. Though it has the limitations due to lack of maturity, what it brings to the table in terms of project organization and collaboration is revolutionary. You can literally click and drag cards through a pipeline, like swiping on your iThing.<br />
Perfect for sales pipelines, large scope project management and much more. A gem to follow.</p>
<h3>What I love about all these tools?</h3>
<div>
<ul>
<li>They are cheap or free.</li>
<li>They are all in the cloud, so you can access your data securely from ANY computer at ANY time or place, and if your own computer dies of cancer, your business is UNTOUCHED. You can just buy another laptop and keep working the same day.</li>
<li>They integrate really well with each other, so you don&#8217;t need to worry about compatibility issues.</li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://adaldesign.com/business/online-business-tools/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 1.027 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-02-07 22:05:44 -->

