<?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 &#187; Web Development</title>
	<atom:link href="http://adaldesign.com/category/web-development/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>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>Bundling Plugins with Themes</title>
		<link>http://adaldesign.com/web-development/wordpress-web-development/bundling-plugins-themes</link>
		<comments>http://adaldesign.com/web-development/wordpress-web-development/bundling-plugins-themes#comments</comments>
		<pubDate>Fri, 11 Feb 2011 00:51:57 +0000</pubDate>
		<dc:creator>Adal Bermann</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[content management system]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[productivity]]></category>
		<category><![CDATA[templates]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://adaldesign.com/?p=826</guid>
		<description><![CDATA[Auto install plugins on theme activation.
This code will help you save time when building WordPress websites. Full instructions on usage, courtesy of the WPML.]]></description>
			<content:encoded><![CDATA[<h2>Auto install plugins on theme activation.</h2>
<p>My favorite way of building a website starts with installing the famous <a href="http://wordpress.org">wordpress.org</a> CMS on a <a href="http://www.bluehost.com/track/adaldesign/CODE52">bluehost.com</a> shared hosting server. For convenience, I maintain a library of legacy themes with key features enabled to use as templates that can be easily customized.</p>
<p>One of the actions I like to include &#8216;on activation&#8217;  in most cases is the <a href="http://codex.wordpress.org/Function_Reference/wp_insert_post">programmatic creation of a contact page</a>.</p>
<p>The other cool thing I love to do since made possible by the genius of WPML, is to auto install my favorite plugins automatically when displaying the theme for the first time. I can even decide which plugins to install in advance by editing a simple text file and adding/removing zip files from inside my theme folder.</p>
<p>To use this tool, simply follow the instructions provided by the <a href="http://wpml.org">creators of this code</a>:</p>
<h2>How to include <strong>plugins</strong> with themes?</h2>
<p>We’ve created a function that can be included in any <strong>theme</strong> which will automatically install and activate<strong>plugins</strong>. In order for this function to work correctly, the wp-contents/<strong>plugins</strong> directory must be writable by the web server (same requirement as for the auto-plugin update feature in WordPress).</p>
<h3>Add the function to your <strong>theme</strong></h3>
<p>Download the <a href="http://adaldesign.com/adaldesign/wp-content/uploads/2011/02/iclt-resources.zip">iclt-resources</a> code. This ZIP file includes the PHP functions that will extract and deploy the included <strong>plugins</strong>.</p>
<p>Unzip it and copy the folder ‘iclt-resources’ into the <strong>theme</strong> folder root.</p>
<h3>Include the <strong>plugins</strong> that need to be deployed</h3>
<ol>
<li>In the ‘functions.php’ file of the template add this line at the end:
<pre>include TEMPLATEPATH . '/iclt-resources/iclt-deploy.php';</pre>
</li>
<li>Add the <strong>plugins</strong> ZIP files in iclt-resources/iclt-<strong>plugins</strong></li>
<li>Add <strong>plugins</strong> information in iclt-resources/iclt-<strong>plugins</strong>/iclt-<strong>plugins</strong>.txt (on separate lines)
<pre>plugin-archive.zip &gt; [plugin-folder/]plugin-file.php</pre>
<ul>
<li>‘plugin-folder’ has to match the plugin folder name from the archive.</li>
<li>‘plugin-file.php’ is the name of the plugin ‘core’ file.</li>
</ul>
<p>e.g. for a one file plugin:</p>
<pre>plugin-archive.zip &gt; plugin-file.php</pre>
</li>
</ol>
<h2>How does it work?</h2>
<p>When a user activates a <strong>theme</strong> that has bundled functions, the <strong>theme</strong> will attempt to install and activate the included <strong>plugins</strong>. Install will happen when the <strong>theme</strong> is displayed for the first time by a logged-in administrator.</p>
<p>If the <strong>theme</strong> cannot write to the <strong>plugins</strong> folder, it will issue a warning. You can change the folder write permissions and try again (just refresh the page).</p>
<p>Once installed, the <strong>theme</strong> will not attempt to update or reinstall <strong>plugins</strong>. The user can use the standard WordPress plugin management to update the <strong>plugins</strong>.</p>
<h2>Good to know!</h2>
<p>If some of your theme&#8217;s code relies on certain plugins being activated to render properly, you must comment those sections out until the WPML&#8217;s code does it&#8217;s magic.</p>
<p>Feel free to leave any comments about this method, whether you like it or not.</p>
]]></content:encoded>
			<wfw:commentRss>http://adaldesign.com/web-development/wordpress-web-development/bundling-plugins-themes/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Template conditional display of custom Meta Fields in WP Page Edit</title>
		<link>http://adaldesign.com/web-development/unresolved/template-conditional-display-custom-meta-fields-wp-page-edit</link>
		<comments>http://adaldesign.com/web-development/unresolved/template-conditional-display-custom-meta-fields-wp-page-edit#comments</comments>
		<pubDate>Wed, 09 Feb 2011 02:28:20 +0000</pubDate>
		<dc:creator>Adal Bermann</dc:creator>
				<category><![CDATA[Unresolved]]></category>
		<category><![CDATA[conditional]]></category>
		<category><![CDATA[extending]]></category>
		<category><![CDATA[help]]></category>
		<category><![CDATA[meta fields]]></category>
		<category><![CDATA[options]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://adaldesign.com/?p=820</guid>
		<description><![CDATA[First of all, a huge Ola! to Steve Taylor&#8217;s WordPress Custom Fields plugin Steve created a plugin that gives developers the ability to customize the &#8220;meta fields&#8221; box in page/post edit. Trying to put pieces together from the information and links provided in the codex makes clear that this part of WordPress is simply under-developed. [...]]]></description>
			<content:encoded><![CDATA[<h2>First of all, a huge Ola! to Steve Taylor&#8217;s WordPress Custom Fields plugin</h2>
<p>Steve created a plugin that gives developers the ability to customize the &#8220;meta fields&#8221; box in page/post edit. Trying to put pieces together from the information and links provided in the codex makes clear that this part of WordPress is simply under-developed.</p>
<p>With his <a href="http://sltaylor.co.uk/wordpress/plugins/slt-custom-fields/">WordPress Custom Fields plugin</a>, Steve fills the gap and provides a tool to easily create custom fields that don&#8217;t intimidate the non-tech savvy.</p>
<p>Of course, as stated in his own post, the plugin is in beta, and there is one thing that still ain&#8217;t possible&#8230;</p>
<h2>How to conditionally display options based on which Page Template was chosen?</h2>
<p>I tried using Steve&#8217;s filter as such:</p>
<p><script src="http://pastebin.com/embed_js.php?i=U927ZrVT"></script></p>
<p>It is obvious though that this code won&#8217;t work because:</p>
<ul>
<li>You can&#8217;t test using the WordPress conditional tags inside a functions.php file&#8230;</li>
<li>Even if you could, this particular case has me testing for which page template is selected&#8230; INSIDE THE EDIT PAGE, not the front-end.</li>
</ul>
<p>So I guess question is really:</p>
<h2>How DO you determine which page template is chosen on the EDIT side of a page?</h2>
<p>Any suggestions are welcome!</p>
]]></content:encoded>
			<wfw:commentRss>http://adaldesign.com/web-development/unresolved/template-conditional-display-custom-meta-fields-wp-page-edit/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

