<?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>Webtiller Designs</title>
	<atom:link href="http://webtillerdesigns.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://webtillerdesigns.com</link>
	<description>Website Design and Development</description>
	<lastBuildDate>Mon, 23 Jan 2012 17:35:46 +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>Custom Fields for Category</title>
		<link>http://webtillerdesigns.com/custom-fields-for-category/</link>
		<comments>http://webtillerdesigns.com/custom-fields-for-category/#comments</comments>
		<pubDate>Sat, 29 Oct 2011 20:09:43 +0000</pubDate>
		<dc:creator>Designers</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://webtillerdesigns.com/?p=1047</guid>
		<description><![CDATA[//add extra fields to category edit form hook add_action ( 'edit_category_form_fields', 'extra_category_fields'); //add extra fields to category edit form callback function function extra_category_fields( $tag ) { //check for existing featured ID $t_id = $tag-&#62;term_id; $cat_meta = get_option( &#34;category_$t_id&#34;); ?&#62; &#60;tr class=&#34;form-field&#34;&#62; &#60;th scope=&#34;row&#34; valign=&#34;top&#34;&#62;&#60;label for=&#34;cat_Image_url&#34;&#62;&#60;?php _e('Category Image Url'); ?&#62;&#60;/label&#62;&#60;/th&#62; &#60;td&#62; &#60;input type=&#34;text&#34; name=&#34;Cat_meta[img]&#34; id=&#34;Cat_meta[img]&#34; size=&#34;3&#34; [...]]]></description>
			<content:encoded><![CDATA[<pre>//add extra fields to category edit form hook
  add_action ( 'edit_category_form_fields', 'extra_category_fields');
  //add extra fields to category edit form callback function
  function extra_category_fields( $tag ) { //check for existing featured ID
  $t_id = $tag-&gt;term_id;
  $cat_meta = get_option( &quot;category_$t_id&quot;);
  ?&gt;
  &lt;tr class=&quot;form-field&quot;&gt;
  &lt;th scope=&quot;row&quot; valign=&quot;top&quot;&gt;&lt;label for=&quot;cat_Image_url&quot;&gt;&lt;?php
  _e('Category Image Url'); ?&gt;&lt;/label&gt;&lt;/th&gt;
  &lt;td&gt;
  &lt;input type=&quot;text&quot; name=&quot;Cat_meta[img]&quot; id=&quot;Cat_meta[img]&quot;
  size=&quot;3&quot; style=&quot;width:60%;&quot; value=&quot;&lt;?php echo $cat_meta['img']
  ? $cat_meta['img'] : ''; ?&gt;&quot;&gt;&lt;br /&gt;
  &lt;span class=&quot;description&quot;&gt;&lt;?php _e('Image for category: use
  full url with http://'); ?&gt;&lt;/span&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr class=&quot;form-field&quot;&gt;
  &lt;th scope=&quot;row&quot; valign=&quot;top&quot;&gt;&lt;label for=&quot;extra1&quot;&gt;&lt;?php
  _e('extra field'); ?&gt;&lt;/label&gt;&lt;/th&gt;
  &lt;td&gt;
  &lt;input type=&quot;text&quot; name=&quot;Cat_meta[extra1]&quot; id=&quot;Cat_meta[extra1]&quot;
  size=&quot;25&quot; style=&quot;width:60%;&quot; value=&quot;&lt;?php echo $cat_meta['extra1']
  ? $cat_meta['extra1'] : ''; ?&gt;&quot;&gt;&lt;br /&gt;
  &lt;span class=&quot;description&quot;&gt;&lt;?php _e('extra field'); ?&gt;&lt;/span&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr class=&quot;form-field&quot;&gt;
  &lt;th scope=&quot;row&quot; valign=&quot;top&quot;&gt;&lt;label for=&quot;extra2&quot;&gt;&lt;?php
  _e('extra field'); ?&gt;&lt;/label&gt;&lt;/th&gt;
  &lt;td&gt;
  &lt;input type=&quot;text&quot; name=&quot;Cat_meta[extra2]&quot; id=&quot;Cat_meta[extra2]&quot;
  size=&quot;25&quot; style=&quot;width:60%;&quot; value=&quot;&lt;?php echo $cat_meta['extra2']
  ? $cat_meta['extra2'] : ''; ?&gt;&quot;&gt;&lt;br /&gt;
  &lt;span class=&quot;description&quot;&gt;&lt;?php _e('extra field'); ?&gt;&lt;/span&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr class=&quot;form-field&quot;&gt;
  &lt;th scope=&quot;row&quot; valign=&quot;top&quot;&gt;&lt;label for=&quot;extra3&quot;&gt;&lt;?php
  _e('extra field'); ?&gt;&lt;/label&gt;&lt;/th&gt;
  &lt;td&gt;
  &lt;textarea name=&quot;Cat_meta[extra3]&quot; id=&quot;Cat_meta[extra3]&quot;
  style=&quot;width:60%;&quot;&gt;&lt;?php echo $cat_meta['extra3'] ? $cat_meta['extra3']
  : ''; ?&gt;&lt;/textarea&gt;&lt;br /&gt;
  &lt;span class=&quot;description&quot;&gt;&lt;?php _e('extra field'); ?&gt;&lt;/span&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;?php
  } 

// save extra category extra fields hook
  add_action ( 'edited_category', 'save_extra_category_fileds');
  // save extra category extra fields callback function
  function save_extra_category_fileds( $term_id ) {
  if ( isset( $_POST['Cat_meta'] ) ) {
  $t_id = $term_id;
  $cat_meta = get_option( &quot;category_$t_id&quot;);
  $cat_keys = array_keys($_POST['Cat_meta']);
  foreach ($cat_keys as $key){
  if (isset($_POST['Cat_meta'][$key])){
  $cat_meta[$key] = $_POST['Cat_meta'][$key];
  }
  }
  //save the option array
  update_option( &quot;category_$t_id&quot;, $cat_meta );
  }
  } </pre>
]]></content:encoded>
			<wfw:commentRss>http://webtillerdesigns.com/custom-fields-for-category/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pretty Category Dropdown</title>
		<link>http://webtillerdesigns.com/pretty-category-dropdown/</link>
		<comments>http://webtillerdesigns.com/pretty-category-dropdown/#comments</comments>
		<pubDate>Sat, 29 Oct 2011 19:39:25 +0000</pubDate>
		<dc:creator>Designers</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://webtillerdesigns.com/?p=1039</guid>
		<description><![CDATA[&#60;?php $categories = get_categories(); $select = "&#60;select name='cat' id='cat' class='postform'&#62;\n"; $select.= "&#60;option value='-1'&#62;Select category&#60;/option&#62;\n"; foreach($categories as $category){ if($category-&#62;count &#62; 0){ $select.= "&#60;option value='".$category-&#62;slug."'&#62;".$category-&#62;name."&#60;/option&#62;"; } } $select.= "&#60;/select&#62;"; echo $select; ?&#62; &#60;script type="text/javascript"&#62;&#60;!-- var dropdown = document.getElementById("cat"); function onCatChange() { if ( dropdown.options[dropdown.selectedIndex].value != -1 ) { location.href = "&#60;?php echo get_option('home');?&#62;/category/"+dropdown.options[dropdown.selectedIndex].value+"/"; } } dropdown.onchange = [...]]]></description>
			<content:encoded><![CDATA[<pre>&lt;?php
$categories = get_categories();

$select = "&lt;select name='cat' id='cat' class='postform'&gt;\n";
$select.= "&lt;option value='-1'&gt;Select category&lt;/option&gt;\n";

foreach($categories as $category){
if($category-&gt;count &gt; 0){
$select.= "&lt;option value='".$category-&gt;slug."'&gt;".$category-&gt;name."&lt;/option&gt;";
}
}

$select.= "&lt;/select&gt;";

echo $select;
?&gt;
&lt;script type="text/javascript"&gt;&lt;!--
var dropdown = document.getElementById("cat");
function onCatChange() {
if ( dropdown.options[dropdown.selectedIndex].value != -1 ) {
location.href = "&lt;?php echo get_option('home');?&gt;/category/"+dropdown.options[dropdown.selectedIndex].value+"/";
}
}
dropdown.onchange = onCatChange;
--&gt;&lt;/script&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://webtillerdesigns.com/pretty-category-dropdown/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Include Post Tags in Search</title>
		<link>http://webtillerdesigns.com/include-post-tags-in-search/</link>
		<comments>http://webtillerdesigns.com/include-post-tags-in-search/#comments</comments>
		<pubDate>Sat, 29 Oct 2011 19:22:37 +0000</pubDate>
		<dc:creator>Designers</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://webtillerdesigns.com/?p=1034</guid>
		<description><![CDATA[function custom_search_where($where){ global $wpdb; if (is_search()) $where .= "OR (t.name LIKE '%".get_search_query()."%' AND {$wpdb->posts}.post_status = 'publish')"; return $where; } function custom_search_join($join){ global $wpdb; if (is_search()) $join .= "LEFT JOIN {$wpdb->term_relationships} tr ON {$wpdb->posts}.ID = tr.object_id INNER JOIN {$wpdb->term_taxonomy} tt ON tt.term_taxonomy_id=tr.term_taxonomy_id INNER JOIN {$wpdb->terms} t ON t.term_id = tt.term_id"; return $join; } function custom_search_groupby($groupby){ global [...]]]></description>
			<content:encoded><![CDATA[<pre>function custom_search_where($where){
  global $wpdb;
  if (is_search())
    $where .= "OR (t.name LIKE '%".get_search_query()."%' AND {$wpdb->posts}.post_status = 'publish')";
  return $where;
}

function custom_search_join($join){
  global $wpdb;
  if (is_search())
    $join .= "LEFT JOIN {$wpdb->term_relationships} tr ON {$wpdb->posts}.ID = tr.object_id INNER JOIN {$wpdb->term_taxonomy} tt ON tt.term_taxonomy_id=tr.term_taxonomy_id INNER JOIN {$wpdb->terms} t ON t.term_id = tt.term_id";
  return $join;
}

function custom_search_groupby($groupby){
  global $wpdb;

  // we need to group on post ID
  $groupby_id = "{$wpdb->posts}.ID";
  if(!is_search() || strpos($groupby, $groupby_id) !== false) return $groupby;

  // groupby was empty, use ours
  if(!strlen(trim($groupby))) return $groupby_id;

  // wasn't empty, append ours
  return $groupby.", ".$groupby_id;
}

add_filter('posts_where','custom_search_where');
add_filter('posts_join', 'custom_search_join');
add_filter('posts_groupby', 'custom_search_groupby');
</pre>
]]></content:encoded>
			<wfw:commentRss>http://webtillerdesigns.com/include-post-tags-in-search/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Image Insert CSS</title>
		<link>http://webtillerdesigns.com/image-insert-css/</link>
		<comments>http://webtillerdesigns.com/image-insert-css/#comments</comments>
		<pubDate>Sat, 29 Oct 2011 01:07:04 +0000</pubDate>
		<dc:creator>Designers</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://webtillerdesigns.com/?p=1032</guid>
		<description><![CDATA[img.alignright {float:right; margin:0 0 1em 1em} img.alignleft {float:left; margin:0 1em 1em 0} img.aligncenter {display: block; margin-left: auto; margin-right: auto} .alignright {float:right; } .alignleft {float:left; } .aligncenter {display: block; margin-left: auto; margin-right: auto}]]></description>
			<content:encoded><![CDATA[<pre>img.alignright {float:right; margin:0 0 1em 1em}
img.alignleft {float:left; margin:0 1em 1em 0}
img.aligncenter {display: block; margin-left: auto; margin-right: auto}
.alignright {float:right; }
.alignleft {float:left; }
.aligncenter {display: block; margin-left: auto; margin-right: auto}</pre>
]]></content:encoded>
			<wfw:commentRss>http://webtillerdesigns.com/image-insert-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML Friendly Excerpts</title>
		<link>http://webtillerdesigns.com/html-friendly-excerpts/</link>
		<comments>http://webtillerdesigns.com/html-friendly-excerpts/#comments</comments>
		<pubDate>Fri, 28 Oct 2011 17:10:27 +0000</pubDate>
		<dc:creator>Designers</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://webtillerdesigns.com/?p=1026</guid>
		<description><![CDATA[/* Code that preserves HTML formating to the automatically generated Excerpt */ /* Also modifies the default excerpt_length and excerpt_more filters. */ /* Code tested on WordPress Version 3.1.3 */ function custom_wp_trim_excerpt($text) { $raw_excerpt = $text; if ( '' == $text ) { //Retrieve the post content. $text = get_the_content(''); //Delete all shortcode tags from [...]]]></description>
			<content:encoded><![CDATA[<pre>
/* Code that preserves HTML formating to the automatically generated Excerpt */
/* Also modifies the default excerpt_length and excerpt_more filters. */
/* Code tested on WordPress Version 3.1.3 */
function custom_wp_trim_excerpt($text) {
$raw_excerpt = $text;
if ( '' == $text ) {
    //Retrieve the post content.
    $text = get_the_content('');

    //Delete all shortcode tags from the content.
    $text = strip_shortcodes( $text );

    $text = apply_filters('the_content', $text);
    $text = str_replace(']]&gt;', ']]&gt;', $text);

    $allowed_tags = ''; /*** MODIFY THIS. Add the allowed HTML tags separated by a comma.***/
    $text = strip_tags($text, $allowed_tags);

    $excerpt_word_count = 55; /*** MODIFY THIS. change the excerpt word count to any integer you like.***/
    $excerpt_length = apply_filters('excerpt_length', $excerpt_word_count);

    $excerpt_end = '[...]'; /*** MODIFY THIS. change the excerpt endind to something else.***/
    $excerpt_more = apply_filters('excerpt_more', ' ' . $excerpt_end);

    $words = preg_split("/[\n\r\t ]+/", $text, $excerpt_length + 1, PREG_SPLIT_NO_EMPTY);
    if ( count($words) > $excerpt_length ) {
        array_pop($words);
        $text = implode(' ', $words);
        $text = $text . $excerpt_more;
    } else {
        $text = implode(' ', $words);
    }
}
return apply_filters('wp_trim_excerpt', $text, $raw_excerpt);
}
remove_filter('get_the_excerpt', 'wp_trim_excerpt');
add_filter('get_the_excerpt', 'custom_wp_trim_excerpt');
</pre>
]]></content:encoded>
			<wfw:commentRss>http://webtillerdesigns.com/html-friendly-excerpts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Customize Your Login Page</title>
		<link>http://webtillerdesigns.com/customize-your-login-page/</link>
		<comments>http://webtillerdesigns.com/customize-your-login-page/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 19:16:30 +0000</pubDate>
		<dc:creator>Designers</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://webtillerdesigns.com/?p=977</guid>
		<description><![CDATA[Change the Stylesheet Put the following code in the functions.php file: function custom_login() { echo '&#60;link rel="stylesheet" type="text/css" href="'.get_bloginfo('template_directory').'/custom-login/custom-login.css" /&#62;'; } add_action('login_head', 'custom_login'); Create a folder in your theme’s folder and call it “custom-login“. This folder will store the css and images for the custom login page. Inside the custom-login folder create a new stylesheet [...]]]></description>
			<content:encoded><![CDATA[<h3>Change the Stylesheet</h3>
<p>Put the following code in the functions.php file:</p>
<pre>function custom_login() {
echo '&lt;link rel="stylesheet" type="text/css" href="'.get_bloginfo('template_directory').'/custom-login/custom-login.css" /&gt;';
}
add_action('login_head', 'custom_login');</pre>
<p>Create a folder in your theme’s folder and call it “<em>custom-login</em>“. This folder will store the css and images for the custom login page. Inside the <em>custom-login</em> folder create a new stylesheet called “<em>custom-login.css”</em></p>
<h3>Change the logo</h3>
<p>Put the following code in the functions.php file:</p>
<pre>function wd_custom_login_logo() {
$style = '&lt;style type="text/css"&gt; h1 a { background: transparent url(' . get_bloginfo ('template_directory') . '/images/your-logo-image.png) no-repeat center top !important; } &lt;/style&gt;';
echo $style;
}
add_action( 'login_head', 'wd_custom_login_logo' );</pre>
<h3>Change Name</h3>
<p>Put the following code in the functions.php file: </p>
<pre>function wd_login_headertitle() {
$name = get_option('blogname');
echo $name;
}
add_filter( 'login_headertitle', 'wd_login_headertitle' );
</pre>
<h3>Change URL</h3>
<p>Put the following code in the functions.php file:</p>
<pre> function wd_login_headerurl() {
 $url = bloginfo('url');
 echo $url;
 }
 add_filter( 'login_headerurl', 'wd_login_headerurl' );</pre>
]]></content:encoded>
			<wfw:commentRss>http://webtillerdesigns.com/customize-your-login-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

