<?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>webdevils.com &#187; Wordpress</title>
	<atom:link href="http://www.webdevils.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webdevils.com</link>
	<description>Web New Media notes and ramblings</description>
	<lastBuildDate>Tue, 31 Jan 2012 04:58:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>WordPress &#8211; Custom Menu</title>
		<link>http://www.webdevils.com/2011/11/11/wordpress-custom-menu/</link>
		<comments>http://www.webdevils.com/2011/11/11/wordpress-custom-menu/#comments</comments>
		<pubDate>Fri, 11 Nov 2011 19:27:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.webdevils.com/?p=660</guid>
		<description><![CDATA[Custom menus are a great options for WordPress. A menu is basically a list of links. This list of links can appear anywhere in your theme. You can customize the links that appear in the list via the admin panel. A theme may contain as many custom menus as you care to add. Each can [...]]]></description>
			<content:encoded><![CDATA[<p>Custom menus are a great options for WordPress. A menu is basically a list of links. This list of links can appear anywhere in your theme. You can customize the links that appear in the list via the admin panel.</p>
<p>A theme may contain as many custom menus as you care to add. Each can be customized through the admin panel. Custom menus can appear anywhere in your site you care to place them.</p>
<p>To get started create a function.php file in your theme folder.  Next add a &lt;?php ?&gt; tag to your functions.php file. Your functions.php should contain one &lt;?php ?&gt; tag and all of the custom php code should go between the &lt;?php and ?&gt;.</p>
<p>Now add the code to generate a new custom menu. Add the following inside the &lt;?php and ?&gt;:</p>
<pre>// Notify WordPress that you want to run a function when the page initializes
add_action( 'init', 'register_my_menus' );

// Here's the function
function register_my_menus() {
   // Call this function to register a new menu
   // Declare a slug-name and a display name for the new menu
   register_nav_menus(
      array('header-menu' =&gt; __( 'Header Menu' ) )
   );
}</pre>
<p>The first line tells WordPress to call on the function resgister_my_menus when the page initializes. The register_my_menus function is defined below. This functions calls on register_nav_menus, which is defined by WordPress. This function receives an Array describing the menu to create.The menu gets two names. A slug name which is used in code to refer to the menu. The other is a display name which is used when the name appears in a page.</p>
<p>The __() function used to wrap the display name, as in __(&#8216;Header Menu&#8217;) is a special function used translate your page in to other languages. See the codex for more information. This function is not required but is good practice to include.</p>
<p>For more info refer to the codex: <a href="http://codex.wordpress.org/Function_Reference/wp_nav_menu">http://codex.wordpress.org/Function_Reference/wp_nav_menu</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdevils.com/2011/11/11/wordpress-custom-menu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress &#8211; functions.php</title>
		<link>http://www.webdevils.com/2011/11/11/wordpress-functions-php/</link>
		<comments>http://www.webdevils.com/2011/11/11/wordpress-functions-php/#comments</comments>
		<pubDate>Fri, 11 Nov 2011 18:15:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.webdevils.com/?p=658</guid>
		<description><![CDATA[The functions.php file is a file that can be ioncluded in anything theme you might create for WordPress. This file is used to add unique functions to your WordPress theme. The functions.php file you can add new functionality to your site and modify the regular functions of WordPress. You can also gain access to many [...]]]></description>
			<content:encoded><![CDATA[<p>The functions.php file is a file that can be ioncluded in anything theme you might create for WordPress. This file is used to add unique functions to your WordPress theme. The functions.php file you can add new functionality to your site and modify the regular functions of WordPress. You can also gain access to many features of WordPress that are not available through the admin panel.</p>
<p>To use functions.php just create a plain text file named functions.php and add it to your theme folder. From here you will code that file that adds features to your theme.</p>
<p>Note: Every theme will have it&#8217;s own functions.php file and the features added by that file will only be in effect when that theme is active.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdevils.com/2011/11/11/wordpress-functions-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress: wp_list_pages</title>
		<link>http://www.webdevils.com/2010/10/15/wordpress-list-pages-classes/</link>
		<comments>http://www.webdevils.com/2010/10/15/wordpress-list-pages-classes/#comments</comments>
		<pubDate>Sat, 16 Oct 2010 00:05:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.webdevils.com/?p=444</guid>
		<description><![CDATA[Using wp_list_pages This post describes the basics of working with wp_list_pages. wp_list_pages overview The wp_list_pages function generates a list of links to pages in your WordPress site. The list is generated as an li tag with a title and a nested ul containing a list of links. For example, if your site had pages named [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Using wp_list_pages</strong></p>
<p>This post describes the basics of working with wp_list_pages.</p>
<p><span id="more-444"></span></p>
<p><strong>wp_list_pages overview</strong></p>
<p>The wp_list_pages function generates a list of links to pages in your WordPress site. The list is generated as an li tag with a title and a nested ul containing a list of links. For example, if your site had pages named About and Contact wp_list_pages()  would generate:</p>
<pre>
<code >&lt;li&gt;Pages
	&lt;ul&gt;
		&lt;li&gt;&lt;a&gt;About&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a&gt;Contact&lt;/a&gt;&lt;/li&gt;
	&lt;/ul&gt;
&lt;/li&gt;</code>
</pre>
<p><strong>Styling the page list heading</strong></p>
<p>By default the wp_list_pages displays &#8220;Pages&#8221; within the li tag. You change the label and or add a tag to it by using the title_li option. For example the following prints Pages as an h3.</p>
<pre>&lt;?php wp_list_pages('title_li=&lt;h3&gt;Pages&lt;/h3&gt;'); ?&gt;</pre>
<p>Or display no title at all:</p>
<pre>&lt;?php wp_list_pages('title_li='); ?&gt;</pre>
<p>Note! In this case the outer li and ul are removed. For example if your pages were About and Contact you would have:</p>
<pre>
<code >	&lt;li&gt;&lt;a&gt;About&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a&gt;Contact&lt;/a&gt;&lt;/li&gt;</code>
</pre>
<p><strong>Styling the page list</strong></p>
<p>Each of the li tags generated by wp_list_pages is assigned the following class names:</p>
<ul>
<li>page_item</li>
<li>page-item-id &#8211; Where id is the id number of the page</li>
</ul>
<p>The class page_item is very useful. Note that it uses the _ rather than the -.</p>
<p>The class page-item-id on the other is less useful. WordPress generates an id number for each page. This number is a little unpredictable. Id numbers really have no rhyme or reason.</p>
<p>When a page is currently displayed the link that matches the page will also have the class:</p>
<ul>
<li>current_page_item</li>
</ul>
<p>This is a very useful property that can be used to assign a style to the current page link.</p>
<p><strong>Sample Selectors</strong></p>
<p>The first step to creating a style for the page links is to define a selector that will target the links. Since all links will end up in li tag within the container element the descendant selector works well. For this example imagine the pages links are contained within an element with the id name nav</p>
<p><code>#nav li {...styles...}</code></p>
<p>To be more specific and target only the page links rather than all of the list items, the class page_item is assigned to all page links. </p>
<p><code>#nav .page_item {...styles...}</code></p>
<p>To style the selected page differently from the other pages links, use the class current_page_item.</p>
<p><code>#nav .current_page_item {...styles...}</code></p>
<p>To target the anchor tag within each of the list items generated by wp_list_pages, use the descendant or child selectors any of the following should work. </p>
<p><code>#nav li a{...styles...}</code><br />
<code>#nav .page_item a{...styles...}</code><br />
<code>#nav .current_page_item a{...styles...}</code></p>
<p><strong>Sample Styles</strong></p>
<p>Here&#8217;s a few ideas on styling the page links. Be sure to use the :link, :visited, :hover and :active styles. </p>
<p><code>#nav li a:link{...styles...}</code><br />
<code>#nav li a:visited{...styles...}</code><br />
<code>#nav li a:hover{...styles...}</code><br />
<code>#nav li a:active{...styles...}</code></p>
<p>Be sure to style the current_page_item after the other links styles.</p>
<p>Here&#8217;s a few more ideas. Make every link appear as a box. Set each anchor tag to display block:</p>
<p><code>.page_item a { display:block;  }</code></p>
<p>Make a horizontal list of links with float. Floating the list may require that you clear the floated elements later in your page. </p>
<p><code>.page_item a {<br />
display:block;<br />
float:left;<br />
}</code></p>
<p>Adding padding on all sides to expand the link boxes. Here&#8217;s an idea use the <a href="http://www.css3.info/preview/rounded-border/">border-radius property</a> to add rounded corners. You could easily create some tabs by rounding only the top corners. </p>
<p><strong>Other options</strong><br />
The wp_list_pages method provides many options. For a full list of options see the <a href="http://codex.wordpress.org/Template_Tags/wp_list_pages">WordPress Codex</a>. </p>
<p>Here are a few possibilities. Since pages can be nested, use the depth option to set the number of levels of pages that will be displayed. For example depth=1 displays only the top level pages. </p>
<p>Use the &#038; between properties. For example, the line below creates a list of pages with no title and a depth of 1. </p>
<p><code>&lt;?php wp_list_pages("title_li=&amp;depth=1"); ?&gt;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdevils.com/2010/10/15/wordpress-list-pages-classes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Categories</title>
		<link>http://www.webdevils.com/2010/07/31/wordpress-categories/</link>
		<comments>http://www.webdevils.com/2010/07/31/wordpress-categories/#comments</comments>
		<pubDate>Sat, 31 Jul 2010 17:14:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.webdevils.com/?p=393</guid>
		<description><![CDATA[Here&#8217;s a good article on using Categories effectively. http://www.pearsonified.com/2008/02/what_every_blogger_needs_to_know_about_categories.php]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a good article on using Categories effectively.</p>
<p><a href="http://www.pearsonified.com/2008/02/what_every_blogger_needs_to_know_about_categories.php">http://www.pearsonified.com/2008/02/what_every_blogger_needs_to_know_about_categories.php</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdevils.com/2010/07/31/wordpress-categories/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordrpess as CMS</title>
		<link>http://www.webdevils.com/2010/05/22/wordrpess-as-cms/</link>
		<comments>http://www.webdevils.com/2010/05/22/wordrpess-as-cms/#comments</comments>
		<pubDate>Sat, 22 May 2010 21:38:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.webdevils.com/?p=361</guid>
		<description><![CDATA[It seems that WordPress must be one of the most popular CMS tools available at this time. Obviously this has a lot to do with how easy it is to work with. Installation is a snap, they boast a 5 minute install, and I have to say it&#8217;s pretty accurate. Though, it might take a [...]]]></description>
			<content:encoded><![CDATA[<p>It seems that WordPress must be one of the most popular CMS tools available at this time. Obviously this has a lot to do with how easy it is to work with. Installation is a snap, they boast a 5 minute install, and I have to say it&#8217;s pretty accurate. Though, it might take a few minutes longer if you&#8217;re new to the process. That said I&#8217;ve never heard anyone claim the &#8220;5 minute&#8221; install was very inaccurate.</p>
<p>From here you start to wonder what kind of sites can make with WordPress? This question is tainted by the blog label. Since it started as a blog, WordPress.com us a blog hosting site, and it&#8217;s primary use is as a blog. Everyone&#8217;s first thought is that WordPress is a blog.</p>
<p>Really, WordPress is a Content Management System, or CMS. Originally conceived as a blog, it&#8217;s really just a site manager that stores site content as either posts or pages. Posts are elements that are added often, think of these as blog posts. Pages on the other hand represent content that is more or less fixed, think of this as a static web pages.</p>
<p>Working with these two types of elements there is a broad range of web sites that can be created. Not just blogs.</p>
<p>WordPress provides several methods of organizing site content. Categories, which are, well, categories. Categories allow you to sort content into groups that can be searched, filtered and displayed together. Categories also allow you style types of content differently.</p>
<p>Tags are another organizing tool that provide a free form method of, well, tagging content. Think of tags as keywords attached to content to provide a more detailed description. Use tags to build on the broad areas of content created by categories.</p>
<p>WordPress also provides a system of taxonomies. Think of taxonomies as a specialized tagging. Or, categories of tags. The taxonomy system is not activated by default. To use this you&#8217;ll need to activate this feature using the functions.php file. See this tutorial here: <a href="http://justintadlock.com/archives/2009/05/06/custom-taxonomies-in-wordpress-28">http://justintadlock.com/archives/2009/05/06/custom-taxonomies-in-wordpress-28</a></p>
<p>What types of sites can you make with WordPress? It&#8217;s hard to say how much you can do with WordPress. If you&#8217;re new to WordPress, I would that you probably do a lot more than you think you can. The tool is very flexible. The Admin panel is also incredibly easy to pick. So it&#8217;s pretty is to create a site and pass it to a client to manage with minimal instruction.</p>
<p>Here&#8217;s an article on sites using WordPress as a CMS: <a href="http://www.webhelpermagazine.com/2008/04/wordpress-wow-seven-top-sites-using-wordpress-as-a-cms/">http://www.webhelpermagazine.com/2008/04/wordpress-wow-seven-top-sites-using-wordpress-as-a-cms/</a></p>
<p>Looks like I&#8217;m not the only one that thinks WordPress is a great CMS tool. Looks like Pakt Publishing awarded WordPress first place <strong>Overall Best Open Source CMS.</strong> WordPress beat Drupal and Joomla. Which are dedicated CMS tools. Here&#8217;s a link if you&#8217;d like to read more about this: <a href="http://www.packtpub.com/award">http://www.packtpub.com/award</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdevils.com/2010/05/22/wordrpess-as-cms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Post Classes</title>
		<link>http://www.webdevils.com/2010/04/28/wordpress-classes/</link>
		<comments>http://www.webdevils.com/2010/04/28/wordpress-classes/#comments</comments>
		<pubDate>Thu, 29 Apr 2010 04:41:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.webdevils.com/?p=330</guid>
		<description><![CDATA[When creating a WordPress theme it&#8217;s natural to start adding classes and id names to HTML elements as you write them. There is nothing wrong with this. You can use familiar names and be assured that an element has the class that you assigned. There is a downside, in that it doesn&#8217;t leverage the plethora [...]]]></description>
			<content:encoded><![CDATA[<p>When creating a WordPress theme it&#8217;s natural to start adding classes and id names to HTML elements as you write them. There is nothing wrong with this. You can use familiar names and be assured that an element has the class that you assigned. There is a downside, in that it doesn&#8217;t leverage the plethora of classes already output by WordPress. WordPress produces a long list of classes and ids and can generate dynamic classes and ids that you can&#8217;t do by yourself.</p>
<p>The problem, is these classes aren&#8217;t visible. At least not until you&#8217;ve rendered the page in a browser and looked at the source code. Which is not the way that accustomed to building web pages normally.</p>
<p>post_class() is a function that can generates the following classes:</p>
<ul>
<li> .post-id</li>
<li> .post (or .page or .attachment, depending on the post type)</li>
<li> .sticky</li>
<li> .hentry</li>
<li> .category-misc</li>
<li> .category-example</li>
<li> .tag-news</li>
<li> .tag-wordpress</li>
<li> .tag-markup</li>
</ul>
<p>In a typical post_class will generate the following classes:</p>
<ul>
<li>post-# (where # is the id number of this post)</li>
<li>post</li>
<li>hentry</li>
<li>category-name</li>
</ul>
<p>If the post has tags it may generate even more class names. Remember an element may have any number of class names assigned to it.</p>
<p>You could look at the class names as two types: General and Specific. General class names are names that would be the same for every post on the same page. Like post and hentry. Specific classes would be names that might be unique for each post. Things like: post-# (remember the # would be the id number of the post). Some class names will be general and specific. Things like category-name (where name is the name of the category. The category-name might be the same for several posts, while not matching everything on the same page.</p>
<p>Tags, not shown above also generate class names. post_class will generate class names for each tag assigned to a post in the form of tag-name.</p>
<p>What&#8217;s important with all of this? Having WordPress generate your class names make your job of creating a template easier and give you more options when creating a template.</p>
<p>Rather than adding your classes to everything, let Wordrpess do it for you. To make use of these classes what&#8217;s important is to understand the general classes. These are applied to everything. These might have been the classes you assigned yourself. Instead use the WordPress names and save your self some trouble and standardize your templates and style sheets.</p>
<p>Use post_class by adding to a likely tag within &#8220;The Loop&#8221;. Remember that post_class generates class names that are specific to posts. That is some of the names will change from post to post. This means that post_class is best used on a unique element that surrounds each individual post.</p>
<p>The post_class method outputs class=&#8221;" along with the class names. Use it in this way:</p>
<pre>&lt;div &lt;?php post_class() ?&gt;&gt;
... post content ...
&lt;/div&gt;</pre>
<p>Imagine the div above was contained in The Loop. The rest of the post content would be contained within the div above.</p>
<p><a href="http://codex.wordpress.org/Template_Tags/post_class">http://codex.wordpress.org/Template_Tags/post_class</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdevils.com/2010/04/28/wordpress-classes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A great tutorial on making your own WordPress themes</title>
		<link>http://www.webdevils.com/2007/12/25/a-great-tutorial-on-making-your-own-wordpress-themes/</link>
		<comments>http://www.webdevils.com/2007/12/25/a-great-tutorial-on-making-your-own-wordpress-themes/#comments</comments>
		<pubDate>Tue, 25 Dec 2007 17:16:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.webdevils.com/?p=76</guid>
		<description><![CDATA[Here&#8217;s a great tutorial on making your own WordPress themes. Very detailed with a lot of good information. so-you-want-to-create-wordpress-themes-huh]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a great tutorial on making your own WordPress themes. Very detailed with a lot of good information.</p>
<p><a href="http://www.wpdesigner.com/2007/02/19/so-you-want-to-create-wordpress-themes-huh/">so-you-want-to-create-wordpress-themes-huh</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdevils.com/2007/12/25/a-great-tutorial-on-making-your-own-wordpress-themes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Kimili Flash Plugin</title>
		<link>http://www.webdevils.com/2007/04/24/kimili-flash-plugin/</link>
		<comments>http://www.webdevils.com/2007/04/24/kimili-flash-plugin/#comments</comments>
		<pubDate>Wed, 25 Apr 2007 03:37:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.webdevils.com/?p=10</guid>
		<description><![CDATA[Testing the Kimili Flash plugin for WordPress. It seems to be working pretty well so far. 
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_3D_03_1616444439"
			class="flashmovie"
			width="300"
			height="300">
	<param name="movie" value="http://webdevils.com/examples/Make3d/3D_03.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://webdevils.com/examples/Make3d/3D_03.swf"
			name="fm_3D_03_1616444439"
			width="300"
			height="300">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object> Interesting to note that the plugin is supposed to work with Flash anywhere it appears. So you can use KimiliFlash to put Flash into your header or other areas of your site. Another interesting [...]]]></description>
			<content:encoded><![CDATA[<p>Testing the <a href="http://kimili.com/plugins/kml_flashembed/wp">Kimili Flash plugin for WordPress</a>. It seems to be working pretty well so far.</p>

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_3D_03_903864444"
			class="flashmovie"
			width="300"
			height="300">
	<param name="movie" value="http://webdevils.com/examples/Make3d/3D_03.swf" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://webdevils.com/examples/Make3d/3D_03.swf"
			name="fm_3D_03_903864444"
			width="300"
			height="300">
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object>
<p>Interesting to note that the plugin is supposed to work with Flash anywhere it appears. So you can use KimiliFlash to put Flash into your header or other areas of your site.</p>
<p>Another interesting item is that the Kimili plugin uses <a href="http://blog.deconcept.com/swfobject/">SWFObject: Javascript Flash Player detection and embed script</a> which is XHTML valid. The default Flash HTML code written by Flash and Dreamweaver will not validate.</p>
<p>There is an article about this on <a href="http://www.alistapart.com/articles/flashsatay/">A List Apart</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdevils.com/2007/04/24/kimili-flash-plugin/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

