<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
  <channel>
    <title><![CDATA[Subscribers Archive Feed]]></title>
    <link>http://us4.campaign-archive.com/feed?u=427153c482114d70024e1dc1a&amp;id=60aff5b9cd&amp;tpl=1</link>
    <description />
    <pubDate>Thu, 23 May 2013 18:24:58 +0000</pubDate>
    <generator>Zend_Feed</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/TheDailyWordPressReference" /><feedburner:info uri="thedailywordpressreference" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:browserFriendly></feedburner:browserFriendly><item>
      <title><![CDATA[The Daily WordPress Reference: get_post()]]></title>
      <link>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=8e174aa94c</link>
      <guid>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=8e174aa94c</guid>
      <description><![CDATA[Is this email not displaying correctly? View it in your browser: http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=8e174aa94c&e=[UNIQID]
   
The Daily WordPress Reference

The get_post() function

Description
   Takes a post ID and returns the database record for that post. You can specify, by means of the $output parameter, how you would like the results returned.

Usage
   <?php get_post( $post_id, $output ); ?> 

Parameters
   $post_id
   (integer) (required) The ID of the post you'd like to fetch. You must pass a variable containing an integer (e.g. $id). A literal integer (e.g. get_post(7)) will cause a fatal error (Only variables can be passed for reference or Cannot pass parameter 1 by reference).
   Default: None
   
   $output
   (string) (optional) How you'd like the result.
   OBJECT - (default) returns an object
   ARRAY_A - Returns an associative array of field names to values
   ARRAY_N - returns a numeric array of field values
   Default: OBJECT

Return Values
   In case of failure, this function returns null.
   
   The fields returned are:
   
   ID 
   (integer) The post ID
   post_author 
   (integer) The post author's ID
   post_date 
   (string) The datetime of the post (YYYY-MM-DD HH:MM:SS)
   post_date_gmt 
   (string) The GMT datetime of the post (YYYY-MM-DD HH:MM:SS)
   post_content 
   (string) The post's contents
   post_title 
   (string) The post's title
   post_category 
   (integer) The post category's ID. Note that this will always be 0 (zero) from wordpress 2.1 onwards. To determine a post's category or categories, use get_the_category().
   post_excerpt 
   (string) The post excerpt
   post_status 
   (string) The post status (publish|pending|draft|private|static|object|attachment|inherit|future|trash)
   comment_status 
   (string) The comment status (open|closed|registered_only)
   ping_status 
   (string) The pingback/trackback status (open|closed)
   post_password 
   (string) The post password
   post_name 
   (string) The post's URL slug
   to_ping 
   (string) URLs to be pinged
   pinged 
   (string) URLs already pinged
   post_modified 
   (string) The last modified datetime of the post (YYYY-MM-DD HH:MM:SS)
   post_modified_gmt 
   (string) The last modified GMT datetime of the post (YYYY-MM-DD HH:MM:SS)
   post_content_filtered 
   (string)
   post_parent 
   (integer) The parent post's ID (for attachments, etc)
   guid 
   (string) A link to the post. Note: One cannot rely upon the GUID to be the permalink (as it previously was in pre-2.5), Nor can you expect it to be a valid link to the post. It's merely a unique identifier, which so happens to be a link to the post at present.
   menu_order 
   (integer)
   post_type 
   (string) (post|page|attachment)
   post_mime_type 
   (string) Mime Type (for attachments, etc)
   comment_count 
   (integer) Number of comments

Examples
   To get the title for a post with ID 7:
   
   
   <?php
   $my_id = 7;
   $post_id_7 = get_post($my_id); 
   $title = $post_id_7->post_title;
   ?> 

More informations
   http://codex.wordpress.org/Function_Reference/get_post
  

DailyWordpressReference is not affiliated with WordPress in any way.
  __________________________________________________________________
  Links:
    [1]Follow the Daily WordPress Reference on Twitter
   
   
    [2]unsubscribe from this list | [3]update subscription preferences
     Links:
       1. Twitter Account not yet Authorized


       2. http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=8e174aa94c
       3. http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]]]></description>
      <content:encoded><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>The Daily WordPress Reference: get_post()</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<!-- Facebook sharing information tags -->
	<meta property="og:title" content="The Daily WordPress Reference: get_post()">
		
<style type="text/css">
		a{
			color:#cc0000;
		}
		dl{
			margin:0;
		}
		h4{
			margin-bottom:0;
		}
		.example{
			border:1px dashed #059100;
			padding:3px;
		}
		.default_param_value{
			color:#777;
			padding-bottom:7px;
		}
		code{
			color:#3D5A6F;
			background:#F7F7F7;
		}
		pre{
			color:#3D5A6F;
			background:#F7F7F7;
			border-top:1px solid #dedede;
			border-bottom:1px solid #dedede;
			padding:3px 2px;
		}
		.list a{
			color:#cc0000;
			text-transform:uppercase;
			font-family:Verdana;
			font-size:11px;
			text-decoration:none;
		}
</style></head>
<body marginheight="0" topmargin="0" marginwidth="0" bgcolor="#c5c5c5" leftmargin="0">

<table cellspacing="0" border="0" style="background-image: url(http://www.dailydocumentation.com/wordpress/mailassets/bg.gif); background-color: #c5c5c5;" cellpadding="0" width="100%">
	
	<tr>
		
		<td valign="top">

			<table cellspacing="0" border="0" align="center" style="background: #fff; border-right: 1px solid #ccc; border-left: 1px solid #ccc;" cellpadding="0" width="600">
				<tr>
					<td valign="top">
            <!-- // Begin Template Preheader \\ -->	
						<table cellspacing="0" border="0" height="110" cellpadding="0" width="600">
							<tr>
                <!-- // Begin Module: Standard Preheader \\ -->
								<td class="header-text" height="50" valign="top" style="color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; padding: 0 20px;" width="540" colspan="2">
                  <div>
									<!--  -->
                  </div>
								</td>
                <!-- // End Module: Standard Preheader \\ -->
							</tr>
              <!-- // End Template Preheader \\ -->
							<tr>
                <!-- // Begin Template Header \\ -->
								<td class="main-title" height="13" valign="top" style="padding: 0 20px; font-size: 25px; font-family: Georgia;" width="600" colspan="2">
                  <!-- // Begin Module: Standard Header Image \\ -->
									<a href="http://www.dailydocumentation.com/wordpress/" style="color: black; text-decoration: none;">The Daily WordPress Reference</a>
                  <!-- // End Module: Standard Header Image \\ -->
								</td>
							</tr>
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
						</table>
            <!-- // End Template Header \\ -->
					</td>
				</tr>
				<tr>
					<td>
            <!-- // Begin Template Body \\ -->
            <!-- // Begin Module: Standard Content \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
              <tr>
                <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  <div><div style="text-align: left;">
	get_post()</div>
</div>
                </td>
              </tr>
              <tr>
                <td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div>Takes a post ID and returns the database record for that post. You can specify, by means of the $output parameter, how you would like the results returned.Retrieves all category IDs.</div>
                </td>
              </tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  Usage
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;?php get_post( $post_id, $output ); ?&gt;&nbsp;</pre>
</div>
								</td>
							</tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Parameters
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                  <div><dl style="margin: 0;">
	<dt>
		<strong>$post_id</strong></dt>
	<dd>
		(<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#Integer" title="How to Pass Tag Parameters" style="color: #cc0000;">integer</a>) (required) The ID of the post you&#39;d like to fetch.&nbsp;You must pass a variable containing an integer&nbsp;(e.g.&nbsp;$id). A literal integer (e.g.&nbsp;get_post(7)) will cause a fatal error (Only variables can be passed for reference&nbsp;or&nbsp;Cannot pass parameter 1 by reference).
		<dl style="margin: 0;">
			<dd>
				Default:&nbsp;None</dd>
		</dl>
	</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>$output</strong></dt>
	<dd>
		(<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#String" title="How to Pass Tag Parameters" style="color: #cc0000;">string</a>) (optional) How you&#39;d like the result.
		<ul>
			<li>
				OBJECT&nbsp;- (default) returns an object</li>
			<li>
				ARRAY_A&nbsp;- Returns an associative array of field names to values</li>
			<li>
				ARRAY_N&nbsp;- returns a numeric array of field values</li>
		</ul>
		<dl style="margin: 0;">
			<dd>
				Default: OBJECT</dd>
		</dl>
	</dd>
</dl>
</div>
								</td>
							</tr>
							
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Return values
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><p>
	In case of failure, this function returns&nbsp;<strong>null</strong>.</p>
<p>
	The fields returned are:</p>
<dl style="margin: 0;">
	<dt>
		<strong>ID</strong></dt>
	<dd>
		(integer) The post ID</dd>
	<dt>
		<strong>post_author</strong></dt>
	<dd>
		(integer) The post author&#39;s ID</dd>
	<dt>
		<strong>post_date</strong></dt>
	<dd>
		(string) The datetime of the post (YYYY-MM-DD HH:MM:SS)</dd>
	<dt>
		<strong>post_date_gmt</strong></dt>
	<dd>
		(string) The GMT datetime of the post (YYYY-MM-DD HH:MM:SS)</dd>
	<dt>
		<strong>post_content</strong></dt>
	<dd>
		(string) The post&#39;s contents</dd>
	<dt>
		<strong>post_title</strong></dt>
	<dd>
		(string) The post&#39;s title</dd>
	<dt>
		<strong>post_category</strong></dt>
	<dd>
		(integer) The post category&#39;s ID. Note that this will always be 0 (zero) from wordpress 2.1 onwards. To determine a post&#39;s category or categories, use&nbsp;<a href="http://codex.wordpress.org/Function_Reference/get_the_category" title="Function Reference/get the category" style="color: #cc0000;">get_the_category()</a>.</dd>
	<dt>
		<strong>post_excerpt</strong></dt>
	<dd>
		(string) The post excerpt</dd>
	<dt>
		<strong>post_status</strong></dt>
	<dd>
		(string) The post status (publish|pending|draft|private|static|object|attachment|inherit|future|trash)</dd>
	<dt>
		<strong>comment_status</strong></dt>
	<dd>
		(string) The comment status (open|closed|registered_only)</dd>
	<dt>
		<strong>ping_status</strong></dt>
	<dd>
		(string) The pingback/trackback status (open|closed)</dd>
	<dt>
		<strong>post_password</strong></dt>
	<dd>
		(string) The post password</dd>
	<dt>
		<strong>post_name</strong></dt>
	<dd>
		(string) The post&#39;s URL slug</dd>
	<dt>
		<strong>to_ping</strong></dt>
	<dd>
		(string) URLs to be pinged</dd>
	<dt>
		<strong>pinged</strong></dt>
	<dd>
		(string) URLs already pinged</dd>
	<dt>
		<strong>post_modified</strong></dt>
	<dd>
		(string) The last modified datetime of the post (YYYY-MM-DD HH:MM:SS)</dd>
	<dt>
		<strong>post_modified_gmt</strong></dt>
	<dd>
		(string) The last modified GMT datetime of the post (YYYY-MM-DD HH:MM:SS)</dd>
	<dt>
		<strong>post_content_filtered</strong></dt>
	<dd>
		(string)</dd>
	<dt>
		<strong>post_parent</strong></dt>
	<dd>
		(integer) The parent post&#39;s ID (for attachments, etc)</dd>
	<dt>
		<strong>guid</strong></dt>
	<dd>
		(string) A link to the post. Note: One cannot rely upon the GUID to be the permalink (as it previously was in pre-2.5), Nor can you expect it to be a valid link to the post. It&#39;s merely a unique identifier, which so happens to be a link to the post at present.</dd>
	<dt>
		<strong>menu_order</strong></dt>
	<dd>
		(integer)</dd>
	<dt>
		<strong>post_type</strong></dt>
	<dd>
		(string) (post|page|attachment)</dd>
	<dt>
		<strong>post_mime_type</strong></dt>
	<dd>
		(string) Mime Type (for attachments, etc)</dd>
	<dt>
		<strong>comment_count</strong></dt>
	<dd>
		(integer) Number of comments</dd>
</dl>
</div>
								</td>
							</tr>

							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Examples
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><strong>To get the title for a post with ID 7:</strong>
<pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;?php
$my_id&nbsp;=&nbsp;7;
$post_id_7&nbsp;=&nbsp;get_post($my_id);&nbsp;
$title&nbsp;=&nbsp;$post_id_7-&gt;post_title;
?&gt;&nbsp;</pre>
</div>
								</td>
							</tr>

              	<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									More information
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><a href="http://codex.wordpress.org/Function_Reference/get_post" style="color: #cc0000;">http://codex.wordpress.org/Function_Reference/get_post</a></div><br>
								</td>
							</tr>
							<tr>
                <td>
                  <table width="600">
                    <tr>
                      <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                        Liked this function?
                      </td>
                    </tr>
                    <tr>
                      <td width="70%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2"><div>
	You might also like these books:<br>

<a href="http://www.amazon.com/gp/product/0470916222/ref=as_li_tf_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0470916222" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0470916222&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0470916222" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/1119995965/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1119995965" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=1119995965&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=1119995965" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/0980455294/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0980455294" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0980455294&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0980455294" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

</div>
</td>
                      <td width="30%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; text-align: right; line-height: 20px;" colspan="2">Share it:<br>
<a href="http://twitter.com/share?url=http%3A%2F%2Feepurl.com%2FrNE0z&text=The+Daily+WordPress+Reference%3A+get_post%28%29&count=none" target="_blank"><img src="http://cdn-images.mailchimp.com/social_connect_tweet.png" border="0" width="55" height="20" style="display:inline;" alt="share on Twitter"></a>&nbsp;<a href="http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=8e174aa94c&fblike=true&e=[UNIQID]&socialproxy=http%3A%2F%2Fus4.campaign-archive.com%2Fsocial-proxy%2Ffacebook-like%3Fu%3D427153c482114d70024e1dc1a%26id%3D8e174aa94c%26url%3Dhttp%253A%252F%252Fus4.campaign-archive.com%252F%253Fu%253D427153c482114d70024e1dc1a%2526id%253D8e174aa94c%26title%3DThe%2520Daily%2520WordPress%2520Reference%253A%2520get_post%2528%2529" title="Like The Daily WordPress Reference: get_post() on Facebook" rel="socialproxy" id="fblike-"><img src="http://cdn-images.mailchimp.com/fb/like.gif" border="0" alt="Like The Daily WordPress Reference: get_post() on Facebook" height="20" width="48" style="display:inline;"/></a><br>
&nbsp;Or Donate to the project:<br>
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EQZ8YJVVF79AN" style="color: #cc0000;"><img alt="Donata via Paypal" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif"></a><br>
(<a href="http://www.dailydocumentation.com/blog/faq/why-donate-to-this-project/" style="color: #cc0000;">Why Donate?</a>)</td>
                    </tr>
                  </table>
                </td>
              </tr>
						</table>
            <!-- // End Module: Standard Content \\ -->
						<!-- // End Template Body \\ -->
					</td>
				</tr>
				<tr>
					<td valign="top" width="600">
            <!-- // Begin Template Footer \\ -->
            <!-- // Begin Module: Standard Footer \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td valign="top">
									<table cellspacing="0" border="0" width="600" cellpadding="0">
										<tr>
											<td class="unsubscribe" valign="top" style="padding: 10px 20px; color: #999; font-size: 14px; font-family: Georgia; line-height: 20px;">
                        <div><br>
 </div>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td valign="top" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td class="copyright" height="100" align="center" valign="top" style="padding: 0 20px; color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; line-height: 20px;" width="600" colspan="2">
                  <div>
									&nbsp;<a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=8e174aa94c">unsubscribe from this list</a> | <a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]">update subscription preferences</a>&nbsp; 
                  </div>
								</td>
							</tr>
						</table>
            <!-- // End Module: Standard Footer \\ -->
						<!-- // End Template Footer \\ -->
					</td>
				</tr>
			</table>
			
		</td>
	
	</tr>
	
</table>

</body>
</html>
<!--
<a href="./" style="color: #cc0000; text-decoration: none;"></a>
-->
]]></content:encoded>
      <pubDate>Fri, 16 Nov 2012 13:00:00 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[The Daily WordPress Reference: get_all_category_ids()]]></title>
      <link>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=54f399cb27</link>
      <guid>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=54f399cb27</guid>
      <description><![CDATA[Is this email not displaying correctly? View it in your browser: http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=54f399cb27&e=[UNIQID]
   
The Daily WordPress Reference

The get_all_category_ids() function

Description
   Retrieves all category IDs. 

Usage
   <?php get_all_category_ids() ?> 

Parameters
   None.

Return Values
   object List of all of the category IDs.

Examples
   To print a list of categories by id: name
   
   <?php
   $category_ids = get_all_category_ids();
   foreach($category_ids as $cat_id) {
     $cat_name = get_cat_name($cat_id);
     echo $cat_id . ': ' . $cat_name;
   }
   ?>  

More informations
   http://codex.wordpress.org/Function_Reference/get_all_category_ids
  
   
  
DailyWordpressReference is not affiliated with WordPress in any way.
  __________________________________________________________________
  Links:
    [1]Follow the Daily WordPress Reference on Twitter
   
   
    [2]unsubscribe from this list | [3]update subscription preferences
     Links:
       1. Twitter Account not yet Authorized


       2. http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=54f399cb27
       3. http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]]]></description>
      <content:encoded><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>The Daily WordPress Reference: get_all_category_ids()</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<!-- Facebook sharing information tags -->
	<meta property="og:title" content="The Daily WordPress Reference: get_all_category_ids()">
		
<style type="text/css">
		a{
			color:#cc0000;
		}
		dl{
			margin:0;
		}
		h4{
			margin-bottom:0;
		}
		.example{
			border:1px dashed #059100;
			padding:3px;
		}
		.default_param_value{
			color:#777;
			padding-bottom:7px;
		}
		code{
			color:#3D5A6F;
			background:#F7F7F7;
		}
		pre{
			color:#3D5A6F;
			background:#F7F7F7;
			border-top:1px solid #dedede;
			border-bottom:1px solid #dedede;
			padding:3px 2px;
		}
		.list a{
			color:#cc0000;
			text-transform:uppercase;
			font-family:Verdana;
			font-size:11px;
			text-decoration:none;
		}
</style></head>
<body marginheight="0" topmargin="0" marginwidth="0" bgcolor="#c5c5c5" leftmargin="0">

<table cellspacing="0" border="0" style="background-image: url(http://www.dailydocumentation.com/wordpress/mailassets/bg.gif); background-color: #c5c5c5;" cellpadding="0" width="100%">
	
	<tr>
		
		<td valign="top">

			<table cellspacing="0" border="0" align="center" style="background: #fff; border-right: 1px solid #ccc; border-left: 1px solid #ccc;" cellpadding="0" width="600">
				<tr>
					<td valign="top">
            <!-- // Begin Template Preheader \\ -->	
						<table cellspacing="0" border="0" height="110" cellpadding="0" width="600">
							<tr>
                <!-- // Begin Module: Standard Preheader \\ -->
								<td class="header-text" height="50" valign="top" style="color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; padding: 0 20px;" width="540" colspan="2">
                  <div>
									<!--  -->
                  </div>
								</td>
                <!-- // End Module: Standard Preheader \\ -->
							</tr>
              <!-- // End Template Preheader \\ -->
							<tr>
                <!-- // Begin Template Header \\ -->
								<td class="main-title" height="13" valign="top" style="padding: 0 20px; font-size: 25px; font-family: Georgia;" width="600" colspan="2">
                  <!-- // Begin Module: Standard Header Image \\ -->
									<a href="http://www.dailydocumentation.com/wordpress/" style="color: black; text-decoration: none;">The Daily WordPress Reference</a>
                  <!-- // End Module: Standard Header Image \\ -->
								</td>
							</tr>
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
						</table>
            <!-- // End Template Header \\ -->
					</td>
				</tr>
				<tr>
					<td>
            <!-- // Begin Template Body \\ -->
            <!-- // Begin Module: Standard Content \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
              <tr>
                <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  <div><div style="text-align: left;">
	get_all_category_ids()</div>
</div>
                </td>
              </tr>
              <tr>
                <td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div>Retrieves all category IDs.</div>
                </td>
              </tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  Usage
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;?php&nbsp;get_all_category_ids()&nbsp;?&gt;</pre>
</div>
								</td>
							</tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Parameters
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                  <div>None.</div>
								</td>
							</tr>
							
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Return values
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><span class="sd">(<strong>object</strong> <strong>List</strong>)<br>
&nbsp;&nbsp; of all of the category IDs.</span></div>
								</td>
							</tr>

							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Examples
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><h4 style="margin-bottom: 0;">
	To print a list of categories by id: name</h4>
<pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;?php
$category_ids&nbsp;=&nbsp;get_all_category_ids();

foreach($category_ids&nbsp;as&nbsp;$cat_id)&nbsp;{
  $cat_name&nbsp;=&nbsp;get_cat_name($cat_id);
  echo&nbsp;$cat_id&nbsp;.&nbsp;&#39;:&nbsp;&#39;&nbsp;.&nbsp;$cat_name;
}
?&gt;&nbsp;</pre>
</div>
								</td>
							</tr>

              	<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									More information
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><a href="http://codex.wordpress.org/Function_Reference/get_all_category_ids" style="color: #cc0000;">http://codex.wordpress.org/Function_Reference/get_all_category_ids</a></div><br>
								</td>
							</tr>
							<tr>
                <td>
                  <table width="600">
                    <tr>
                      <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                        Liked this function?
                      </td>
                    </tr>
                    <tr>
                      <td width="70%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2"><div>
	You might also like these books:<br>

<a href="http://www.amazon.com/gp/product/0470916222/ref=as_li_tf_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0470916222" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0470916222&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0470916222" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/1119995965/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1119995965" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=1119995965&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=1119995965" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/0980455294/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0980455294" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0980455294&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0980455294" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

</div>
</td>
                      <td width="30%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; text-align: right; line-height: 20px;" colspan="2">Share it:<br>
<a href="http://twitter.com/share?url=http%3A%2F%2Feepurl.com%2Fq6Y_5&text=The+Daily+WordPress+Reference%3A+get_all_category_ids%28%29&count=none" target="_blank"><img src="http://cdn-images.mailchimp.com/social_connect_tweet.png" border="0" width="55" height="20" style="display:inline;" alt="share on Twitter"></a>&nbsp;<a href="http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=54f399cb27&fblike=true&e=[UNIQID]&socialproxy=http%3A%2F%2Fus4.campaign-archive.com%2Fsocial-proxy%2Ffacebook-like%3Fu%3D427153c482114d70024e1dc1a%26id%3D54f399cb27%26url%3Dhttp%253A%252F%252Fus4.campaign-archive.com%252F%253Fu%253D427153c482114d70024e1dc1a%2526id%253D54f399cb27%26title%3DThe%2520Daily%2520WordPress%2520Reference%253A%2520get_all_category_ids%2528%2529" title="Like The Daily WordPress Reference: get_all_category_ids() on Facebook" rel="socialproxy" id="fblike-"><img src="http://cdn-images.mailchimp.com/fb/like.gif" border="0" alt="Like The Daily WordPress Reference: get_all_category_ids() on Facebook" height="20" width="48" style="display:inline;"/></a><br>
&nbsp;Or Donate to the project:<br>
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EQZ8YJVVF79AN" style="color: #cc0000;"><img alt="Donata via Paypal" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif"></a><br>
(<a href="http://www.dailydocumentation.com/blog/faq/why-donate-to-this-project/" style="color: #cc0000;">Why Donate?</a>)</td>
                    </tr>
                  </table>
                </td>
              </tr>
						</table>
            <!-- // End Module: Standard Content \\ -->
						<!-- // End Template Body \\ -->
					</td>
				</tr>
				<tr>
					<td valign="top" width="600">
            <!-- // Begin Template Footer \\ -->
            <!-- // Begin Module: Standard Footer \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td valign="top">
									<table cellspacing="0" border="0" width="600" cellpadding="0">
										<tr>
											<td class="unsubscribe" valign="top" style="padding: 10px 20px; color: #999; font-size: 14px; font-family: Georgia; line-height: 20px;">
                        <div><br>
 </div>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td valign="top" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td class="copyright" height="100" align="center" valign="top" style="padding: 0 20px; color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; line-height: 20px;" width="600" colspan="2">
                  <div>
									&nbsp;<a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=54f399cb27">unsubscribe from this list</a> | <a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]">update subscription preferences</a>&nbsp; 
                  </div>
								</td>
							</tr>
						</table>
            <!-- // End Module: Standard Footer \\ -->
						<!-- // End Template Footer \\ -->
					</td>
				</tr>
			</table>
			
		</td>
	
	</tr>
	
</table>

</body>
</html>
<!--
<a href="./" style="color: #cc0000; text-decoration: none;"></a>
-->
]]></content:encoded>
      <pubDate>Tue, 13 Nov 2012 13:00:00 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[The Daily WordPress Reference: is_author()]]></title>
      <link>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=83751bbb5c</link>
      <guid>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=83751bbb5c</guid>
      <description><![CDATA[Is this email not displaying correctly? View it in your browser: http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=83751bbb5c&e=[UNIQID]
   
The Daily WordPress Reference

The is_author() function

Description
   This Conditional Tag checks if an Author archive page is being displayed. This is a boolean function, meaning it returns either TRUE or FALSE. 

Usage
   <?php is_author($author); ?> 

Parameters
   $author
       (string) (optional) Author ID or Author Nickname
   
           Default: None 

Return Values
   (boolean) 
       True on success, false on failure. 

Examples
   is_author();
   // When any Author page is being displayed.
   
   is_author('4');
   // When the archive page for Author number (ID) 4 is being displayed.
   
   is_author('Vivian');
   // When the archive page for the Author with Nickname "Vivian" is being displayed.
   
   is_author('john-jones');
   // When the archive page for the Author with Nicename "john-jones" is being displayed.
   
   is_author(array(4,'john-jones','Vivian'));
   // When the archive page for the author is either user ID 4, or user_nicename "john-jones", or nickname "Vivian".  Note: the array ability was added at Version 2.5.

More informations
   http://codex.wordpress.org/Function_Reference/is_author
  
   
  
DailyWordpressReference is not affiliated with WordPress in any way.
  __________________________________________________________________
  Links:
    [1]Follow the Daily WordPress Reference on Twitter
   
   
    [2]unsubscribe from this list | [3]update subscription preferences
     Links:
       1. Twitter Account not yet Authorized


       2. http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=83751bbb5c
       3. http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]]]></description>
      <content:encoded><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>The Daily WordPress Reference: is_author()</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<!-- Facebook sharing information tags -->
	<meta property="og:title" content="The Daily WordPress Reference: is_author()">
		
<style type="text/css">
		a{
			color:#cc0000;
		}
		dl{
			margin:0;
		}
		h4{
			margin-bottom:0;
		}
		.example{
			border:1px dashed #059100;
			padding:3px;
		}
		.default_param_value{
			color:#777;
			padding-bottom:7px;
		}
		code{
			color:#3D5A6F;
			background:#F7F7F7;
		}
		pre{
			color:#3D5A6F;
			background:#F7F7F7;
			border-top:1px solid #dedede;
			border-bottom:1px solid #dedede;
			padding:3px 2px;
		}
		.list a{
			color:#cc0000;
			text-transform:uppercase;
			font-family:Verdana;
			font-size:11px;
			text-decoration:none;
		}
</style></head>
<body marginheight="0" topmargin="0" marginwidth="0" bgcolor="#c5c5c5" leftmargin="0">

<table cellspacing="0" border="0" style="background-image: url(http://www.dailydocumentation.com/wordpress/mailassets/bg.gif); background-color: #c5c5c5;" cellpadding="0" width="100%">
	
	<tr>
		
		<td valign="top">

			<table cellspacing="0" border="0" align="center" style="background: #fff; border-right: 1px solid #ccc; border-left: 1px solid #ccc;" cellpadding="0" width="600">
				<tr>
					<td valign="top">
            <!-- // Begin Template Preheader \\ -->	
						<table cellspacing="0" border="0" height="110" cellpadding="0" width="600">
							<tr>
                <!-- // Begin Module: Standard Preheader \\ -->
								<td class="header-text" height="50" valign="top" style="color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; padding: 0 20px;" width="540" colspan="2">
                  <div>
									<!--  -->
                  </div>
								</td>
                <!-- // End Module: Standard Preheader \\ -->
							</tr>
              <!-- // End Template Preheader \\ -->
							<tr>
                <!-- // Begin Template Header \\ -->
								<td class="main-title" height="13" valign="top" style="padding: 0 20px; font-size: 25px; font-family: Georgia;" width="600" colspan="2">
                  <!-- // Begin Module: Standard Header Image \\ -->
									<a href="http://www.dailydocumentation.com/wordpress/" style="color: black; text-decoration: none;">The Daily WordPress Reference</a>
                  <!-- // End Module: Standard Header Image \\ -->
								</td>
							</tr>
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
						</table>
            <!-- // End Template Header \\ -->
					</td>
				</tr>
				<tr>
					<td>
            <!-- // Begin Template Body \\ -->
            <!-- // Begin Module: Standard Content \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
              <tr>
                <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  <div><div style="text-align: left;">
	is_author()</div>
</div>
                </td>
              </tr>
              <tr>
                <td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div>This <a href="http://codex.wordpress.org/Conditional_Tags" title="Conditional Tags" style="color: #cc0000;">Conditional Tag</a> checks if an Author archive page is being displayed. This is a boolean function, meaning it returns either TRUE or FALSE.</div>
                </td>
              </tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  Usage
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;?php&nbsp;is_author($author);&nbsp;?&gt;</pre>
</div>
								</td>
							</tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Parameters
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                  <div><dl style="margin: 0;">
	<dt>
		<strong>$author</strong></dt>
	<dd>
		(<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#String" title="How to Pass Tag Parameters" style="color: #cc0000;">string</a>) (optional) Author ID or Author Nickname<br>
		Default: None</dd>
</dl>
</div>
								</td>
							</tr>
							
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Return values
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><dl style="margin: 0;">
	<dt>
		(<strong>boolean</strong>)<br>
		&nbsp;&nbsp; True on success, false on failure.</dt>
</dl>
</div>
								</td>
							</tr>

							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Examples
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
is_author();
// When any Author page is being displayed.

is_author(&#39;4&#39;);
/********************************************
When the archive page for Author
number (ID) 4 is being displayed.
********************************************/

is_author(&#39;Vivian&#39;);
/********************************************
When the archive page for the Author with
Nickname &quot;Vivian&quot; is being displayed.
********************************************/

is_author(&#39;john-jones&#39;);
/********************************************
When the archive page for the Author with
Nicename &quot;john-jones&quot; is being displayed.
********************************************/

is_author(array(4,&#39;john-jones&#39;,&#39;Vivian&#39;));
/***********************************************
// When the archive page for the author is 
either user ID 4, or user_nicename &quot;john-jones&quot;,
or nickname &quot;Vivian&quot;.  Note: the array ability
was added at <a href="http://codex.wordpress.org/Version_2.5" title="Version 2.5" style="color: #cc0000;">Version 2.5</a>.
***********************************************/
</pre>
</div>
								</td>
							</tr>

              	<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									More information
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><a href="http://codex.wordpress.org/Function_Reference/is_author" style="color: #cc0000;">http://codex.wordpress.org/Function_Reference/is_author</a></div><br>
								</td>
							</tr>
							<tr>
                <td>
                  <table width="600">
                    <tr>
                      <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                        Liked this function?
                      </td>
                    </tr>
                    <tr>
                      <td width="70%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2"><div>
	You might also like these books:<br>

<a href="http://www.amazon.com/gp/product/0470916222/ref=as_li_tf_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0470916222" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0470916222&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0470916222" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/1119995965/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1119995965" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=1119995965&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=1119995965" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/0980455294/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0980455294" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0980455294&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0980455294" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

</div>
</td>
                      <td width="30%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; text-align: right; line-height: 20px;" colspan="2">Share it:<br>
<a href="http://twitter.com/share?url=http%3A%2F%2Feepurl.com%2Fq6YYf&text=The+Daily+WordPress+Reference%3A+is_author%28%29&count=none" target="_blank"><img src="http://cdn-images.mailchimp.com/social_connect_tweet.png" border="0" width="55" height="20" style="display:inline;" alt="share on Twitter"></a>&nbsp;<a href="http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=83751bbb5c&fblike=true&e=[UNIQID]&socialproxy=http%3A%2F%2Fus4.campaign-archive.com%2Fsocial-proxy%2Ffacebook-like%3Fu%3D427153c482114d70024e1dc1a%26id%3D83751bbb5c%26url%3Dhttp%253A%252F%252Fus4.campaign-archive.com%252F%253Fu%253D427153c482114d70024e1dc1a%2526id%253D83751bbb5c%26title%3DThe%2520Daily%2520WordPress%2520Reference%253A%2520is_author%2528%2529" title="Like The Daily WordPress Reference: is_author() on Facebook" rel="socialproxy" id="fblike-"><img src="http://cdn-images.mailchimp.com/fb/like.gif" border="0" alt="Like The Daily WordPress Reference: is_author() on Facebook" height="20" width="48" style="display:inline;"/></a><br>
&nbsp;Or Donate to the project:<br>
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EQZ8YJVVF79AN" style="color: #cc0000;"><img alt="Donata via Paypal" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif"></a><br>
(<a href="http://www.dailydocumentation.com/blog/faq/why-donate-to-this-project/" style="color: #cc0000;">Why Donate?</a>)</td>
                    </tr>
                  </table>
                </td>
              </tr>
						</table>
            <!-- // End Module: Standard Content \\ -->
						<!-- // End Template Body \\ -->
					</td>
				</tr>
				<tr>
					<td valign="top" width="600">
            <!-- // Begin Template Footer \\ -->
            <!-- // Begin Module: Standard Footer \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td valign="top">
									<table cellspacing="0" border="0" width="600" cellpadding="0">
										<tr>
											<td class="unsubscribe" valign="top" style="padding: 10px 20px; color: #999; font-size: 14px; font-family: Georgia; line-height: 20px;">
                        <div><br>
 </div>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td valign="top" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td class="copyright" height="100" align="center" valign="top" style="padding: 0 20px; color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; line-height: 20px;" width="600" colspan="2">
                  <div>
									&nbsp;<a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=83751bbb5c">unsubscribe from this list</a> | <a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]">update subscription preferences</a>&nbsp; 
                  </div>
								</td>
							</tr>
						</table>
            <!-- // End Module: Standard Footer \\ -->
						<!-- // End Template Footer \\ -->
					</td>
				</tr>
			</table>
			
		</td>
	
	</tr>
	
</table>

</body>
</html>
<!--
<a href="./" style="color: #cc0000; text-decoration: none;"></a>
-->
]]></content:encoded>
      <pubDate>Mon, 12 Nov 2012 13:00:00 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[The Daily WordPress Reference: wp_schedule_single_event()]]></title>
      <link>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=d4112a1b5e</link>
      <guid>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=d4112a1b5e</guid>
      <description><![CDATA[Is this email not displaying correctly? View it in your browser: http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=d4112a1b5e&e=[UNIQID]
   
The Daily WordPress Reference

The wp_schedule_single_event() function

Description
   Schedules a hook which will be executed once by the WordPress actions core at a time which you specify. The action will fire off when someone visits your WordPress site, if the schedule time has passed. 

Usage
   <?php wp_schedule_single_event(time(), 'my_schedule_hook'); ?> 
   
   Note that scheduling an event within 10 minutes of an event of the same name will be ignored, unless you pass unique values for $args to each scheduled event. See Function_Reference/wp_next_scheduled for more information.
   
   Attempts to schedule an event after an event of the same name and $args will also be ignored. 

Parameters
   $timestamp
       (integer) (required) The time you want the event to occur. This must be in a UNIX timestamp format.
   
           Default: None 
   
   $hook
       (string) (required) The name of an action hook to execute.
   
           Default: None 
   
   $args
       (array) (optional) Arguments to pass to the hook function(s)
   
           Default: None 

Return Values
   false | null) 
       False if the event was cancelled by a plugin, Null otherwise. 

Examples
   Schedule an event one hour from now
   
   function do_this_in_an_hour() {
   // do something
   }
   add_action('my_new_event','do_this_in_an_hour');
   
   // put this line inside a function, 
   // presumably in response to something the user does
   // otherwise it will schedule a new event on every page visit
   
   wp_schedule_single_event(time()+3600, 'my_new_event');
   
   // time()+3600 = one hour from now.

More informations
   http://codex.wordpress.org/Function_Reference/wp_schedule_single_event
  
   
  
DailyWordpressReference is not affiliated with WordPress in any way.
  __________________________________________________________________
  Links:
    [1]Follow the Daily WordPress Reference on Twitter
   
   
    [2]unsubscribe from this list | [3]update subscription preferences
     Links:
       1. Twitter Account not yet Authorized


       2. http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=d4112a1b5e
       3. http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]]]></description>
      <content:encoded><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>The Daily WordPress Reference: wp_schedule_single_event()</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<!-- Facebook sharing information tags -->
	<meta property="og:title" content="The Daily WordPress Reference: wp_schedule_single_event()">
		
<style type="text/css">
		a{
			color:#cc0000;
		}
		dl{
			margin:0;
		}
		h4{
			margin-bottom:0;
		}
		.example{
			border:1px dashed #059100;
			padding:3px;
		}
		.default_param_value{
			color:#777;
			padding-bottom:7px;
		}
		code{
			color:#3D5A6F;
			background:#F7F7F7;
		}
		pre{
			color:#3D5A6F;
			background:#F7F7F7;
			border-top:1px solid #dedede;
			border-bottom:1px solid #dedede;
			padding:3px 2px;
		}
		.list a{
			color:#cc0000;
			text-transform:uppercase;
			font-family:Verdana;
			font-size:11px;
			text-decoration:none;
		}
</style></head>
<body marginheight="0" topmargin="0" marginwidth="0" bgcolor="#c5c5c5" leftmargin="0">

<table cellspacing="0" border="0" style="background-image: url(http://www.dailydocumentation.com/wordpress/mailassets/bg.gif); background-color: #c5c5c5;" cellpadding="0" width="100%">
	
	<tr>
		
		<td valign="top">

			<table cellspacing="0" border="0" align="center" style="background: #fff; border-right: 1px solid #ccc; border-left: 1px solid #ccc;" cellpadding="0" width="600">
				<tr>
					<td valign="top">
            <!-- // Begin Template Preheader \\ -->	
						<table cellspacing="0" border="0" height="110" cellpadding="0" width="600">
							<tr>
                <!-- // Begin Module: Standard Preheader \\ -->
								<td class="header-text" height="50" valign="top" style="color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; padding: 0 20px;" width="540" colspan="2">
                  <div>
									<!--  -->
                  </div>
								</td>
                <!-- // End Module: Standard Preheader \\ -->
							</tr>
              <!-- // End Template Preheader \\ -->
							<tr>
                <!-- // Begin Template Header \\ -->
								<td class="main-title" height="13" valign="top" style="padding: 0 20px; font-size: 25px; font-family: Georgia;" width="600" colspan="2">
                  <!-- // Begin Module: Standard Header Image \\ -->
									<a href="http://www.dailydocumentation.com/wordpress/" style="color: black; text-decoration: none;">The Daily WordPress Reference</a>
                  <!-- // End Module: Standard Header Image \\ -->
								</td>
							</tr>
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
						</table>
            <!-- // End Template Header \\ -->
					</td>
				</tr>
				<tr>
					<td>
            <!-- // Begin Template Body \\ -->
            <!-- // Begin Module: Standard Content \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
              <tr>
                <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  <div><div style="text-align: left;">
	wp_schedule_single_event()</div>
</div>
                </td>
              </tr>
              <tr>
                <td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div>Schedules a hook which will be executed once by the WordPress actions core at a time which you specify. The action will fire off when someone visits your WordPress site, if the schedule time has passed.</div>
                </td>
              </tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  Usage
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;?php
wp_schedule_single_event(time(),&nbsp;&#39;my_schedule_hook&#39;);&nbsp;
?&gt;&nbsp;</pre>
<p>
	Note that scheduling an event within 10 minutes of an event of the same name will be ignored, unless you pass unique values for $args to each scheduled event. See <a href="http://codex.wordpress.org/Function_Reference/wp_next_scheduled" title="Function Reference/wp next scheduled" style="color: #cc0000;">Function_Reference/wp_next_scheduled</a> for more information.</p>
<p>
	Attempts to schedule an event after an event of the same name and $args will also be ignored.</p>
</div>
								</td>
							</tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Parameters
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                  <div><dl style="margin: 0;">
	<dt>
		<strong><tt>$timestamp</tt></strong></dt>
	<dd>
		(<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#Integer" title="How to Pass Tag Parameters" style="color: #cc0000;"><i>integer</i></a>) (<i>required</i>) The time you want the event to occur. This must be in a UNIX timestamp format.
		<dl style="margin: 0;">
			<dd>
				Default: <i>None</i></dd>
		</dl>
	</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong><tt>$hook</tt></strong></dt>
	<dd>
		(<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#String" title="How to Pass Tag Parameters" style="color: #cc0000;"><i>string</i></a>) (<i>required</i>) The name of an action hook to execute.
		<dl style="margin: 0;">
			<dd>
				Default: <i>None</i></dd>
		</dl>
	</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong><tt>$args</tt></strong></dt>
	<dd>
		(<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#Array" title="How to Pass Tag Parameters" style="color: #cc0000;"><i>array</i></a>) (<i>optional</i>) Arguments to pass to the hook function(s)
		<dl style="margin: 0;">
			<dd>
				Default: <i>None</i></dd>
		</dl>
	</dd>
</dl>
</div>
								</td>
							</tr>
							
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Return values
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><dl style="margin: 0;">
	<dt>
		(<strong>false</strong> | <strong>null</strong>)<br>
		&nbsp;&nbsp;&nbsp; False if the event was cancelled by a plugin, Null otherwise.</dt>
</dl>
</div>
								</td>
							</tr>

							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Examples
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><h4 style="margin-bottom: 0;">
	Schedule an event one hour from now</h4>
<pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
function do_this_in_an_hour() {
// do something
}
add_action(&#39;my_new_event&#39;,&#39;do_this_in_an_hour&#39;);

// put this line inside a function, 
// presumably in response to something the user does
// otherwise it will schedule a new event on every page visit

wp_schedule_single_event(time()+3600, &#39;my_new_event&#39;);

// time()+3600 = one hour from now.

</pre>
</div>
								</td>
							</tr>

              	<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									More information
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><a href="http://codex.wordpress.org/Function_Reference/wp_schedule_single_event" style="color: #cc0000;">http://codex.wordpress.org/Function_Reference/wp_schedule_single_event</a></div><br>
								</td>
							</tr>
							<tr>
                <td>
                  <table width="600">
                    <tr>
                      <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                        Liked this function?
                      </td>
                    </tr>
                    <tr>
                      <td width="70%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2"><div>
	You might also like these books:<br>

<a href="http://www.amazon.com/gp/product/0470916222/ref=as_li_tf_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0470916222" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0470916222&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0470916222" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/1119995965/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1119995965" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=1119995965&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=1119995965" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/0980455294/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0980455294" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0980455294&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0980455294" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

</div>
</td>
                      <td width="30%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; text-align: right; line-height: 20px;" colspan="2">Share it:<br>
<a href="http://twitter.com/share?url=http%3A%2F%2Feepurl.com%2Fq6YQr&text=The+Daily+WordPress+Reference%3A+wp_schedule_single_event%28%29&count=none" target="_blank"><img src="http://cdn-images.mailchimp.com/social_connect_tweet.png" border="0" width="55" height="20" style="display:inline;" alt="share on Twitter"></a>&nbsp;<a href="http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=d4112a1b5e&fblike=true&e=[UNIQID]&socialproxy=http%3A%2F%2Fus4.campaign-archive.com%2Fsocial-proxy%2Ffacebook-like%3Fu%3D427153c482114d70024e1dc1a%26id%3Dd4112a1b5e%26url%3Dhttp%253A%252F%252Fus4.campaign-archive.com%252F%253Fu%253D427153c482114d70024e1dc1a%2526id%253Dd4112a1b5e%26title%3DThe%2520Daily%2520WordPress%2520Reference%253A%2520wp_schedule_single_event%2528%2529" title="Like The Daily WordPress Reference: wp_schedule_single_event() on Facebook" rel="socialproxy" id="fblike-"><img src="http://cdn-images.mailchimp.com/fb/like.gif" border="0" alt="Like The Daily WordPress Reference: wp_schedule_single_event() on Facebook" height="20" width="48" style="display:inline;"/></a><br>
&nbsp;Or Donate to the project:<br>
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EQZ8YJVVF79AN" style="color: #cc0000;"><img alt="Donata via Paypal" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif"></a><br>
(<a href="http://www.dailydocumentation.com/blog/faq/why-donate-to-this-project/" style="color: #cc0000;">Why Donate?</a>)</td>
                    </tr>
                  </table>
                </td>
              </tr>
						</table>
            <!-- // End Module: Standard Content \\ -->
						<!-- // End Template Body \\ -->
					</td>
				</tr>
				<tr>
					<td valign="top" width="600">
            <!-- // Begin Template Footer \\ -->
            <!-- // Begin Module: Standard Footer \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td valign="top">
									<table cellspacing="0" border="0" width="600" cellpadding="0">
										<tr>
											<td class="unsubscribe" valign="top" style="padding: 10px 20px; color: #999; font-size: 14px; font-family: Georgia; line-height: 20px;">
                        <div><br>
 </div>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td valign="top" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td class="copyright" height="100" align="center" valign="top" style="padding: 0 20px; color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; line-height: 20px;" width="600" colspan="2">
                  <div>
									&nbsp;<a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=d4112a1b5e">unsubscribe from this list</a> | <a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]">update subscription preferences</a>&nbsp; 
                  </div>
								</td>
							</tr>
						</table>
            <!-- // End Module: Standard Footer \\ -->
						<!-- // End Template Footer \\ -->
					</td>
				</tr>
			</table>
			
		</td>
	
	</tr>
	
</table>

</body>
</html>
<!--
<a href="./" style="color: #cc0000; text-decoration: none;"></a>
-->
]]></content:encoded>
      <pubDate>Sat, 10 Nov 2012 13:00:00 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[The Daily WordPress Reference: wp_nonce_field()]]></title>
      <link>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=45512fd624</link>
      <guid>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=45512fd624</guid>
      <description><![CDATA[Is this email not displaying correctly? View it in your browser: http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=45512fd624&e=[UNIQID]
   
The Daily WordPress Reference

The wp_nonce_field() function

Description
   Retrieve or display nonce hidden field for forms.
   
   The nonce field is used to validate that the contents of the form came from the location on the current site and not somewhere else. The nonce does not offer absolute protection, but should protect against most cases. It is very important to use nonce fields in forms.
   
   If you set $echo to false and set $referer to true, then you will need to retrieve the referer field using wp_referer_field(). If you have the $referer set to true and are echoing the nonce field, it will also echo the referer field.
   
   The $action and $name are optional, but if you want to have better security, it is strongly suggested to set those two parameters. It is easier to just call the function without any parameters, because validation of the nonce doesn't require any parameters, but since crackers know what the default is it won't be difficult for them to find a way around your nonce and cause damage.
   
   The input name will be whatever $name value you gave. The input value will be the nonce creation value. 

Usage
   <?php wp_nonce_field( $action, $name, $referer, $echo ) ?> 

Parameters
   $action
       (string) (optional) Action name. This is the unique identifier for this nonce. Optional but recommended.
   
           Default: -1 
   
   $name
       (string) (optional) Nonce name. This is the name of the hidden field form variable (once submitted you can access the nonce via $_POST[$name]).
   
           Default: "_wpnonce" 
   
   $referer
       (boolean) (optional) default true. Whether to set the referer field for validation.
   
           Default: true 
   
   $echo
       (boolean) (optional) default true. Whether to display or return hidden form field.
   
           Default: true 

Return Values
   (string) 
       Nonce field. 

Examples
   While less secure than the examples that follow, this is the simplest implementation which omits all arguments. In your form add the following:
   
      <?php wp_nonce_field(); ?>
   
   It's better to name your action and nonce in your form. Enter values for the first and second arguments to print the necessary hidden field:
   
   <form method="post">
      <!-- some inputs here ... -->
      <?php wp_nonce_field('name_of_my_action','name_of_nonce_field'); ?>
   </form>
   
   Then in the page where it is being submitted to, you may verify it using the wp_verify_nonce() function. Notice that you have to manually retrieve the nonce (from the $_POST array in this example), and the name of the action is the 2nd parameter instead of the first:
   
   <?php
   if ( empty($_POST) || !wp_verify_nonce($_POST['name_of_nonce_field'],'name_of_my_action') )
   {
      print 'Sorry, your nonce did not verify.';
      exit;
   }
   else
   {
      // process form data
   }
   
   
   If you are submitting and processing the form inside the WP administration area, you may verify the nonce using the check_admin_referer() function:
   
   <?php
   // if this fails, check_admin_referer() will automatically print a "failed" page and die.
   if ( !empty($_POST) && check_admin_referer('name_of_my_action','name_of_nonce_field') )
   {
      // process form data
   }

More informations
   http://codex.wordpress.org/Function_Reference/wp_nonce_field
  
   
  
DailyWordpressReference is not affiliated with WordPress in any way.
  __________________________________________________________________
  Links:
    [1]Follow the Daily WordPress Reference on Twitter
   
   
    [2]unsubscribe from this list | [3]update subscription preferences
     Links:
       1. Twitter Account not yet Authorized


       2. http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=45512fd624
       3. http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]]]></description>
      <content:encoded><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>The Daily WordPress Reference: wp_nonce_field()</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<!-- Facebook sharing information tags -->
	<meta property="og:title" content="The Daily WordPress Reference: wp_nonce_field()">
		
<style type="text/css">
		a{
			color:#cc0000;
		}
		dl{
			margin:0;
		}
		h4{
			margin-bottom:0;
		}
		.example{
			border:1px dashed #059100;
			padding:3px;
		}
		.default_param_value{
			color:#777;
			padding-bottom:7px;
		}
		code{
			color:#3D5A6F;
			background:#F7F7F7;
		}
		pre{
			color:#3D5A6F;
			background:#F7F7F7;
			border-top:1px solid #dedede;
			border-bottom:1px solid #dedede;
			padding:3px 2px;
		}
		.list a{
			color:#cc0000;
			text-transform:uppercase;
			font-family:Verdana;
			font-size:11px;
			text-decoration:none;
		}
</style></head>
<body marginheight="0" topmargin="0" marginwidth="0" bgcolor="#c5c5c5" leftmargin="0">

<table cellspacing="0" border="0" style="background-image: url(http://www.dailydocumentation.com/wordpress/mailassets/bg.gif); background-color: #c5c5c5;" cellpadding="0" width="100%">
	
	<tr>
		
		<td valign="top">

			<table cellspacing="0" border="0" align="center" style="background: #fff; border-right: 1px solid #ccc; border-left: 1px solid #ccc;" cellpadding="0" width="600">
				<tr>
					<td valign="top">
            <!-- // Begin Template Preheader \\ -->	
						<table cellspacing="0" border="0" height="110" cellpadding="0" width="600">
							<tr>
                <!-- // Begin Module: Standard Preheader \\ -->
								<td class="header-text" height="50" valign="top" style="color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; padding: 0 20px;" width="540" colspan="2">
                  <div>
									<!--  -->
                  </div>
								</td>
                <!-- // End Module: Standard Preheader \\ -->
							</tr>
              <!-- // End Template Preheader \\ -->
							<tr>
                <!-- // Begin Template Header \\ -->
								<td class="main-title" height="13" valign="top" style="padding: 0 20px; font-size: 25px; font-family: Georgia;" width="600" colspan="2">
                  <!-- // Begin Module: Standard Header Image \\ -->
									<a href="http://www.dailydocumentation.com/wordpress/" style="color: black; text-decoration: none;">The Daily WordPress Reference</a>
                  <!-- // End Module: Standard Header Image \\ -->
								</td>
							</tr>
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
						</table>
            <!-- // End Template Header \\ -->
					</td>
				</tr>
				<tr>
					<td>
            <!-- // Begin Template Body \\ -->
            <!-- // Begin Module: Standard Content \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
              <tr>
                <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  <div><div style="text-align: left;">
	wp_nonce_field()</div>
</div>
                </td>
              </tr>
              <tr>
                <td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><p>
	Retrieve or display <a href="http://en.wikipedia.org/wiki/Cryptographic_nonce" title="wikipedia:Cryptographic nonce" style="color: #cc0000;">nonce</a> hidden field for forms.</p>
<p>
	The nonce field is used to validate that the contents of the form came from the location on the current site and not somewhere else. The nonce does not offer absolute protection, but should protect against most cases. It is very important to use nonce fields in forms.</p>
<p>
	If you set $echo to false and set $referer to true, then you will need to retrieve the referer field using <a href="http://codex.wordpress.org/Function_Reference/wp_referer_field" title="Function Reference/wp referer field" style="color: #cc0000;">wp_referer_field()</a>. If you have the $referer set to true and are echoing the nonce field, it will also echo the referer field.</p>
<p>
	The $action and $name are optional, but if you want to have better security, it is strongly suggested to set those two parameters. It is easier to just call the function without any parameters, because validation of the nonce doesn&#39;t require any parameters, but since crackers know what the default is it won&#39;t be difficult for them to find a way around your nonce and cause damage.</p>
<p>
	The input name will be whatever $name value you gave. The input value will be the nonce creation value.</p>
</div>
                </td>
              </tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  Usage
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;?php
wp_nonce_field(&nbsp;$action,&nbsp;$name,&nbsp;$referer,&nbsp;$echo&nbsp;)&nbsp;
?&gt;</pre>
</div>
								</td>
							</tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Parameters
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                  <div><dl style="margin: 0;">
	<dt>
		<strong>$action</strong></dt>
	<dd>
		(<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#String" title="How to Pass Tag Parameters" style="color: #cc0000;">string</a>) (optional) Action name. This is the unique identifier for this nonce. Optional but recommended.
		<dl style="margin: 0;">
			<dd>
				Default: -1</dd>
		</dl>
	</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>$name</strong></dt>
	<dd>
		(<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#String" title="How to Pass Tag Parameters" style="color: #cc0000;">string</a>) (optional) <a href="http://en.wikipedia.org/wiki/Cryptographic_nonce" title="wikipedia:Cryptographic nonce" style="color: #cc0000;">Nonce</a> name. This is the name of the hidden field form variable (once submitted you can access the nonce via $_POST[$name]).
		<dl style="margin: 0;">
			<dd>
				Default: &quot;_wpnonce&quot;</dd>
		</dl>
	</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>$referer</strong></dt>
	<dd>
		(<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#Boolean" title="How to Pass Tag Parameters" style="color: #cc0000;">boolean</a>) (optional) default true. Whether to set the referer field for validation.
		<dl style="margin: 0;">
			<dd>
				Default: true</dd>
		</dl>
	</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>$echo</strong></dt>
	<dd>
		(<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#Boolean" title="How to Pass Tag Parameters" style="color: #cc0000;">boolean</a>) (optional) default true. Whether to display or return hidden form field.
		<dl style="margin: 0;">
			<dd>
				Default: true</dd>
		</dl>
	</dd>
</dl>
</div>
								</td>
							</tr>
							
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Return values
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div>(<strong>string</strong>)<br>
&nbsp;&nbsp;&nbsp; Nonce field.</div>
								</td>
							</tr>

							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Examples
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><h4 style="margin-bottom: 0;">
	While less secure than the examples that follow, this is the simplest implementation which omits all arguments. In your form add the following:</h4>
<pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;?php wp_nonce_field();&nbsp;?&gt;
</pre>
<h4 style="margin-bottom: 0;">
	It&#39;s better to name your action and nonce in your form. Enter values for the first and second arguments to print the necessary hidden field:</h4>
<pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;form method=&quot;post&quot;&gt;
   &lt;!-- some inputs here ... --&gt;
   &lt;?php
   wp_nonce_field(&#39;name_of_my_action&#39;,
                  &#39;name_of_nonce_field&#39;);&nbsp;
   ?&gt;
&lt;/form&gt;
</pre>
<h4 style="margin-bottom: 0;">
	Then in the page where it is being submitted to, you may verify it using the <a href="http://codex.wordpress.org/Function_Reference/wp_verify_nonce" title="Function Reference/wp verify nonce" style="color: #cc0000;">wp_verify_nonce()</a> function. Notice that you have to manually retrieve the nonce (from the $_POST array in this example), and the name of the action is the 2nd parameter instead of the first:</h4>
<pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;?php
if ( empty($_POST) ||&nbsp;
    !wp_verify_nonce($_POST[&#39;name_of_nonce_field&#39;],
                            &#39;name_of_my_action&#39;) )
{
   print &#39;Sorry, your nonce did not verify.&#39;;
   exit;
}
else
{
   // process form data
}

</pre>
<h4 style="margin-bottom: 0;">
	If you are submitting and processing the form inside the WP administration area, you may verify the nonce using the <a href="http://codex.wordpress.org/Function_Reference/check_admin_referer" title="Function Reference/check admin referer" style="color: #cc0000;">check_admin_referer()</a> function:</h4>
<pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;?php
/****************************************
if this fails, check_admin_referer()
will automatically print a &quot;failed&quot; page and die.
****************************************/
if (&nbsp;!empty($_POST) &amp;&amp; 
     check_admin_referer(&#39;name_of_my_action&#39;,
                         &#39;name_of_nonce_field&#39;) )
{
   // process form data
}
</pre>
</div>
								</td>
							</tr>

              	<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									More information
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><a href="http://codex.wordpress.org/Function_Reference/wp_nonce_field" style="color: #cc0000;">http://codex.wordpress.org/Function_Reference/wp_nonce_field</a></div><br>
								</td>
							</tr>
							<tr>
                <td>
                  <table width="600">
                    <tr>
                      <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                        Liked this function?
                      </td>
                    </tr>
                    <tr>
                      <td width="70%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2"><div>
	You might also like these books:<br>

<a href="http://www.amazon.com/gp/product/0470916222/ref=as_li_tf_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0470916222" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0470916222&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0470916222" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/1119995965/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1119995965" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=1119995965&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=1119995965" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/0980455294/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0980455294" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0980455294&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0980455294" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

</div>
</td>
                      <td width="30%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; text-align: right; line-height: 20px;" colspan="2">Share it:<br>
<a href="http://twitter.com/share?url=http%3A%2F%2Feepurl.com%2Fq6YA1&text=The+Daily+WordPress+Reference%3A+wp_nonce_field%28%29&count=none" target="_blank"><img src="http://cdn-images.mailchimp.com/social_connect_tweet.png" border="0" width="55" height="20" style="display:inline;" alt="share on Twitter"></a>&nbsp;<a href="http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=45512fd624&fblike=true&e=[UNIQID]&socialproxy=http%3A%2F%2Fus4.campaign-archive.com%2Fsocial-proxy%2Ffacebook-like%3Fu%3D427153c482114d70024e1dc1a%26id%3D45512fd624%26url%3Dhttp%253A%252F%252Fus4.campaign-archive.com%252F%253Fu%253D427153c482114d70024e1dc1a%2526id%253D45512fd624%26title%3DThe%2520Daily%2520WordPress%2520Reference%253A%2520wp_nonce_field%2528%2529" title="Like The Daily WordPress Reference: wp_nonce_field() on Facebook" rel="socialproxy" id="fblike-"><img src="http://cdn-images.mailchimp.com/fb/like.gif" border="0" alt="Like The Daily WordPress Reference: wp_nonce_field() on Facebook" height="20" width="48" style="display:inline;"/></a><br>
&nbsp;Or Donate to the project:<br>
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EQZ8YJVVF79AN" style="color: #cc0000;"><img alt="Donata via Paypal" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif"></a><br>
(<a href="http://www.dailydocumentation.com/blog/faq/why-donate-to-this-project/" style="color: #cc0000;">Why Donate?</a>)</td>
                    </tr>
                  </table>
                </td>
              </tr>
						</table>
            <!-- // End Module: Standard Content \\ -->
						<!-- // End Template Body \\ -->
					</td>
				</tr>
				<tr>
					<td valign="top" width="600">
            <!-- // Begin Template Footer \\ -->
            <!-- // Begin Module: Standard Footer \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td valign="top">
									<table cellspacing="0" border="0" width="600" cellpadding="0">
										<tr>
											<td class="unsubscribe" valign="top" style="padding: 10px 20px; color: #999; font-size: 14px; font-family: Georgia; line-height: 20px;">
                        <div><br>
 </div>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td valign="top" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td class="copyright" height="100" align="center" valign="top" style="padding: 0 20px; color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; line-height: 20px;" width="600" colspan="2">
                  <div>
									&nbsp;<a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=45512fd624">unsubscribe from this list</a> | <a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]">update subscription preferences</a>&nbsp; 
                  </div>
								</td>
							</tr>
						</table>
            <!-- // End Module: Standard Footer \\ -->
						<!-- // End Template Footer \\ -->
					</td>
				</tr>
			</table>
			
		</td>
	
	</tr>
	
</table>

</body>
</html>
<!--
<a href="./" style="color: #cc0000; text-decoration: none;"></a>
-->
]]></content:encoded>
      <pubDate>Fri, 09 Nov 2012 13:00:00 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[The Daily WordPress Reference: add_node()]]></title>
      <link>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=a0cd1fb954</link>
      <guid>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=a0cd1fb954</guid>
      <description><![CDATA[Is this email not displaying correctly? View it in your browser: http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=a0cd1fb954&e=[UNIQID]
   
The Daily WordPress Reference

The add_node() function

Description
   This function is a method of the $wp_admin_bar global object (see: WP_Admin_Bar), and can be used to add a new item to the Toolbar. You can also use it to change the properties of an item that is already in the Toolbar.
   
   The Toolbar replaces the Admin Bar since WordPress Version 3.3.
   
   Toolbar items are also called "nodes". Nodes can be parents for other nodes, which creates dropdown menus. Group nodes together with add_group() to create distinct sections in a Toolbar menu.
   
   note: This function is a method of the WP_Admin_Bar class and $wp_admin_bar global object, which may not exist except during the 'admin_bar_menu' or 'wp_before_admin_bar_render' hooks. 

Usage
   <?php $wp_admin_bar->add_node( $args ); ?> 

Parameters
   $args
       (array) (required) An array of arguments.
   
           Default: None 
   
   Arguments
   
   id
       (string) (required) The ID of the node.
   
           Default: false 
   
   title
       (string) (optional) The text that will be visible in the Toolbar. Including html tags is allowed.
   
           Default: false 
   
   parent
       (string) (optional) The ID of the parent node.
   
           Default: false 
   
   href
       (string) (optional) The 'href' attribute for the link. If 'href' is not set the node will be a text node.
   
           Default: false 
   
   group
       (boolean) (optional) This will make the node a group (node) if set to 'true'. Group nodes are not visible in the Toolbar, but nodes added to it are. See add_group().
   
           Default: false 
   
   meta
       (array) (optional) An array of meta data for the node.
   
           Default: array() 
   
           'html' - The html used for the node.
           'class' - The class attribute for the list item containing the link or text node.
           'onclick' - The onclick attribute for the link. This will only be set if the 'href' argument is present.
           'target' - The target attribute for the link. This will only be set if the 'href' argument is present.
           'title' - The title attribute. Will be set to the link or to a div containing a text node.
           'tabindex' - The tabindex attribute. Will be set to the link or to a div containing a text node. 

Return Values
   None.

Examples
   Add a Page to the Toolbar
   
   This example will add a Page with a "my-toolbar-page" class to the Toolbar. It will be a top level item because the 'parent' argument is not set (it has no parent node). Put this in your theme's functions.php file.
   
   add_action( 'admin_bar_menu', 'toolbar_link_to_mypage', 999 );
   
   function toolbar_link_to_mypage( $wp_admin_bar ) {
     global $wp_admin_bar;
     $args = array(
       'id' => 'my_page',
       'title' => 'My Page',
       'href' => 'http://mysite.com/my-page/',
       'meta' => array('class' => 'my-toolbar-page')
     );
   
     $wp_admin_bar->add_node($args);
   }

More informations
   http://codex.wordpress.org/Function_Reference/add_node
   
  
DailyWordpressReference is not affiliated with WordPress in any way.
  __________________________________________________________________
  Links:
    [1]Follow the Daily WordPress Reference on Twitter
   
   
    [2]unsubscribe from this list | [3]update subscription preferences
     Links:
       1. Twitter Account not yet Authorized


       2. http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=a0cd1fb954
       3. http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]]]></description>
      <content:encoded><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>The Daily WordPress Reference: add_node()</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<!-- Facebook sharing information tags -->
	<meta property="og:title" content="The Daily WordPress Reference: add_node()">
		
<style type="text/css">
		a{
			color:#cc0000;
		}
		dl{
			margin:0;
		}
		h4{
			margin-bottom:0;
		}
		.example{
			border:1px dashed #059100;
			padding:3px;
		}
		.default_param_value{
			color:#777;
			padding-bottom:7px;
		}
		code{
			color:#3D5A6F;
			background:#F7F7F7;
		}
		pre{
			color:#3D5A6F;
			background:#F7F7F7;
			border-top:1px solid #dedede;
			border-bottom:1px solid #dedede;
			padding:3px 2px;
		}
		.list a{
			color:#cc0000;
			text-transform:uppercase;
			font-family:Verdana;
			font-size:11px;
			text-decoration:none;
		}
</style></head>
<body marginheight="0" topmargin="0" marginwidth="0" bgcolor="#c5c5c5" leftmargin="0">

<table cellspacing="0" border="0" style="background-image: url(http://www.dailydocumentation.com/wordpress/mailassets/bg.gif); background-color: #c5c5c5;" cellpadding="0" width="100%">
	
	<tr>
		
		<td valign="top">

			<table cellspacing="0" border="0" align="center" style="background: #fff; border-right: 1px solid #ccc; border-left: 1px solid #ccc;" cellpadding="0" width="600">
				<tr>
					<td valign="top">
            <!-- // Begin Template Preheader \\ -->	
						<table cellspacing="0" border="0" height="110" cellpadding="0" width="600">
							<tr>
                <!-- // Begin Module: Standard Preheader \\ -->
								<td class="header-text" height="50" valign="top" style="color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; padding: 0 20px;" width="540" colspan="2">
                  <div>
									<!--  -->
                  </div>
								</td>
                <!-- // End Module: Standard Preheader \\ -->
							</tr>
              <!-- // End Template Preheader \\ -->
							<tr>
                <!-- // Begin Template Header \\ -->
								<td class="main-title" height="13" valign="top" style="padding: 0 20px; font-size: 25px; font-family: Georgia;" width="600" colspan="2">
                  <!-- // Begin Module: Standard Header Image \\ -->
									<a href="http://www.dailydocumentation.com/wordpress/" style="color: black; text-decoration: none;">The Daily WordPress Reference</a>
                  <!-- // End Module: Standard Header Image \\ -->
								</td>
							</tr>
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
						</table>
            <!-- // End Template Header \\ -->
					</td>
				</tr>
				<tr>
					<td>
            <!-- // Begin Template Body \\ -->
            <!-- // Begin Module: Standard Content \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
              <tr>
                <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  <div><div style="text-align: left;">
	add_node()</div>
</div>
                </td>
              </tr>
              <tr>
                <td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><p>
	This function is a method of the $wp_admin_bar global object (see: <a href="http://codex.wordpress.org/Class_Reference/WP_Admin_Bar" title="Class Reference/WP Admin Bar" style="color: #cc0000;">WP_Admin_Bar</a>), and can be used to add a new item to the <a href="http://codex.wordpress.org/Glossary#Toolbar" title="Glossary" style="color: #cc0000;">Toolbar</a>. You can also use it to change the properties of an item that is already in the Toolbar.</p>
<p>
	The Toolbar replaces the <a href="http://codex.wordpress.org/Glossary#Admin_Bar" title="Glossary" style="color: #cc0000;">Admin Bar</a> since WordPress <a href="http://codex.wordpress.org/Version_3.3" title="Version 3.3" style="color: #cc0000;">Version 3.3</a>.</p>
<p>
	Toolbar items are also called &quot;nodes&quot;. Nodes can be parents for other nodes, which creates dropdown menus. Group nodes together with <a href="http://codex.wordpress.org/Function_Reference/add_group" title="Function Reference/add group" style="color: #cc0000;">add_group()</a> to create distinct sections in a Toolbar menu.</p>
<p>
	Note: This function is a method of the <a href="http://codex.wordpress.org/Class_Reference/WP_Admin_Bar" title="Class Reference/WP Admin Bar" style="color: #cc0000;">WP_Admin_Bar</a> class and $wp_admin_bar global object, which may not exist except during the <a href="http://codex.wordpress.org/index.php?title=Plugin_API/Action_Reference/admin_bar_menu&action=edit&redlink=1" title="Plugin API/Action Reference/admin bar menu (page does not exist)" style="color: #cc0000;">&#39;admin_bar_menu&#39;</a> or <a href="http://codex.wordpress.org/Plugin_API/Action_Reference/wp_before_admin_bar_render" title="Plugin API/Action Reference/wp before admin bar render" style="color: #cc0000;">&#39;wp_before_admin_bar_render&#39;</a> hooks.</p>
</div>
                </td>
              </tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  Usage
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;?php&nbsp;$wp_admin_bar-&gt;add_node(&nbsp;$args&nbsp;);&nbsp;?&gt;</pre>
</div>
								</td>
							</tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Parameters
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                  <div><dl style="margin: 0;">
	<dt>
		<strong>$args</strong></dt>
	<dd>
		(<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#Array" title="How to Pass Tag Parameters" style="color: #cc0000;">array</a>) (required) An array of arguments.
		<dl style="margin: 0;">
			<dd>
				Default: None<br>
				&nbsp;</dd>
		</dl>
	</dd>
</dl>
Arguments:
<dl style="margin: 0;">
	<dt>
		<strong>id</strong></dt>
	<dd>
		(<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#String" title="How to Pass Tag Parameters" style="color: #cc0000;">string</a>) (required) The ID of the node.
		<dl style="margin: 0;">
			<dd>
				Default: false</dd>
		</dl>
	</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>title</strong></dt>
	<dd>
		(<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#String" title="How to Pass Tag Parameters" style="color: #cc0000;">string</a>) (optional) The text that will be visible in the Toolbar. Including html tags is allowed.
		<dl style="margin: 0;">
			<dd>
				Default: false</dd>
		</dl>
	</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>parent</strong></dt>
	<dd>
		(<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#String" title="How to Pass Tag Parameters" style="color: #cc0000;">string</a>) (optional) The ID of the parent node.
		<dl style="margin: 0;">
			<dd>
				Default: false</dd>
		</dl>
	</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>href</strong></dt>
	<dd>
		(<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#String" title="How to Pass Tag Parameters" style="color: #cc0000;">string</a>) (optional) The &#39;href&#39; attribute for the link. If &#39;href&#39; is not set the node will be a text node.
		<dl style="margin: 0;">
			<dd>
				Default: false</dd>
		</dl>
	</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>group</strong></dt>
	<dd>
		(<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#Boolean" title="How to Pass Tag Parameters" style="color: #cc0000;">boolean</a>) (optional) This will make the node a group (node) if set to &#39;true&#39;. Group nodes are not visible in the Toolbar, but nodes added to it are. See <a href="http://codex.wordpress.org/Function_Reference/add_group" title="Function Reference/add group" style="color: #cc0000;">add_group()</a>.
		<dl style="margin: 0;">
			<dd>
				Default: false</dd>
		</dl>
	</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>meta</strong></dt>
	<dd>
		(<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#Array" title="How to Pass Tag Parameters" style="color: #cc0000;">array</a>) (optional) An array of meta data for the node.
		<dl style="margin: 0;">
			<dd>
				Default: array()</dd>
		</dl>
	</dd>
</dl>
<dl style="margin: 0;">
	<dd>
		<ul>
			<li>
				&#39;html&#39; - The html used for the node.</li>
			<li>
				&#39;class&#39; - The class attribute for the list item containing the link or text node.</li>
			<li>
				&#39;onclick&#39; - The onclick attribute for the link. This will only be set if the &#39;href&#39; argument is present.</li>
			<li>
				&#39;target&#39; - The target attribute for the link. This will only be set if the &#39;href&#39; argument is present.</li>
			<li>
				&#39;title&#39; - The title attribute. Will be set to the link or to a div containing a text node.</li>
			<li>
				&#39;tabindex&#39; - The tabindex attribute. Will be set to the link or to a div containing a text node.</li>
		</ul>
	</dd>
</dl>
</div>
								</td>
							</tr>
							
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Return values
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div>None.</div>
								</td>
							</tr>

							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Examples
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><h4 style="margin-bottom: 0;">
	Add a Page to the Toolbar</h4>
<p>
	This example will add a Page with a &quot;my-toolbar-page&quot; class to the Toolbar. It will be a top level item because the &#39;parent&#39; argument is not set (it has no parent node). Put this in your theme&#39;s <a href="http://codex.wordpress.org/Functions_File_Explained" title="Functions File Explained" style="color: #cc0000;">functions.php</a> file.</p>
<pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
add_action( &#39;admin_bar_menu&#39;, &#39;toolbar_link_to_mypage&#39;, 999 );

function toolbar_link_to_mypage( $wp_admin_bar ) {
  global $wp_admin_bar;
  $args = array(
    &#39;id&#39; =&gt; &#39;my_page&#39;,
    &#39;title&#39; =&gt; &#39;My Page&#39;,
    &#39;href&#39; =&gt; &#39;http://mysite.com/my-page/&#39;,
    &#39;meta&#39; =&gt; array(&#39;class&#39; =&gt; &#39;my-toolbar-page&#39;)
  );

  $wp_admin_bar-&gt;add_node($args);
}
</pre>
</div>
								</td>
							</tr>

              	<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									More information
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><a href="http://codex.wordpress.org/Function_Reference/add_node" style="color: #cc0000;">http://codex.wordpress.org/Function_Reference/add_node</a></div><br>
								</td>
							</tr>
							<tr>
                <td>
                  <table width="600">
                    <tr>
                      <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                        Liked this function?
                      </td>
                    </tr>
                    <tr>
                      <td width="70%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2"><div>
	You might also like these books:<br>

<a href="http://www.amazon.com/gp/product/0470916222/ref=as_li_tf_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0470916222" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0470916222&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0470916222" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/1119995965/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1119995965" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=1119995965&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=1119995965" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/0980455294/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0980455294" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0980455294&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0980455294" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

</div>
</td>
                      <td width="30%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; text-align: right; line-height: 20px;" colspan="2">Share it:<br>
<a href="http://twitter.com/share?url=http%3A%2F%2Feepurl.com%2Fq6YmP&text=The+Daily+WordPress+Reference%3A+add_node%28%29&count=none" target="_blank"><img src="http://cdn-images.mailchimp.com/social_connect_tweet.png" border="0" width="55" height="20" style="display:inline;" alt="share on Twitter"></a>&nbsp;<a href="http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=a0cd1fb954&fblike=true&e=[UNIQID]&socialproxy=http%3A%2F%2Fus4.campaign-archive.com%2Fsocial-proxy%2Ffacebook-like%3Fu%3D427153c482114d70024e1dc1a%26id%3Da0cd1fb954%26url%3Dhttp%253A%252F%252Fus4.campaign-archive.com%252F%253Fu%253D427153c482114d70024e1dc1a%2526id%253Da0cd1fb954%26title%3DThe%2520Daily%2520WordPress%2520Reference%253A%2520add_node%2528%2529" title="Like The Daily WordPress Reference: add_node() on Facebook" rel="socialproxy" id="fblike-"><img src="http://cdn-images.mailchimp.com/fb/like.gif" border="0" alt="Like The Daily WordPress Reference: add_node() on Facebook" height="20" width="48" style="display:inline;"/></a><br>
&nbsp;Or Donate to the project:<br>
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EQZ8YJVVF79AN" style="color: #cc0000;"><img alt="Donata via Paypal" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif"></a><br>
(<a href="http://www.dailydocumentation.com/blog/faq/why-donate-to-this-project/" style="color: #cc0000;">Why Donate?</a>)</td>
                    </tr>
                  </table>
                </td>
              </tr>
						</table>
            <!-- // End Module: Standard Content \\ -->
						<!-- // End Template Body \\ -->
					</td>
				</tr>
				<tr>
					<td valign="top" width="600">
            <!-- // Begin Template Footer \\ -->
            <!-- // Begin Module: Standard Footer \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td valign="top">
									<table cellspacing="0" border="0" width="600" cellpadding="0">
										<tr>
											<td class="unsubscribe" valign="top" style="padding: 10px 20px; color: #999; font-size: 14px; font-family: Georgia; line-height: 20px;">
                        <div><br>
 </div>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td valign="top" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td class="copyright" height="100" align="center" valign="top" style="padding: 0 20px; color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; line-height: 20px;" width="600" colspan="2">
                  <div>
									&nbsp;<a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=a0cd1fb954">unsubscribe from this list</a> | <a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]">update subscription preferences</a>&nbsp; 
                  </div>
								</td>
							</tr>
						</table>
            <!-- // End Module: Standard Footer \\ -->
						<!-- // End Template Footer \\ -->
					</td>
				</tr>
			</table>
			
		</td>
	
	</tr>
	
</table>

</body>
</html>
<!--
<a href="./" style="color: #cc0000; text-decoration: none;"></a>
-->
]]></content:encoded>
      <pubDate>Thu, 08 Nov 2012 13:00:00 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[The Daily WordPress Reference: is_home()]]></title>
      <link>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=42fac7f155</link>
      <guid>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=42fac7f155</guid>
      <description><![CDATA[Is this email not displaying correctly? View it in your browser: http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=42fac7f155&e=[UNIQID]
   
The Daily WordPress Reference

The is_home() function

Description
   This Conditional Tag checks if the main page is being displayed. This is a boolean function, meaning it returns either TRUE or FALSE.
   
   Note: WordPress 2.1 handles this function differently than prior versions - See static Front Page. If you select a static Page as your frontpage (see is_front_page()), this tag will be applied to your "posts page".

Usage
   <?php is_home(); ?> 

Parameters
   None.

Return Values
   (boolean) 
       True on success, false on failure. 

Examples
   The following example can be used in your sidebar to display different content when displaying home page.
   <?php
   if ( is_home() ) {
       // This is a homepage
   } else {
       // This is not a homepage
   }
   ?>

More informations
   http://codex.wordpress.org/Function_Reference/is_home
   
  
DailyWordpressReference is not affiliated with WordPress in any way.
  __________________________________________________________________
  Links:
    [1]Follow the Daily WordPress Reference on Twitter
   
   
    [2]unsubscribe from this list | [3]update subscription preferences
     Links:
       1. Twitter Account not yet Authorized


       2. http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=42fac7f155
       3. http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]]]></description>
      <content:encoded><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>The Daily WordPress Reference: is_home()</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<!-- Facebook sharing information tags -->
	<meta property="og:title" content="The Daily WordPress Reference: is_home()">
		
<style type="text/css">
		a{
			color:#cc0000;
		}
		dl{
			margin:0;
		}
		h4{
			margin-bottom:0;
		}
		.example{
			border:1px dashed #059100;
			padding:3px;
		}
		.default_param_value{
			color:#777;
			padding-bottom:7px;
		}
		code{
			color:#3D5A6F;
			background:#F7F7F7;
		}
		pre{
			color:#3D5A6F;
			background:#F7F7F7;
			border-top:1px solid #dedede;
			border-bottom:1px solid #dedede;
			padding:3px 2px;
		}
		.list a{
			color:#cc0000;
			text-transform:uppercase;
			font-family:Verdana;
			font-size:11px;
			text-decoration:none;
		}
</style></head>
<body marginheight="0" topmargin="0" marginwidth="0" bgcolor="#c5c5c5" leftmargin="0">

<table cellspacing="0" border="0" style="background-image: url(http://www.dailydocumentation.com/wordpress/mailassets/bg.gif); background-color: #c5c5c5;" cellpadding="0" width="100%">
	
	<tr>
		
		<td valign="top">

			<table cellspacing="0" border="0" align="center" style="background: #fff; border-right: 1px solid #ccc; border-left: 1px solid #ccc;" cellpadding="0" width="600">
				<tr>
					<td valign="top">
            <!-- // Begin Template Preheader \\ -->	
						<table cellspacing="0" border="0" height="110" cellpadding="0" width="600">
							<tr>
                <!-- // Begin Module: Standard Preheader \\ -->
								<td class="header-text" height="50" valign="top" style="color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; padding: 0 20px;" width="540" colspan="2">
                  <div>
									<!--  -->
                  </div>
								</td>
                <!-- // End Module: Standard Preheader \\ -->
							</tr>
              <!-- // End Template Preheader \\ -->
							<tr>
                <!-- // Begin Template Header \\ -->
								<td class="main-title" height="13" valign="top" style="padding: 0 20px; font-size: 25px; font-family: Georgia;" width="600" colspan="2">
                  <!-- // Begin Module: Standard Header Image \\ -->
									<a href="http://www.dailydocumentation.com/wordpress/" style="color: black; text-decoration: none;">The Daily WordPress Reference</a>
                  <!-- // End Module: Standard Header Image \\ -->
								</td>
							</tr>
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
						</table>
            <!-- // End Template Header \\ -->
					</td>
				</tr>
				<tr>
					<td>
            <!-- // Begin Template Body \\ -->
            <!-- // Begin Module: Standard Content \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
              <tr>
                <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  <div><div style="text-align: left;">
	is_home()</div>
</div>
                </td>
              </tr>
              <tr>
                <td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><p>
	This <a href="http://codex.wordpress.org/Conditional_Tags" title="Conditional Tags" style="color: #cc0000;">Conditional Tag</a> checks if the main page is being displayed. This is a boolean function, meaning it returns either TRUE or FALSE.</p>
<p>
	Note: WordPress 2.1 handles this function differently than prior versions - See <a href="http://codex.wordpress.org/Pages#Using_a_Page_as_the_Front_Page" title="Pages" style="color: #cc0000;">static Front Page</a>. If you select a static Page as your frontpage (see <a href="http://codex.wordpress.org/Function_Reference/is_front_page" title="Function Reference/is front page" style="color: #cc0000;">is_front_page()</a>), this tag will be applied to your &quot;posts page&quot;.</p>
</div>
                </td>
              </tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  Usage
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;?php&nbsp;is_home();&nbsp;?&gt;</pre>
</div>
								</td>
							</tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Parameters
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                  <div>None.</div>
								</td>
							</tr>
							
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Return values
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><dl style="margin: 0;">
	<dt>
		(<strong>boolean</strong>)<br>
		&nbsp;&nbsp; True on success, false on failure.</dt>
</dl>
</div>
								</td>
							</tr>

							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Examples
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><h4 style="margin-bottom: 0;">
	The following example can be used in your sidebar to display different content when displaying home page.</h4>
<pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;?php
if&nbsp;(&nbsp;is_home()&nbsp;)&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;This&nbsp;is&nbsp;a&nbsp;homepage
}&nbsp;else&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;This&nbsp;is&nbsp;not&nbsp;a&nbsp;homepage
}
?&gt;</pre>
</div>
								</td>
							</tr>

              	<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									More information
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><a href="http://codex.wordpress.org/Function_Reference/is_home" style="color: #cc0000;">http://codex.wordpress.org/Function_Reference/is_home</a></div><br>
								</td>
							</tr>
							<tr>
                <td>
                  <table width="600">
                    <tr>
                      <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                        Liked this function?
                      </td>
                    </tr>
                    <tr>
                      <td width="70%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2"><div>
	You might also like these books:<br>

<a href="http://www.amazon.com/gp/product/0470916222/ref=as_li_tf_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0470916222" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0470916222&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0470916222" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/1119995965/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1119995965" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=1119995965&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=1119995965" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/0980455294/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0980455294" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0980455294&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0980455294" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

</div>
</td>
                      <td width="30%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; text-align: right; line-height: 20px;" colspan="2">Share it:<br>
<a href="http://twitter.com/share?url=http%3A%2F%2Feepurl.com%2Fq6YaP&text=The+Daily+WordPress+Reference%3A+is_home%28%29&count=none" target="_blank"><img src="http://cdn-images.mailchimp.com/social_connect_tweet.png" border="0" width="55" height="20" style="display:inline;" alt="share on Twitter"></a>&nbsp;<a href="http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=42fac7f155&fblike=true&e=[UNIQID]&socialproxy=http%3A%2F%2Fus4.campaign-archive.com%2Fsocial-proxy%2Ffacebook-like%3Fu%3D427153c482114d70024e1dc1a%26id%3D42fac7f155%26url%3Dhttp%253A%252F%252Fus4.campaign-archive.com%252F%253Fu%253D427153c482114d70024e1dc1a%2526id%253D42fac7f155%26title%3DThe%2520Daily%2520WordPress%2520Reference%253A%2520is_home%2528%2529" title="Like The Daily WordPress Reference: is_home() on Facebook" rel="socialproxy" id="fblike-"><img src="http://cdn-images.mailchimp.com/fb/like.gif" border="0" alt="Like The Daily WordPress Reference: is_home() on Facebook" height="20" width="48" style="display:inline;"/></a><br>
&nbsp;Or Donate to the project:<br>
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EQZ8YJVVF79AN" style="color: #cc0000;"><img alt="Donata via Paypal" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif"></a><br>
(<a href="http://www.dailydocumentation.com/blog/faq/why-donate-to-this-project/" style="color: #cc0000;">Why Donate?</a>)</td>
                    </tr>
                  </table>
                </td>
              </tr>
						</table>
            <!-- // End Module: Standard Content \\ -->
						<!-- // End Template Body \\ -->
					</td>
				</tr>
				<tr>
					<td valign="top" width="600">
            <!-- // Begin Template Footer \\ -->
            <!-- // Begin Module: Standard Footer \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td valign="top">
									<table cellspacing="0" border="0" width="600" cellpadding="0">
										<tr>
											<td class="unsubscribe" valign="top" style="padding: 10px 20px; color: #999; font-size: 14px; font-family: Georgia; line-height: 20px;">
                        <div><br>
 </div>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td valign="top" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td class="copyright" height="100" align="center" valign="top" style="padding: 0 20px; color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; line-height: 20px;" width="600" colspan="2">
                  <div>
									&nbsp;<a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=42fac7f155">unsubscribe from this list</a> | <a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]">update subscription preferences</a>&nbsp; 
                  </div>
								</td>
							</tr>
						</table>
            <!-- // End Module: Standard Footer \\ -->
						<!-- // End Template Footer \\ -->
					</td>
				</tr>
			</table>
			
		</td>
	
	</tr>
	
</table>

</body>
</html>
<!--
<a href="./" style="color: #cc0000; text-decoration: none;"></a>
-->
]]></content:encoded>
      <pubDate>Wed, 07 Nov 2012 13:00:00 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[The Daily WordPress Reference: wp_list_bookmarks()]]></title>
      <link>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=36ccd0b57f</link>
      <guid>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=36ccd0b57f</guid>
      <description><![CDATA[Is this email not displaying correctly? View it in your browser: http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=36ccd0b57f&e=[UNIQID]
   
The Daily WordPress Reference

The wp_list_bookmarks() function

Description
   Displays bookmarks found in the Administration > Links panel. This Template Tag allows the user to control how the bookmarks are sorted and displayed.
   
   NOTE: wp_list_bookmarks() intended to replace the deprecated Template tags get_links_list() and get_links(). 

Usage
   <?php wp_list_bookmarks( $args ); ?>
   
   Default Usage
   
   <?php $args = array(
       'orderby'          => 'name',
       'order'            => 'ASC',
       'limit'            => -1,
       'category'         => ' ',
       'exclude_category' => ' ',
       'category_name'    => ' ',
       'hide_invisible'   => 1,
       'show_updated'     => 0,
       'echo'             => 1,
       'categorize'       => 1,
       'title_li'         => __('Bookmarks'),
       'title_before'     => '<h2>',
       'title_after'      => '</h2>',
       'category_orderby' => 'name',
       'category_order'   => 'ASC',
       'class'            => 'linkcat',
       'category_before'  => '<li id=%id class=%class>',
       'category_after'   => '</li>' ); ?> 
   
   By default, the function shows:
   
       Bookmarks divided into Categories with a Category name heading
       All bookmarks included, regardless of Category Name or Category ID
       Sorts the list by name
       An image if one is included
       A space between the image and the text
       Shows the description of the bookmark
       Does not show the ratings
       Unless limit is set, shows all bookmarks
       Displays bookmarks 

Parameters
   categorize 
       (boolean) Bookmarks should be shown within their assigned Categories or not.
   
           1 (True) - Default
           0 (False) 
   
   category 
       (string) Comma separated list of numeric Category IDs to be displayed. If none is specified, all Categories with bookmarks are shown. Defaults to (all Categories). 
   
   exclude_category 
       (string) Comma separated list of numeric Category IDs to be excluded from display. Defaults to (no categories excluded). 
   
   category_name 
       (string) The name of a Category whose bookmarks will be displayed. If none is specified, all Categories with bookmarks are shown. Defaults to (all Categories). 
   
   category_before 
       (string) Text to place before each category. Defaults to '<li id="[category id]" class="linkcat">' . 
   
   category_after 
       (string) Text to place after each category. Defaults to '</li>' . 
   
   class 
       (string) The class each category li will have on it. Defaults to 'linkcat' . (This parameter was added with Version 2.2) 
   
   category_orderby 
       (string) Value to sort Categories on. Valid options:
   
           'name' - Default
           'id'
           'slug'
           'count'
           'term_group' (not used yet) 
   
   category_order 
       (string) Sort order, ascending or descending for the category_orderby parameter. Valid values:
   
           ASC - Default
           DESC 
   
   title_li 
       (string) Text for the heading of the links list. Defaults to '__('Bookmarks')', which displays "Bookmarks" (the __('') is used for localization purposes). Only used when categorize are set to 0 [false] (else the category names will be used instead). If 'title_li' is set to null (0) value, no heading is displayed, and the list will not be wrapped with <ul>, </ul> tags (be sure to pass the categorize option to 0 [false] to this option takes effect). 
   
   title_before 
       (string) Text to place before each Category description if 'categorize' is 1 [true], or text defined in "title_li" if 'categorize' is 0 [false]. Defaults to '<h2>'. 
   
   title_after 
       (string) Text to place after each Category description if 'categorize' is 1 [true], or text defined in "title_li" if 'categorize' is 0 [false]. Defaults to '</h2>'. 
   
   show_private 
       (boolean) Should a Category be displayed even if the Category is considered private. Ignore the admin setting and show private Categories (TRUE) or do NOT show private Categories (FALSE).
   
           1 (True)
           0 (False) - Default 
   
   include 
       (string) Comma separated list of numeric bookmark IDs to include in the output. For example, 'include=1,3,6' means to return or echo bookmark IDs 1, 3, and 6. If the include string is used, the category, category_name, and exclude parameters are ignored. Defaults to (all Bookmarks). 
   
   exclude 
       (string) Comma separated list of numeric bookmark IDs to exclude. For example, 'exclude=4,12' means that bookmark IDs 4 and 12 will NOT be returned or echoed. Defaults to (exclude nothing). 
   
   orderby 
       (string) Value to sort bookmarks on. This can be a COMMA separated list of values. Defaults to 'name' unless you pass the value of '' (empty), in which case it sets to 'id'. Valid options:
   
           'id' (use 'link_id' with WP 3.2 and later)
           'url'
           'name' - Default
           'target'
           'description'
           'owner' - User who added bookmark through bookmarks Manager.
           'rating'
           'updated' Note: the link_updated field does not track local modifications. It tracks when whatever the link points to is updated via remote requests to pingomatic.
           'rel' - bookmark relationship (XFN).
           'notes'
           'rss'
           'length' - The length of the bookmark name, shortest to longest.
           'rand' - Display bookmarks in random order. 
   
   order 
       (string) Bookmarks display sorting order, ascending or descending as defined in the 'orderby' parameter. Valid values:
   
           ASC - Default
           DESC 
   
   limit 
       (integer) Maximum number of bookmarks to display. Default is -1 (all bookmarks). 
   
   before 
       (string) Text to place before each bookmark. Defaults to '<li>'. 
   
   after 
       (string) Text to place after each bookmark. Defaults to '</li>'. 
   
   link_before 
       (string) Text to place before the text of each bookmark, inside the hyperlink code. There is no set default. (This parameter was added with Version 2.7) 
   
   link_after 
       (string) Text to place after the text of each bookmark. There is no set default. (This parameter was added with Version 2.7) 
   
   between 
       (string) Text to place between each bookmark/image and its description. Defaults to '\n' (newline). 
   
   show_images 
       (boolean) Should images for bookmarks be shown (TRUE) or not (FALSE).
   
           1 (True) - Default
           0 (False) 
   
   show_description 
       (boolean) Should the description be displayed (TRUE) or not (FALSE). Valid when show_images is FALSE, or an image is not defined.
   
           1 (True)
           0 (False) - Default 
   
   show_name 
       (boolean) Displays the text of a link when (TRUE). Works when show_images is TRUE. (This parameter was added with Version 2.7)
   
           1 (True)
           0 (False) - Default 
   
   show_rating 
       (boolean) Should rating stars/characters be displayed (TRUE) or not (FALSE).
   
           1 (True)
           0 (False) - Default 
   
   show_updated 
       (boolean) Should the last updated timestamp be displayed (TRUE) or not (FALSE). Note that link_updated does not track local modifications. It tracks when whatever the link points to is updated via remote requests to pingomatic.
   
           1 (True)
           0 (False) - Default 
   
   hide_invisible 
       (boolean) Should bookmark be displayed even if it's Visible setting is No. Abides by admin setting (TRUE) or does no abide by admin setting (FALSE).
   
           1 (True) - Default
           0 (False) 
   
   echo 
       (boolean) Display bookmarks (TRUE) or return them for use by PHP (FALSE).
   
           1 (True) - Default
           0 (False) 

Return Values
   (string|null)
     Will only return if echo option is set to not echo.
     Default is not return anything.

Examples
   Simple List
   
   Displays all bookmarks with the title "Bookmarks" and with items wrapped in <li> tags. The title is wrapped in h2 tags.
   
   <?php wp_list_bookmarks('title_li=&category_before=&category_after='); ?>

More informations
   http://codex.wordpress.org/Function_Reference/wp_list_bookmarks
   
  
DailyWordpressReference is not affiliated with WordPress in any way.
  __________________________________________________________________
  Links:
    [1]Follow the Daily WordPress Reference on Twitter
   
   
    [2]unsubscribe from this list | [3]update subscription preferences
     Links:
       1. Twitter Account not yet Authorized


       2. http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=36ccd0b57f
       3. http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]]]></description>
      <content:encoded><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>The Daily WordPress Reference: wp_list_bookmarks()</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<!-- Facebook sharing information tags -->
	<meta property="og:title" content="The Daily WordPress Reference: wp_list_bookmarks()">
		
<style type="text/css">
		a{
			color:#cc0000;
		}
		dl{
			margin:0;
		}
		h4{
			margin-bottom:0;
		}
		.example{
			border:1px dashed #059100;
			padding:3px;
		}
		.default_param_value{
			color:#777;
			padding-bottom:7px;
		}
		code{
			color:#3D5A6F;
			background:#F7F7F7;
		}
		pre{
			color:#3D5A6F;
			background:#F7F7F7;
			border-top:1px solid #dedede;
			border-bottom:1px solid #dedede;
			padding:3px 2px;
		}
		.list a{
			color:#cc0000;
			text-transform:uppercase;
			font-family:Verdana;
			font-size:11px;
			text-decoration:none;
		}
</style></head>
<body marginheight="0" topmargin="0" marginwidth="0" bgcolor="#c5c5c5" leftmargin="0">

<table cellspacing="0" border="0" style="background-image: url(http://www.dailydocumentation.com/wordpress/mailassets/bg.gif); background-color: #c5c5c5;" cellpadding="0" width="100%">
	
	<tr>
		
		<td valign="top">

			<table cellspacing="0" border="0" align="center" style="background: #fff; border-right: 1px solid #ccc; border-left: 1px solid #ccc;" cellpadding="0" width="600">
				<tr>
					<td valign="top">
            <!-- // Begin Template Preheader \\ -->	
						<table cellspacing="0" border="0" height="110" cellpadding="0" width="600">
							<tr>
                <!-- // Begin Module: Standard Preheader \\ -->
								<td class="header-text" height="50" valign="top" style="color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; padding: 0 20px;" width="540" colspan="2">
                  <div>
									<!--  -->
                  </div>
								</td>
                <!-- // End Module: Standard Preheader \\ -->
							</tr>
              <!-- // End Template Preheader \\ -->
							<tr>
                <!-- // Begin Template Header \\ -->
								<td class="main-title" height="13" valign="top" style="padding: 0 20px; font-size: 25px; font-family: Georgia;" width="600" colspan="2">
                  <!-- // Begin Module: Standard Header Image \\ -->
									<a href="http://www.dailydocumentation.com/wordpress/" style="color: black; text-decoration: none;">The Daily WordPress Reference</a>
                  <!-- // End Module: Standard Header Image \\ -->
								</td>
							</tr>
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
						</table>
            <!-- // End Template Header \\ -->
					</td>
				</tr>
				<tr>
					<td>
            <!-- // Begin Template Body \\ -->
            <!-- // Begin Module: Standard Content \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
              <tr>
                <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  <div><div style="text-align: left;">
	wp_list_bookmarks()</div>
</div>
                </td>
              </tr>
              <tr>
                <td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><p>
	Displays bookmarks found in the <a href="http://codex.wordpress.org/Administration_Panels" title="Administration Panels" style="color: #cc0000;">Administration</a> &gt; <a href="http://codex.wordpress.org/Administration_Panels#Links" title="Administration Panels" style="color: #cc0000;">Links</a> panel. This <a href="http://codex.wordpress.org/Template_Tags" title="Template Tags" style="color: #cc0000;">Template Tag</a> allows the user to control how the bookmarks are sorted and displayed.</p>
<p>
	NOTE: wp_list_bookmarks() intended to replace the deprecated Template tags <a href="http://codex.wordpress.org/Template_Tags/get_links_list" title="Template Tags/get links list" style="color: #cc0000;">get_links_list()</a> and <a href="http://codex.wordpress.org/Template_Tags/get_links" title="Template Tags/get links" style="color: #cc0000;">get_links()</a>.</p>
</div>
                </td>
              </tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  Usage
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;?php&nbsp;wp_list_bookmarks(&nbsp;$args&nbsp;);&nbsp;?&gt;&nbsp;</pre>
Default Usage
<pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;?php&nbsp;
$args&nbsp;=&nbsp;array(
            &#39;orderby&#39;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&gt;&nbsp;&#39;name&#39;,
	&nbsp;&nbsp;&nbsp;&nbsp;&#39;order&#39;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&gt;&nbsp;&#39;ASC&#39;,
	&nbsp;&nbsp;&nbsp;&nbsp;&#39;limit&#39;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&gt;&nbsp;-1,
	&nbsp;&nbsp;&nbsp;&nbsp;&#39;category&#39;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&gt;&nbsp;&#39;&nbsp;&#39;,
	&nbsp;&nbsp;&nbsp;&nbsp;&#39;exclude_category&#39;&nbsp;=&gt;&nbsp;&#39;&nbsp;&#39;,
	&nbsp;&nbsp;&nbsp;&nbsp;&#39;category_name&#39;&nbsp;&nbsp;&nbsp;&nbsp;=&gt;&nbsp;&#39;&nbsp;&#39;,
	&nbsp;&nbsp;&nbsp;&nbsp;&#39;hide_invisible&#39;&nbsp;&nbsp;&nbsp;=&gt;&nbsp;1,
	&nbsp;&nbsp;&nbsp;&nbsp;&#39;show_updated&#39;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&gt;&nbsp;0,
	&nbsp;&nbsp;&nbsp;&nbsp;&#39;echo&#39;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&gt;&nbsp;1,
	&nbsp;&nbsp;&nbsp;&nbsp;&#39;categorize&#39;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&gt;&nbsp;1,
	&nbsp;&nbsp;&nbsp;&nbsp;&#39;title_li&#39;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&gt;&nbsp;__(&#39;Bookmarks&#39;),
	&nbsp;&nbsp;&nbsp;&nbsp;&#39;title_before&#39;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&gt;&nbsp;&#39;&lt;h2&gt;&#39;,
	&nbsp;&nbsp;&nbsp;&nbsp;&#39;title_after&#39;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&gt;&nbsp;&#39;&lt;/h2&gt;&#39;,
	&nbsp;&nbsp;&nbsp;&nbsp;&#39;category_orderby&#39;&nbsp;=&gt;&nbsp;&#39;name&#39;,
	&nbsp;&nbsp;&nbsp;&nbsp;&#39;category_order&#39;&nbsp;&nbsp;&nbsp;=&gt;&nbsp;&#39;ASC&#39;,
	&nbsp;&nbsp;&nbsp;&nbsp;&#39;class&#39;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&gt;&nbsp;&#39;linkcat&#39;,
	&nbsp;&nbsp;&nbsp;&nbsp;&#39;category_before&#39;&nbsp;&nbsp;=&gt;&nbsp;&#39;&lt;li&nbsp;id=%id&nbsp;class=%class&gt;&#39;,
	&nbsp;&nbsp;&nbsp;&nbsp;&#39;category_after&#39;&nbsp;&nbsp;&nbsp;=&gt;&nbsp;&#39;&lt;/li&gt;&#39;&nbsp;
            );&nbsp;
?&gt;&nbsp;</pre>
<p>
	By default, the function shows:</p>
<ul>
	<li>
		Bookmarks divided into Categories with a Category name heading</li>
	<li>
		All bookmarks included, regardless of Category Name or Category ID</li>
	<li>
		Sorts the list by name</li>
	<li>
		An image if one is included</li>
	<li>
		A space between the image and the text</li>
	<li>
		Shows the description of the bookmark</li>
	<li>
		Does not show the ratings</li>
	<li>
		Unless limit is set, shows all bookmarks</li>
	<li>
		Displays bookmarks</li>
</ul>
</div>
								</td>
							</tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Parameters
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                  <div><dl style="margin: 0;">
	<dt>
		<strong>categorize</strong>&nbsp;</dt>
	<dd>
		(<i>boolean</i>) Bookmarks should be shown within their assigned Categories or not.
		<ul>
			<li>
				<tt>1</tt> (True) - Default</li>
			<li>
				<tt>0</tt> (False)</li>
		</ul>
	</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>category</strong>&nbsp;</dt>
	<dd>
		(<i>string</i>) Comma separated list of numeric Category IDs to be displayed. If none is specified, all Categories with bookmarks are shown. Defaults to <i> (all Categories).</i></dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>exclude_category&nbsp;</strong></dt>
	<dd>
		(<i>string</i>) Comma separated list of numeric Category IDs to be excluded from display. Defaults to <i> (no categories excluded).</i></dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>category_name&nbsp;</strong></dt>
	<dd>
		(<i>string</i>) The name of a Category whose bookmarks will be displayed. If none is specified, all Categories with bookmarks are shown. Defaults to <i> (all Categories).</i></dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>category_before&nbsp;</strong></dt>
	<dd>
		(<i>string</i>) Text to place before each category. Defaults to <tt>&#39;&lt;li id=&quot;[category id]&quot; class=&quot;linkcat&quot;&gt;&#39;</tt> .</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>category_after&nbsp;</strong></dt>
	<dd>
		(<i>string</i>) Text to place after each category. Defaults to <tt>&#39;&lt;/li&gt;&#39;</tt> .</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>class</strong>&nbsp;</dt>
	<dd>
		(<i>string</i>) The class each category li will have on it. Defaults to <tt>&#39;linkcat&#39;</tt> . (This parameter was added with <a href="http://codex.wordpress.org/Version_2.2" title="Version 2.2" style="color: #cc0000;">Version 2.2</a>)</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>category_orderby&nbsp;</strong></dt>
	<dd>
		(<i>string</i>) Value to sort Categories on. Valid options:
		<ul>
			<li>
				<tt>&#39;name&#39;</tt> - Default</li>
			<li>
				<tt>&#39;id&#39;</tt></li>
			<li>
				<tt>&#39;slug&#39;</tt></li>
			<li>
				<tt>&#39;count&#39;</tt></li>
			<li>
				<tt>&#39;term_group&#39;</tt> (not used yet)</li>
		</ul>
	</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>category_order&nbsp;</strong></dt>
	<dd>
		(<i>string</i>) Sort order, ascending or descending for the category_orderby parameter. Valid values:
		<ul>
			<li>
				<tt>ASC</tt> - Default</li>
			<li>
				<tt>DESC</tt></li>
		</ul>
	</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>title_li&nbsp;</strong></dt>
	<dd>
		(<i>string</i>) Text for the heading of the links list. Defaults to <tt>&#39;__(&#39;Bookmarks&#39;)&#39;</tt>, which displays &quot;Bookmarks&quot; (the <tt>__(&#39;&#39;)</tt> is used for <a class="mw-redirect" href="http://codex.wordpress.org/Localization" title="Localization" style="color: #cc0000;">localization purposes</a>). Only used when categorize are set to 0 [false] (else the category names will be used instead). If &#39;title_li&#39; is set to null (0) value, no heading is displayed, and the list will not be wrapped with <tt>&lt;ul&gt;, &lt;/ul&gt;</tt> tags (be sure to pass the categorize option to 0 [false] to this option takes effect).</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>title_before&nbsp;</strong></dt>
	<dd>
		(<i>string</i>) Text to place before each Category description if &#39;categorize&#39; is 1 [true], or text defined in &quot;title_li&quot; if &#39;categorize&#39; is 0 [false]. Defaults to <tt>&#39;&lt;h2&gt;&#39;</tt>.</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>title_after&nbsp;</strong></dt>
	<dd>
		(<i>string</i>) Text to place after each Category description if &#39;categorize&#39; is 1 [true], or text defined in &quot;title_li&quot; if &#39;categorize&#39; is 0 [false]. Defaults to <tt>&#39;&lt;/h2&gt;&#39;</tt>.</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>show_private&nbsp;</strong></dt>
	<dd>
		(<i>boolean</i>) Should a Category be displayed even if the Category is considered private. Ignore the admin setting and show private Categories (<tt>TRUE</tt>) or do NOT show private Categories (<tt>FALSE</tt>).
		<ul>
			<li>
				<tt>1</tt> (True)</li>
			<li>
				<tt>0</tt> (False) - Default</li>
		</ul>
	</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>include</strong>&nbsp;</dt>
	<dd>
		(<i>string</i>) Comma separated list of numeric bookmark IDs to include in the output. For example, &#39;include=1,3,6&#39; means to return or echo bookmark IDs 1, 3, and 6. If the include string is used, the <i>category</i>, <i>category_name</i>, and <i>exclude</i> parameters are ignored. Defaults to <i> (all Bookmarks).</i></dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>exclude</strong>&nbsp;</dt>
	<dd>
		(<i>string</i>) Comma separated list of numeric bookmark IDs to exclude. For example, &#39;exclude=4,12&#39; means that bookmark IDs 4 and 12 will NOT be returned or echoed. Defaults to <i> (exclude nothing).</i></dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>orderby</strong>&nbsp;</dt>
	<dd>
		(<i>string</i>) Value to sort bookmarks on. This can be a COMMA separated list of values. Defaults to <tt>&#39;name&#39;</tt> unless you pass the value of <tt>&#39;&#39;</tt> (empty), in which case it sets to <tt>&#39;id&#39;</tt>. Valid options:
		<ul>
			<li>
				<tt>&#39;id&#39; (use &#39;link_id&#39; with WP 3.2 and later)</tt></li>
			<li>
				<tt>&#39;url&#39;</tt></li>
			<li>
				<tt>&#39;name&#39;</tt> - Default</li>
			<li>
				<tt>&#39;target&#39;</tt></li>
			<li>
				<tt>&#39;description&#39;</tt></li>
			<li>
				<tt>&#39;owner&#39;</tt> - User who added bookmark through bookmarks Manager.</li>
			<li>
				<tt>&#39;rating&#39;</tt></li>
			<li>
				<tt>&#39;updated&#39;</tt> Note: the link_updated field does not track local modifications. It tracks when whatever the link points to is updated via remote requests to pingomatic.</li>
			<li>
				<tt>&#39;rel&#39;</tt> - bookmark relationship (XFN).</li>
			<li>
				<tt>&#39;notes&#39;</tt></li>
			<li>
				<tt>&#39;rss&#39;</tt></li>
			<li>
				<tt>&#39;length&#39;</tt> - The length of the bookmark name, shortest to longest.</li>
			<li>
				<tt>&#39;rand&#39;</tt> - Display bookmarks in random order.</li>
		</ul>
	</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>order</strong>&nbsp;</dt>
	<dd>
		(<i>string</i>) Bookmarks display sorting order, ascending or descending as defined in the &#39;orderby&#39; parameter. Valid values:
		<ul>
			<li>
				<tt>ASC</tt> - Default</li>
			<li>
				<tt>DESC</tt></li>
		</ul>
	</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>limit</strong>&nbsp;</dt>
	<dd>
		(<i>integer</i>) Maximum number of bookmarks to display. Default is <tt>-1</tt> (all bookmarks).</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>before</strong>&nbsp;</dt>
	<dd>
		(<i>string</i>) Text to place before each bookmark. Defaults to <tt>&#39;&lt;li&gt;&#39;</tt>.</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>after</strong>&nbsp;</dt>
	<dd>
		(<i>string</i>) Text to place after each bookmark. Defaults to <tt>&#39;&lt;/li&gt;&#39;</tt>.</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>link_before&nbsp;</strong></dt>
	<dd>
		(<i>string</i>) Text to place before the text of each bookmark, inside the hyperlink code. There is no set default. (This parameter was added with <a href="http://codex.wordpress.org/Version_2.7" title="Version 2.7" style="color: #cc0000;">Version 2.7</a>)</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>link_after&nbsp;</strong></dt>
	<dd>
		(<i>string</i>) Text to place after the text of each bookmark. There is no set default. (This parameter was added with <a href="http://codex.wordpress.org/Version_2.7" title="Version 2.7" style="color: #cc0000;">Version 2.7</a>)</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>between</strong>&nbsp;</dt>
	<dd>
		(<i>string</i>) Text to place between each bookmark/image and its description. Defaults to <tt>&#39;\n&#39;</tt> (newline).</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>show_images&nbsp;</strong></dt>
	<dd>
		(<i>boolean</i>) Should images for bookmarks be shown (<tt>TRUE</tt>) or not (<tt>FALSE</tt>).
		<ul>
			<li>
				<tt>1</tt> (True) - Default</li>
			<li>
				<tt>0</tt> (False)</li>
		</ul>
	</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>show_description&nbsp;</strong></dt>
	<dd>
		(<i>boolean</i>) Should the description be displayed (<tt>TRUE</tt>) or not (<tt>FALSE</tt>). Valid when <b>show_images</b> is <tt>FALSE</tt>, or an image is not defined.
		<ul>
			<li>
				<tt>1</tt> (True)</li>
			<li>
				<tt>0</tt> (False) - Default</li>
		</ul>
	</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>show_name</strong>&nbsp;</dt>
	<dd>
		(<i>boolean</i>) Displays the text of a link when (<tt>TRUE</tt>). Works when <b>show_images</b> is <tt>TRUE</tt>. (This parameter was added with <a href="http://codex.wordpress.org/Version_2.7" title="Version 2.7" style="color: #cc0000;">Version 2.7</a>)
		<ul>
			<li>
				<tt>1</tt> (True)</li>
			<li>
				<tt>0</tt> (False) - Default</li>
		</ul>
	</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>show_rating&nbsp;</strong></dt>
	<dd>
		(<i>boolean</i>) Should rating stars/characters be displayed (<tt>TRUE</tt>) or not (<tt>FALSE</tt>).
		<ul>
			<li>
				<tt>1</tt> (True)</li>
			<li>
				<tt>0</tt> (False) - Default</li>
		</ul>
	</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>show_updated&nbsp;</strong></dt>
	<dd>
		(<i>boolean</i>) Should the last updated timestamp be displayed (<tt>TRUE</tt>) or not (<tt>FALSE</tt>). Note that link_updated does not track local modifications. It tracks when whatever the link points to is updated via remote requests to pingomatic.
		<ul>
			<li>
				<tt>1</tt> (True)</li>
			<li>
				<tt>0</tt> (False) - Default</li>
		</ul>
	</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>hide_invisible&nbsp;</strong></dt>
	<dd>
		(<i>boolean</i>) Should bookmark be displayed even if it&#39;s Visible setting is No. Abides by admin setting (<tt>TRUE</tt>) or does no abide by admin setting (<tt>FALSE</tt>).
		<ul>
			<li>
				<tt>1</tt> (True) - Default</li>
			<li>
				<tt>0</tt> (False)</li>
		</ul>
	</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>echo</strong>&nbsp;</dt>
	<dd>
		(<i>boolean</i>) Display bookmarks (<tt>TRUE</tt>) or return them for use by PHP (<tt>FALSE</tt>).
		<ul>
			<li>
				<tt>1</tt> (True) - Default</li>
			<li>
				<tt>0</tt> (False)</li>
		</ul>
	</dd>
</dl>
</div>
								</td>
							</tr>
							
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Return values
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div>(<strong>string</strong>|<strong>null</strong>)<br>
&nbsp;&nbsp; Will only return if echo option is set to not echo.<br>
&nbsp;&nbsp; Default is not return anything.</div>
								</td>
							</tr>

							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Examples
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><h4 style="margin-bottom: 0;">
	Simple List</h4>
<p>
	Displays all bookmarks with the title &quot;Bookmarks&quot; and with items wrapped in &lt;li&gt; tags. The title is wrapped in h2 tags.</p>
<pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;?php
wp_list_bookmarks(&#39;title_li=&amp;category_before=&amp;category_after=&#39;);&nbsp;
?&gt;
</pre>
</div>
								</td>
							</tr>

              	<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									More information
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><a href="http://codex.wordpress.org/Function_Reference/wp_list_bookmarks" style="color: #cc0000;">http://codex.wordpress.org/Function_Reference/wp_list_bookmarks</a></div><br>
								</td>
							</tr>
							<tr>
                <td>
                  <table width="600">
                    <tr>
                      <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                        Liked this function?
                      </td>
                    </tr>
                    <tr>
                      <td width="70%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2"><div>
	You might also like these books:<br>

<a href="http://www.amazon.com/gp/product/0470916222/ref=as_li_tf_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0470916222" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0470916222&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0470916222" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/1119995965/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1119995965" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=1119995965&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=1119995965" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/0980455294/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0980455294" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0980455294&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0980455294" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

</div>
</td>
                      <td width="30%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; text-align: right; line-height: 20px;" colspan="2">Share it:<br>
<a href="http://twitter.com/share?url=http%3A%2F%2Feepurl.com%2Fq6XyT&text=The+Daily+WordPress+Reference%3A+wp_list_bookmarks%28%29&count=none" target="_blank"><img src="http://cdn-images.mailchimp.com/social_connect_tweet.png" border="0" width="55" height="20" style="display:inline;" alt="share on Twitter"></a>&nbsp;<a href="http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=36ccd0b57f&fblike=true&e=[UNIQID]&socialproxy=http%3A%2F%2Fus4.campaign-archive.com%2Fsocial-proxy%2Ffacebook-like%3Fu%3D427153c482114d70024e1dc1a%26id%3D36ccd0b57f%26url%3Dhttp%253A%252F%252Fus4.campaign-archive.com%252F%253Fu%253D427153c482114d70024e1dc1a%2526id%253D36ccd0b57f%26title%3DThe%2520Daily%2520WordPress%2520Reference%253A%2520wp_list_bookmarks%2528%2529" title="Like The Daily WordPress Reference: wp_list_bookmarks() on Facebook" rel="socialproxy" id="fblike-"><img src="http://cdn-images.mailchimp.com/fb/like.gif" border="0" alt="Like The Daily WordPress Reference: wp_list_bookmarks() on Facebook" height="20" width="48" style="display:inline;"/></a><br>
&nbsp;Or Donate to the project:<br>
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EQZ8YJVVF79AN" style="color: #cc0000;"><img alt="Donata via Paypal" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif"></a><br>
(<a href="http://www.dailydocumentation.com/blog/faq/why-donate-to-this-project/" style="color: #cc0000;">Why Donate?</a>)</td>
                    </tr>
                  </table>
                </td>
              </tr>
						</table>
            <!-- // End Module: Standard Content \\ -->
						<!-- // End Template Body \\ -->
					</td>
				</tr>
				<tr>
					<td valign="top" width="600">
            <!-- // Begin Template Footer \\ -->
            <!-- // Begin Module: Standard Footer \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td valign="top">
									<table cellspacing="0" border="0" width="600" cellpadding="0">
										<tr>
											<td class="unsubscribe" valign="top" style="padding: 10px 20px; color: #999; font-size: 14px; font-family: Georgia; line-height: 20px;">
                        <div><br>
 </div>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td valign="top" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td class="copyright" height="100" align="center" valign="top" style="padding: 0 20px; color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; line-height: 20px;" width="600" colspan="2">
                  <div>
									&nbsp;<a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=36ccd0b57f">unsubscribe from this list</a> | <a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]">update subscription preferences</a>&nbsp; 
                  </div>
								</td>
							</tr>
						</table>
            <!-- // End Module: Standard Footer \\ -->
						<!-- // End Template Footer \\ -->
					</td>
				</tr>
			</table>
			
		</td>
	
	</tr>
	
</table>

</body>
</html>
<!--
<a href="./" style="color: #cc0000; text-decoration: none;"></a>
-->
]]></content:encoded>
      <pubDate>Tue, 06 Nov 2012 13:00:00 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[The Daily WordPress Reference: home_url()]]></title>
      <link>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=4c62d409d9</link>
      <guid>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=4c62d409d9</guid>
      <description><![CDATA[Is this email not displaying correctly? View it in your browser: http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=4c62d409d9&e=[UNIQID]
   
The Daily WordPress Reference

The home_url() function

Description
   The home_url template tag retrieves the home url for the current site with the appropriate protocol, 'https' if is_ssl() and 'http' otherwise. If scheme is 'http' or 'https', is_ssl() is overridden.
   
   In case of WordPress Network setup, use network_home_url() instead. 

Usage
   <?php home_url( $path, $scheme ); ?>
   Default Usage
   
   <?php echo home_url(); ?> 

Parameters
   $path
       (string) (optional) Path relative to the home url.
   
           Default: None 
   
   $scheme
       (string) (optional) Scheme to give the home url context. Currently 'http','https'.
   
           Default: null 

Return Values
   (string) 
       Home url link with optional path appended. 

Examples
   $url = home_url();
   echo $url;
   
   Output: http://www.example.com
   
   (Note the lack of a trailing slash)
   
   $url = home_url('/');
   echo $url;

More informations
   http://codex.wordpress.org/Function_Reference/home_url
   
  
DailyWordpressReference is not affiliated with WordPress in any way.
  __________________________________________________________________
  Links:
    [1]Follow the Daily WordPress Reference on Twitter
   
   
    [2]unsubscribe from this list | [3]update subscription preferences
     Links:
       1. Twitter Account not yet Authorized


       2. http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=4c62d409d9
       3. http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]]]></description>
      <content:encoded><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>The Daily WordPress Reference: home_url()</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<!-- Facebook sharing information tags -->
	<meta property="og:title" content="The Daily WordPress Reference: home_url()">
		
<style type="text/css">
		a{
			color:#cc0000;
		}
		dl{
			margin:0;
		}
		h4{
			margin-bottom:0;
		}
		.example{
			border:1px dashed #059100;
			padding:3px;
		}
		.default_param_value{
			color:#777;
			padding-bottom:7px;
		}
		code{
			color:#3D5A6F;
			background:#F7F7F7;
		}
		pre{
			color:#3D5A6F;
			background:#F7F7F7;
			border-top:1px solid #dedede;
			border-bottom:1px solid #dedede;
			padding:3px 2px;
		}
		.list a{
			color:#cc0000;
			text-transform:uppercase;
			font-family:Verdana;
			font-size:11px;
			text-decoration:none;
		}
</style></head>
<body marginheight="0" topmargin="0" marginwidth="0" bgcolor="#c5c5c5" leftmargin="0">

<table cellspacing="0" border="0" style="background-image: url(http://www.dailydocumentation.com/wordpress/mailassets/bg.gif); background-color: #c5c5c5;" cellpadding="0" width="100%">
	
	<tr>
		
		<td valign="top">

			<table cellspacing="0" border="0" align="center" style="background: #fff; border-right: 1px solid #ccc; border-left: 1px solid #ccc;" cellpadding="0" width="600">
				<tr>
					<td valign="top">
            <!-- // Begin Template Preheader \\ -->	
						<table cellspacing="0" border="0" height="110" cellpadding="0" width="600">
							<tr>
                <!-- // Begin Module: Standard Preheader \\ -->
								<td class="header-text" height="50" valign="top" style="color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; padding: 0 20px;" width="540" colspan="2">
                  <div>
									<!--  -->
                  </div>
								</td>
                <!-- // End Module: Standard Preheader \\ -->
							</tr>
              <!-- // End Template Preheader \\ -->
							<tr>
                <!-- // Begin Template Header \\ -->
								<td class="main-title" height="13" valign="top" style="padding: 0 20px; font-size: 25px; font-family: Georgia;" width="600" colspan="2">
                  <!-- // Begin Module: Standard Header Image \\ -->
									<a href="http://www.dailydocumentation.com/wordpress/" style="color: black; text-decoration: none;">The Daily WordPress Reference</a>
                  <!-- // End Module: Standard Header Image \\ -->
								</td>
							</tr>
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
						</table>
            <!-- // End Template Header \\ -->
					</td>
				</tr>
				<tr>
					<td>
            <!-- // Begin Template Body \\ -->
            <!-- // Begin Module: Standard Content \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
              <tr>
                <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  <div><div style="text-align: left;">
	home_url()</div>
</div>
                </td>
              </tr>
              <tr>
                <td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><p>
	The home_url template tag retrieves the home url for the current site with the appropriate protocol, &#39;https&#39; if <a href="http://codex.wordpress.org/Function_Reference/is_ssl" title="Function Reference/is ssl" style="color: #cc0000;">is_ssl()</a> and &#39;http&#39; otherwise. If <a href="http://codex.wordpress.org/Function_Reference/home_url#Parameters" title="" style="color: #cc0000;">scheme</a> is &#39;http&#39; or &#39;https&#39;, is_ssl() is overridden.</p>
<p>
	In case of WordPress Network setup, use <a href="http://codex.wordpress.org/Function_Reference/network_home_url" title="Function Reference/network home url" style="color: #cc0000;">network_home_url()</a> instead.</p>
</div>
                </td>
              </tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  Usage
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;?php&nbsp;home_url(&nbsp;$path,&nbsp;$scheme&nbsp;);&nbsp;?&gt;</pre>
Default Usage
<pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;?php&nbsp;echo&nbsp;home_url();&nbsp;?&gt;</pre>
</div>
								</td>
							</tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Parameters
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                  <div><dl style="margin: 0;">
	<dt>
		<strong>$path</strong><br>
		&nbsp;&nbsp; (<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#String" title="How to Pass Tag Parameters" style="color: #cc0000;">string</a>) (optional) Path relative to the home url.<br>
		&nbsp;&nbsp; Default: None</dt>
	<dd>
		&nbsp;</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>$scheme</strong><br>
		&nbsp;&nbsp; (<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#String" title="How to Pass Tag Parameters" style="color: #cc0000;">string</a>) (optional) Scheme to give the<br>
		&nbsp;&nbsp; home url context. Currently &#39;http&#39;,&#39;https&#39;.<br>
		&nbsp;&nbsp; Default: null</dt>
	
</dl>
</div>
								</td>
							</tr>
							
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Return values
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><dl style="margin: 0;">
	<dt>
		(<strong>string</strong>)<br>
		&nbsp;&nbsp; Home url link with optional path appended.</dt>
</dl>
</div>
								</td>
							</tr>

							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Examples
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
$url = home_url();
echo $url;
</pre>
<p>
	Output: <a href="http://www.example.com" title="http://www.example.com" style="color: #cc0000;">http://www.example.com</a></p>
<p>
	(Note the lack of a trailing slash)</p>
<pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
$url = home_url(&#39;/&#39;);
echo $url;
</pre>
<p>
	Output: <a href="http://www.example.com" title="http://www.example.com" style="color: #cc0000;">http://www.example.com/</a></p>
</div>
								</td>
							</tr>

              	<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									More information
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><a href="http://codex.wordpress.org/Function_Reference/home_url" style="color: #cc0000;">http://codex.wordpress.org/Function_Reference/home_url</a></div><br>
								</td>
							</tr>
							<tr>
                <td>
                  <table width="600">
                    <tr>
                      <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                        Liked this function?
                      </td>
                    </tr>
                    <tr>
                      <td width="70%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2"><div>
	You might also like these books:<br>

<a href="http://www.amazon.com/gp/product/0470916222/ref=as_li_tf_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0470916222" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0470916222&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0470916222" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/1119995965/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1119995965" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=1119995965&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=1119995965" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/0980455294/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0980455294" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0980455294&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0980455294" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

</div>
</td>
                      <td width="30%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; text-align: right; line-height: 20px;" colspan="2">Share it:<br>
<a href="http://twitter.com/share?url=http%3A%2F%2Feepurl.com%2FqTpjr&text=The+Daily+WordPress+Reference%3A+home_url%28%29&count=none" target="_blank"><img src="http://cdn-images.mailchimp.com/social_connect_tweet.png" border="0" width="55" height="20" style="display:inline;" alt="share on Twitter"></a>&nbsp;<a href="http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=4c62d409d9&fblike=true&e=[UNIQID]&socialproxy=http%3A%2F%2Fus4.campaign-archive.com%2Fsocial-proxy%2Ffacebook-like%3Fu%3D427153c482114d70024e1dc1a%26id%3D4c62d409d9%26url%3Dhttp%253A%252F%252Fus4.campaign-archive.com%252F%253Fu%253D427153c482114d70024e1dc1a%2526id%253D4c62d409d9%26title%3DThe%2520Daily%2520WordPress%2520Reference%253A%2520home_url%2528%2529" title="Like The Daily WordPress Reference: home_url() on Facebook" rel="socialproxy" id="fblike-"><img src="http://cdn-images.mailchimp.com/fb/like.gif" border="0" alt="Like The Daily WordPress Reference: home_url() on Facebook" height="20" width="48" style="display:inline;"/></a><br>
&nbsp;Or Donate to the project:<br>
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EQZ8YJVVF79AN" style="color: #cc0000;"><img alt="Donata via Paypal" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif"></a><br>
(<a href="http://www.dailydocumentation.com/blog/faq/why-donate-to-this-project/" style="color: #cc0000;">Why Donate?</a>)</td>
                    </tr>
                  </table>
                </td>
              </tr>
						</table>
            <!-- // End Module: Standard Content \\ -->
						<!-- // End Template Body \\ -->
					</td>
				</tr>
				<tr>
					<td valign="top" width="600">
            <!-- // Begin Template Footer \\ -->
            <!-- // Begin Module: Standard Footer \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td valign="top">
									<table cellspacing="0" border="0" width="600" cellpadding="0">
										<tr>
											<td class="unsubscribe" valign="top" style="padding: 10px 20px; color: #999; font-size: 14px; font-family: Georgia; line-height: 20px;">
                        <div><br>
 </div>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td valign="top" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td class="copyright" height="100" align="center" valign="top" style="padding: 0 20px; color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; line-height: 20px;" width="600" colspan="2">
                  <div>
									&nbsp;<a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=4c62d409d9">unsubscribe from this list</a> | <a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]">update subscription preferences</a>&nbsp; 
                  </div>
								</td>
							</tr>
						</table>
            <!-- // End Module: Standard Footer \\ -->
						<!-- // End Template Footer \\ -->
					</td>
				</tr>
			</table>
			
		</td>
	
	</tr>
	
</table>

</body>
</html>
<!--
<a href="./" style="color: #cc0000; text-decoration: none;"></a>
-->
]]></content:encoded>
      <pubDate>Sat, 03 Nov 2012 12:00:00 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[The Daily WordPress Reference: wp_enqueue_script()]]></title>
      <link>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=e4028d9171</link>
      <guid>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=e4028d9171</guid>
      <description><![CDATA[Is this email not displaying correctly? View it in your browser: http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=e4028d9171&e=[UNIQID]
   
The Daily WordPress Reference

The wp_enqueue_script() function

Description
   The safe and recommended method of adding JavaScript to a WordPress generated page is by using wp_enqueue_script(). This function includes the script if it hasn't already been included, and safely handles dependencies.

Usage
   wp_enqueue_script( 
        $handle
       ,$src
       ,$deps
       ,$ver
       ,$in_footer 
   );
   
   Use the wp_enqueue_scripts action to call this function, or admin_enqueue_scripts to call it on the admin side, or use login_enqueue_scripts for login screens.

Parameters
   $handle
       (string) (required) Name of the script. Lowercase string.
   
           Default: None 
   
   $src
       (string) (optional) URL to the script. Example: "http://example.com/wp-includes/js/scriptaculous/scriptaculous.js". This parameter is only required when WordPress does not already know about this script. You should never hardcode URLs to local scripts, use plugins_url() (for Plugins) and get_template_directory_uri() (for Themes) to get a proper URL.
   
           Default: false 
   
   $deps
       (array) (optional) Array of handles of any script that this script depends on (scripts that must be loaded before this script). false if there are no dependencies. This parameter is only required when WordPress does not already know about this script.
   
           Default: array() 
   
   $ver
       (string) (optional) String specifying the script version number, if it has one, which is concatenated to the end of the path as a query string. Defaults to false. If no version is specified or set to false then WordPress automatically adds a version number equal to the current version of WordPress you are running. If set to null no version is added. This parameter is used to ensure that the correct version is sent to the client regardless of caching, and so should be included if a version number is available and makes sense for the script.
   
           Default: false 
   
   $in_footer
       (boolean) (optional) Normally scripts are placed in the <head> section. If this parameter is true the script is placed at the bottom of the <body>. This requires the theme to have the wp_footer() hook in the appropriate place. Note that you have to enqueue your script before wp_head is run, even if it will be placed in the footer.
   
           Default: false 

Return Values
   None.

Examples
   Load a script that depends on scriptaculous
   
   Add and load a new script that depends on Scriptaculous. This will cause WordPress to load Scriptaculous into the page before the new script.
   
   <?php
   function my_scripts_method() {
   	wp_enqueue_script(
   		'newscript',
   		plugins_url('/js/newscript.js', __FILE__),
   		array('scriptaculous')
   	);
   }    
    
   add_action('wp_enqueue_scripts', 'my_scripts_method');
   ?>

More informations
   http://codex.wordpress.org/Function_Reference/wp_enqueue_script
   
  
DailyWordpressReference is not affiliated with WordPress in any way.
  __________________________________________________________________
  Links:
    [1]Follow the Daily WordPress Reference on Twitter
   
   
    [2]unsubscribe from this list | [3]update subscription preferences
     Links:
       1. Twitter Account not yet Authorized


       2. http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=e4028d9171
       3. http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]]]></description>
      <content:encoded><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>The Daily WordPress Reference: wp_enqueue_script()</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<!-- Facebook sharing information tags -->
	<meta property="og:title" content="The Daily WordPress Reference: wp_enqueue_script()">
		
<style type="text/css">
		a{
			color:#cc0000;
		}
		dl{
			margin:0;
		}
		h4{
			margin-bottom:0;
		}
		.example{
			border:1px dashed #059100;
			padding:3px;
		}
		.default_param_value{
			color:#777;
			padding-bottom:7px;
		}
		code{
			color:#3D5A6F;
			background:#F7F7F7;
		}
		pre{
			color:#3D5A6F;
			background:#F7F7F7;
			border-top:1px solid #dedede;
			border-bottom:1px solid #dedede;
			padding:3px 2px;
		}
		.list a{
			color:#cc0000;
			text-transform:uppercase;
			font-family:Verdana;
			font-size:11px;
			text-decoration:none;
		}
</style></head>
<body marginheight="0" topmargin="0" marginwidth="0" bgcolor="#c5c5c5" leftmargin="0">

<table cellspacing="0" border="0" style="background-image: url(http://www.dailydocumentation.com/wordpress/mailassets/bg.gif); background-color: #c5c5c5;" cellpadding="0" width="100%">
	
	<tr>
		
		<td valign="top">

			<table cellspacing="0" border="0" align="center" style="background: #fff; border-right: 1px solid #ccc; border-left: 1px solid #ccc;" cellpadding="0" width="600">
				<tr>
					<td valign="top">
            <!-- // Begin Template Preheader \\ -->	
						<table cellspacing="0" border="0" height="110" cellpadding="0" width="600">
							<tr>
                <!-- // Begin Module: Standard Preheader \\ -->
								<td class="header-text" height="50" valign="top" style="color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; padding: 0 20px;" width="540" colspan="2">
                  <div>
									<!--  -->
                  </div>
								</td>
                <!-- // End Module: Standard Preheader \\ -->
							</tr>
              <!-- // End Template Preheader \\ -->
							<tr>
                <!-- // Begin Template Header \\ -->
								<td class="main-title" height="13" valign="top" style="padding: 0 20px; font-size: 25px; font-family: Georgia;" width="600" colspan="2">
                  <!-- // Begin Module: Standard Header Image \\ -->
									<a href="http://www.dailydocumentation.com/wordpress/" style="color: black; text-decoration: none;">The Daily WordPress Reference</a>
                  <!-- // End Module: Standard Header Image \\ -->
								</td>
							</tr>
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
						</table>
            <!-- // End Template Header \\ -->
					</td>
				</tr>
				<tr>
					<td>
            <!-- // Begin Template Body \\ -->
            <!-- // Begin Module: Standard Content \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
              <tr>
                <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  <div><div style="text-align: left;">
	wp_enqueue_script()</div>
</div>
                </td>
              </tr>
              <tr>
                <td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><p>
	The safe and recommended method of adding JavaScript to a WordPress generated page is by using wp_enqueue_script(). This function includes the script if it hasn&#39;t already been included, and safely handles dependencies.</p>
</div>
                </td>
              </tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  Usage
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
wp_enqueue_script( 
     $handle
    ,$src
    ,$deps
    ,$ver
    ,$in_footer 
);
</pre>
<p>
	Use the wp_enqueue_scripts action to call this function, or admin_enqueue_scripts to call it on the admin side, or use login_enqueue_scripts for login screens.</p>
</div>
								</td>
							</tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Parameters
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                  <div><dl style="margin: 0;">
	<dt>
		<strong>$handle</strong><br>
		&nbsp;&nbsp; (<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#String" title="How to Pass Tag Parameters" style="color: #cc0000;">string</a>) (required) Name of the script. Lowercase string.<br>
		&nbsp;&nbsp; Default: None</dt>
	<dd>
		&nbsp;</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>$src</strong><br>
		&nbsp;&nbsp; (<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#String" title="How to Pass Tag Parameters" style="color: #cc0000;">string</a>) (optional) URL to the script.<br>
		&nbsp;&nbsp; Example: &quot;<a href="http://example.com/wp-includes/js/scriptaculous/scriptaculous.js" title="http://example.com/wp-includes/js/scriptaculous/scriptaculous.js" style="color: #cc0000;">http://example.com/wp-includes/js/scriptaculous/scriptaculous.js</a>&quot;.<br>
		&nbsp;&nbsp; This parameter is only required when WordPress does not already<br>
		&nbsp;&nbsp; know about this script. You should never hardcode URLs to local scripts<br>
		&nbsp;&nbsp; use <a href="http://codex.wordpress.org/Function_Reference/plugins_url" title="Function Reference/plugins url" style="color: #cc0000;">plugins_url()</a> (for Plugins) and <a href="http://codex.wordpress.org/Function_Reference/get_template_directory_uri" title="Function Reference/get template directory uri" style="color: #cc0000;">get_template_directory_uri()</a> (for Themes) to get a proper URL.<br>
		&nbsp;&nbsp; Default: false</dt>
	<dd>
		&nbsp;</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>$deps</strong><br>
		&nbsp;&nbsp; (<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#Array" title="How to Pass Tag Parameters" style="color: #cc0000;">array</a>) (optional) Array of handles of any script that<br>
		&nbsp;&nbsp; this script depends on (scripts that must be loaded before this script).<br>
		&nbsp;&nbsp; false if there are no dependencies. This parameter is only required when<br>
		&nbsp;&nbsp; WordPress does not already know about this script.<br>
		&nbsp;&nbsp; Default: array()</dt>
	<dd>
		&nbsp;</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>$ver</strong><br>
		&nbsp;&nbsp; (<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#String" title="How to Pass Tag Parameters" style="color: #cc0000;">string</a>) (optional) String specifying the script version number,<br>
		&nbsp;&nbsp; if it has one, which is concatenated to the end of the path as a query<br>
		&nbsp;&nbsp; string. Defaults to false.&nbsp;<br>
		&nbsp;&nbsp; This parameter is used to ensure that the correct version is sent to the client<br>
		&nbsp;&nbsp; regardless of caching, and so should be included if a version number<br>
		&nbsp;&nbsp; is available and makes sense for the script.<br>
		&nbsp;&nbsp; Default: false</dt>
	<dd>
		&nbsp;</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>$in_footer</strong><br>
		&nbsp;&nbsp; (<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#Boolean" title="How to Pass Tag Parameters" style="color: #cc0000;">boolean</a>) (optional) Normally scripts are placed in the &lt;head&gt; section.<br>
		&nbsp;&nbsp; If this parameter is true the script is placed at the bottom of the &lt;body&gt;.<br>
		&nbsp;&nbsp; This requires the theme to have the <a href="http://codex.wordpress.org/Plugin_API/Action_Reference/wp_footer" title="Plugin API/Action Reference/wp footer" style="color: #cc0000;">wp_footer()</a> hook in the appropriate place.<br>
		&nbsp;&nbsp; Default: false</dt>
</dl>
</div>
								</td>
							</tr>
							
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Return values
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div>None.</div>
								</td>
							</tr>

							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Examples
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><h4 style="margin-bottom: 0;">
	Load a script that depends on scriptaculous</h4>
<p>
	Add and load a new script that depends on Scriptaculous.<br>
	This will cause WordPress to load Scriptaculous into the page before the new script.</p>
<pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;?php
function my_scripts_method() {
	wp_enqueue_script(
		&#39;newscript&#39;,
		plugins_url(&#39;/js/newscript.js&#39;, __FILE__),
		array(&#39;scriptaculous&#39;)
	);
}    
 
add_action(&#39;wp_enqueue_scripts&#39;, &#39;my_scripts_method&#39;);
?&gt;
</pre>
</div>
								</td>
							</tr>

              	<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									More information
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><a href="http://codex.wordpress.org/Function_Reference/wp_enqueue_script" style="color: #cc0000;">http://codex.wordpress.org/Function_Reference/wp_enqueue_script</a></div><br>
								</td>
							</tr>
							<tr>
                <td>
                  <table width="600">
                    <tr>
                      <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                        Liked this function?
                      </td>
                    </tr>
                    <tr>
                      <td width="70%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2"><div>
	You might also like these books:<br>

<a href="http://www.amazon.com/gp/product/0470916222/ref=as_li_tf_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0470916222" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0470916222&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0470916222" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/1119995965/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1119995965" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=1119995965&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=1119995965" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/0980455294/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0980455294" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0980455294&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0980455294" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

</div>
</td>
                      <td width="30%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; text-align: right; line-height: 20px;" colspan="2">Share it:<br>
<a href="http://twitter.com/share?url=http%3A%2F%2Feepurl.com%2FqTnX1&text=The+Daily+WordPress+Reference%3A+wp_enqueue_script%28%29&count=none" target="_blank"><img src="http://cdn-images.mailchimp.com/social_connect_tweet.png" border="0" width="55" height="20" style="display:inline;" alt="share on Twitter"></a>&nbsp;<a href="http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=e4028d9171&fblike=true&e=[UNIQID]&socialproxy=http%3A%2F%2Fus4.campaign-archive.com%2Fsocial-proxy%2Ffacebook-like%3Fu%3D427153c482114d70024e1dc1a%26id%3De4028d9171%26url%3Dhttp%253A%252F%252Fus4.campaign-archive.com%252F%253Fu%253D427153c482114d70024e1dc1a%2526id%253De4028d9171%26title%3DThe%2520Daily%2520WordPress%2520Reference%253A%2520wp_enqueue_script%2528%2529" title="Like The Daily WordPress Reference: wp_enqueue_script() on Facebook" rel="socialproxy" id="fblike-"><img src="http://cdn-images.mailchimp.com/fb/like.gif" border="0" alt="Like The Daily WordPress Reference: wp_enqueue_script() on Facebook" height="20" width="48" style="display:inline;"/></a><br>
&nbsp;Or Donate to the project:<br>
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EQZ8YJVVF79AN" style="color: #cc0000;"><img alt="Donata via Paypal" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif"></a><br>
(<a href="http://www.dailydocumentation.com/blog/faq/why-donate-to-this-project/" style="color: #cc0000;">Why Donate?</a>)</td>
                    </tr>
                  </table>
                </td>
              </tr>
						</table>
            <!-- // End Module: Standard Content \\ -->
						<!-- // End Template Body \\ -->
					</td>
				</tr>
				<tr>
					<td valign="top" width="600">
            <!-- // Begin Template Footer \\ -->
            <!-- // Begin Module: Standard Footer \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td valign="top">
									<table cellspacing="0" border="0" width="600" cellpadding="0">
										<tr>
											<td class="unsubscribe" valign="top" style="padding: 10px 20px; color: #999; font-size: 14px; font-family: Georgia; line-height: 20px;">
                        <div><br>
 </div>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td valign="top" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td class="copyright" height="100" align="center" valign="top" style="padding: 0 20px; color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; line-height: 20px;" width="600" colspan="2">
                  <div>
									&nbsp;<a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=e4028d9171">unsubscribe from this list</a> | <a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]">update subscription preferences</a>&nbsp; 
                  </div>
								</td>
							</tr>
						</table>
            <!-- // End Module: Standard Footer \\ -->
						<!-- // End Template Footer \\ -->
					</td>
				</tr>
			</table>
			
		</td>
	
	</tr>
	
</table>

</body>
</html>
<!--
<a href="./" style="color: #cc0000; text-decoration: none;"></a>
-->
]]></content:encoded>
      <pubDate>Fri, 02 Nov 2012 12:00:00 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[The Daily WordPress Reference: is_search()]]></title>
      <link>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=9c659376ce</link>
      <guid>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=9c659376ce</guid>
      <description><![CDATA[Is this email not displaying correctly? View it in your browser: http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=9c659376ce&e=[UNIQID]
   
The Daily WordPress Reference

The is_search() function

Description
   This Conditional Tag checks if search result page archive is being displayed. This is a boolean function, meaning it returns either TRUE or FALSE. 

Usage
   <?php is_search(); ?> 

Parameters
   None.

Return Values
   (boolean) 
       True on success, false on failure. 

Examples
   <?php
   if ( is_search() ) {
       // add external search form (Google, Yahoo, Live...)
   }
   ?>

More informations
   http://codex.wordpress.org/Function_Reference/is_search
  
  
DailyWordpressReference is not affiliated with WordPress in any way.
  __________________________________________________________________
  Links:
    [1]Follow the Daily WordPress Reference on Twitter
   
   
    [2]unsubscribe from this list | [3]update subscription preferences
     Links:
       1. Twitter Account not yet Authorized


       2. http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=9c659376ce
       3. http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]]]></description>
      <content:encoded><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>The Daily WordPress Reference: is_search()</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<!-- Facebook sharing information tags -->
	<meta property="og:title" content="The Daily WordPress Reference: is_search()">
		
<style type="text/css">
		a{
			color:#cc0000;
		}
		dl{
			margin:0;
		}
		h4{
			margin-bottom:0;
		}
		.example{
			border:1px dashed #059100;
			padding:3px;
		}
		.default_param_value{
			color:#777;
			padding-bottom:7px;
		}
		code{
			color:#3D5A6F;
			background:#F7F7F7;
		}
		pre{
			color:#3D5A6F;
			background:#F7F7F7;
			border-top:1px solid #dedede;
			border-bottom:1px solid #dedede;
			padding:3px 2px;
		}
		.list a{
			color:#cc0000;
			text-transform:uppercase;
			font-family:Verdana;
			font-size:11px;
			text-decoration:none;
		}
</style></head>
<body marginheight="0" topmargin="0" marginwidth="0" bgcolor="#c5c5c5" leftmargin="0">

<table cellspacing="0" border="0" style="background-image: url(http://www.dailydocumentation.com/wordpress/mailassets/bg.gif); background-color: #c5c5c5;" cellpadding="0" width="100%">
	
	<tr>
		
		<td valign="top">

			<table cellspacing="0" border="0" align="center" style="background: #fff; border-right: 1px solid #ccc; border-left: 1px solid #ccc;" cellpadding="0" width="600">
				<tr>
					<td valign="top">
            <!-- // Begin Template Preheader \\ -->	
						<table cellspacing="0" border="0" height="110" cellpadding="0" width="600">
							<tr>
                <!-- // Begin Module: Standard Preheader \\ -->
								<td class="header-text" height="50" valign="top" style="color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; padding: 0 20px;" width="540" colspan="2">
                  <div>
									<!--  -->
                  </div>
								</td>
                <!-- // End Module: Standard Preheader \\ -->
							</tr>
              <!-- // End Template Preheader \\ -->
							<tr>
                <!-- // Begin Template Header \\ -->
								<td class="main-title" height="13" valign="top" style="padding: 0 20px; font-size: 25px; font-family: Georgia;" width="600" colspan="2">
                  <!-- // Begin Module: Standard Header Image \\ -->
									<a href="http://www.dailydocumentation.com/wordpress/" style="color: black; text-decoration: none;">The Daily WordPress Reference</a>
                  <!-- // End Module: Standard Header Image \\ -->
								</td>
							</tr>
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
						</table>
            <!-- // End Template Header \\ -->
					</td>
				</tr>
				<tr>
					<td>
            <!-- // Begin Template Body \\ -->
            <!-- // Begin Module: Standard Content \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
              <tr>
                <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  <div><div style="text-align: left;">
	is_search()</div>
</div>
                </td>
              </tr>
              <tr>
                <td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div>This <a href="http://codex.wordpress.org/Conditional_Tags" title="Conditional Tags" style="color: #cc0000;">Conditional Tag</a> checks if search result page archive is being displayed. This is a boolean function, meaning it returns either TRUE or FALSE.</div>
                </td>
              </tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  Usage
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;?php&nbsp;is_search();&nbsp;?&gt;</pre>
</div>
								</td>
							</tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Parameters
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                  <div>None.</div>
								</td>
							</tr>
							
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Return values
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><dl style="margin: 0;">
	<dt>
		(<strong>boolean</strong>)<br>
		&nbsp;&nbsp; True on success, false on failure.</dt>
</dl>
</div>
								</td>
							</tr>

							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Examples
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;?php

if&nbsp;(&nbsp;is_search()&nbsp;)&nbsp;{

&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;add&nbsp;external&nbsp;search&nbsp;form&nbsp;(Google,&nbsp;Yahoo,&nbsp;Live...)

}

?&gt;</pre>
</div>
								</td>
							</tr>

              	<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									More information
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><a href="http://codex.wordpress.org/Function_Reference/is_search" style="color: #cc0000;">http://codex.wordpress.org/Function_Reference/is_search</a></div><br>
								</td>
							</tr>
							<tr>
                <td>
                  <table width="600">
                    <tr>
                      <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                        Liked this function?
                      </td>
                    </tr>
                    <tr>
                      <td width="70%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2"><div>
	You might also like these books:<br>

<a href="http://www.amazon.com/gp/product/0470916222/ref=as_li_tf_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0470916222" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0470916222&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0470916222" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/1119995965/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1119995965" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=1119995965&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=1119995965" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/0980455294/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0980455294" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0980455294&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0980455294" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

</div>
</td>
                      <td width="30%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; text-align: right; line-height: 20px;" colspan="2">Share it:<br>
<a href="http://twitter.com/share?url=http%3A%2F%2Feepurl.com%2FqTnev&text=The+Daily+WordPress+Reference%3A+is_search%28%29&count=none" target="_blank"><img src="http://cdn-images.mailchimp.com/social_connect_tweet.png" border="0" width="55" height="20" style="display:inline;" alt="share on Twitter"></a>&nbsp;<a href="http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=9c659376ce&fblike=true&e=[UNIQID]&socialproxy=http%3A%2F%2Fus4.campaign-archive.com%2Fsocial-proxy%2Ffacebook-like%3Fu%3D427153c482114d70024e1dc1a%26id%3D9c659376ce%26url%3Dhttp%253A%252F%252Fus4.campaign-archive.com%252F%253Fu%253D427153c482114d70024e1dc1a%2526id%253D9c659376ce%26title%3DThe%2520Daily%2520WordPress%2520Reference%253A%2520is_search%2528%2529" title="Like The Daily WordPress Reference: is_search() on Facebook" rel="socialproxy" id="fblike-"><img src="http://cdn-images.mailchimp.com/fb/like.gif" border="0" alt="Like The Daily WordPress Reference: is_search() on Facebook" height="20" width="48" style="display:inline;"/></a><br>
&nbsp;Or Donate to the project:<br>
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EQZ8YJVVF79AN" style="color: #cc0000;"><img alt="Donata via Paypal" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif"></a><br>
(<a href="http://www.dailydocumentation.com/blog/faq/why-donate-to-this-project/" style="color: #cc0000;">Why Donate?</a>)</td>
                    </tr>
                  </table>
                </td>
              </tr>
						</table>
            <!-- // End Module: Standard Content \\ -->
						<!-- // End Template Body \\ -->
					</td>
				</tr>
				<tr>
					<td valign="top" width="600">
            <!-- // Begin Template Footer \\ -->
            <!-- // Begin Module: Standard Footer \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td valign="top">
									<table cellspacing="0" border="0" width="600" cellpadding="0">
										<tr>
											<td class="unsubscribe" valign="top" style="padding: 10px 20px; color: #999; font-size: 14px; font-family: Georgia; line-height: 20px;">
                        <div><br>
 </div>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td valign="top" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td class="copyright" height="100" align="center" valign="top" style="padding: 0 20px; color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; line-height: 20px;" width="600" colspan="2">
                  <div>
									&nbsp;<a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=9c659376ce">unsubscribe from this list</a> | <a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]">update subscription preferences</a>&nbsp; 
                  </div>
								</td>
							</tr>
						</table>
            <!-- // End Module: Standard Footer \\ -->
						<!-- // End Template Footer \\ -->
					</td>
				</tr>
			</table>
			
		</td>
	
	</tr>
	
</table>

</body>
</html>
<!--
<a href="./" style="color: #cc0000; text-decoration: none;"></a>
-->
]]></content:encoded>
      <pubDate>Thu, 01 Nov 2012 12:00:00 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[The Daily WordPress Reference: wp_remote_post()]]></title>
      <link>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=10967a5038</link>
      <guid>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=10967a5038</guid>
      <description><![CDATA[Is this email not displaying correctly? View it in your browser: http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=10967a5038&e=[UNIQID]
   
The Daily WordPress Reference

The wp_remote_post() function

Description
   Retrieves a URL using the HTTP POST method, returning results in an array. Results include HTTP headers and content.
   
   See Function_API/wp_remote_get for using the HTTP GET method.

Usage
   <?php wp_remote_post( $url, $args ); ?> 

Parameters
   $slug
       (mixed) (optional) The Tag slug or an Array of slugs.
   
           Default: None 

Return Values
   Array of results including HTTP headers. print_r results of requesting a simple web page using default arguments:
   
   Array
   (
       [headers] => Array
           (
               [date] => Thu, 30 Sep 2010 15:16:36 GMT
               [server] => Apache
               [x-powered-by] => PHP/5.3.3
               [x-server] => 10.90.6.243
               [expires] => Thu, 30 Sep 2010 03:16:36 GMT
               [cache-control] => Array
                   (
                       [0] => no-store, no-cache, must-revalidate
                       [1] => post-check=0, pre-check=0
                   )
   
               [vary] => Accept-Encoding
               [content-length] => 1641
               [connection] => close
               [content-type] => application/php
           )
       [body] => <html>This is a website!</html>
       [response] => Array
           (
               [code] => 200
               [message] => OK
           )
   
       [cookies] => Array
           (
           )
   
   )

Examples
   Post data should be sent in the body as an array. Example passing post data:
   
   $response = wp_remote_post( $url, array(
   	'method' => 'POST',
   	'timeout' => 45,
   	'redirection' => 5,
   	'httpversion' => '1.0',
   	'blocking' => true,
   	'headers' => array(),
   	'body' => array( 'username' => 'bob', 'password' => '1234xyz' ),
   	'cookies' => array()
       )
   );
   
   if( is_wp_error( $response ) ) {
      echo 'Something went wrong!';
   } else {
      echo 'Response:<pre>';
      print_r( $response );
      echo '</pre>';
   }

More informations
   http://codex.wordpress.org/Function_API/wp_remote_post
  
  
DailyWordpressReference is not affiliated with WordPress in any way.
  __________________________________________________________________
  Links:
    [1]Follow the Daily WordPress Reference on Twitter
   
   
    [2]unsubscribe from this list | [3]update subscription preferences
     Links:
       1. Twitter Account not yet Authorized


       2. http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=10967a5038
       3. http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]]]></description>
      <content:encoded><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>The Daily WordPress Reference: wp_remote_post()</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<!-- Facebook sharing information tags -->
	<meta property="og:title" content="The Daily WordPress Reference: wp_remote_post()">
		
<style type="text/css">
		a{
			color:#cc0000;
		}
		dl{
			margin:0;
		}
		h4{
			margin-bottom:0;
		}
		.example{
			border:1px dashed #059100;
			padding:3px;
		}
		.default_param_value{
			color:#777;
			padding-bottom:7px;
		}
		code{
			color:#3D5A6F;
			background:#F7F7F7;
		}
		pre{
			color:#3D5A6F;
			background:#F7F7F7;
			border-top:1px solid #dedede;
			border-bottom:1px solid #dedede;
			padding:3px 2px;
		}
		.list a{
			color:#cc0000;
			text-transform:uppercase;
			font-family:Verdana;
			font-size:11px;
			text-decoration:none;
		}
</style></head>
<body marginheight="0" topmargin="0" marginwidth="0" bgcolor="#c5c5c5" leftmargin="0">

<table cellspacing="0" border="0" style="background-image: url(http://www.dailydocumentation.com/wordpress/mailassets/bg.gif); background-color: #c5c5c5;" cellpadding="0" width="100%">
	
	<tr>
		
		<td valign="top">

			<table cellspacing="0" border="0" align="center" style="background: #fff; border-right: 1px solid #ccc; border-left: 1px solid #ccc;" cellpadding="0" width="600">
				<tr>
					<td valign="top">
            <!-- // Begin Template Preheader \\ -->	
						<table cellspacing="0" border="0" height="110" cellpadding="0" width="600">
							<tr>
                <!-- // Begin Module: Standard Preheader \\ -->
								<td class="header-text" height="50" valign="top" style="color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; padding: 0 20px;" width="540" colspan="2">
                  <div>
									<!--  -->
                  </div>
								</td>
                <!-- // End Module: Standard Preheader \\ -->
							</tr>
              <!-- // End Template Preheader \\ -->
							<tr>
                <!-- // Begin Template Header \\ -->
								<td class="main-title" height="13" valign="top" style="padding: 0 20px; font-size: 25px; font-family: Georgia;" width="600" colspan="2">
                  <!-- // Begin Module: Standard Header Image \\ -->
									<a href="http://www.dailydocumentation.com/wordpress/" style="color: black; text-decoration: none;">The Daily WordPress Reference</a>
                  <!-- // End Module: Standard Header Image \\ -->
								</td>
							</tr>
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
						</table>
            <!-- // End Template Header \\ -->
					</td>
				</tr>
				<tr>
					<td>
            <!-- // Begin Template Body \\ -->
            <!-- // Begin Module: Standard Content \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
              <tr>
                <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  <div><div style="text-align: left;">
	wp_remote_post()</div>
</div>
                </td>
              </tr>
              <tr>
                <td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><p>
	Retrieves a URL using the HTTP POST method, returning results in an array. Results include HTTP headers and content.</p>
<p>
	See <a href="http://codex.wordpress.org/Function_API/wp_remote_get" title="Function API/wp remote get" style="color: #cc0000;">Function_API/wp_remote_get</a> for using the HTTP GET method.</p>
</div>
                </td>
              </tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  Usage
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;?php&nbsp;wp_remote_post(&nbsp;$url,&nbsp;$args&nbsp;);&nbsp;?&gt;</pre>
</div>
								</td>
							</tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Parameters
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                  <div><dl style="margin: 0;">
	<dt>
		<strong>$url</strong><br>
		&nbsp; (<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#String" title="How to Pass Tag Parameters" style="color: #cc0000;">string</a>) (required) Universal Resource Locator (URL).<br>
		&nbsp; Default: None</dt>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>$args</strong><br>
		&nbsp; (<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#Array" title="How to Pass Tag Parameters" style="color: #cc0000;">array</a>) (optional) Optional. See&nbsp;<a href="http://codex.wordpress.org/HTTP_API#Other_Arguments" title="HTTP API" style="color: #cc0000;">HTTP_API#Other_Arguments</a> for argument details.<br>
		&nbsp; Default: method: POST, timeout: 5, redirection: 5,&nbsp;httpversion: 1.0, blocking: true, headers: array(),<br>
		&nbsp; body: null, cookies: array()</dt>
</dl>
</div>
								</td>
							</tr>
							
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Return values
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><p>
	<strong>Array of results including HTTP headers. print_r results of requesting a simple web page using default arguments:</strong></p>
<pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
Array
(
    [headers] =&gt; Array
        (
            [date] =&gt; Thu, 30 Sep 2010 15:16:36 GMT
            [server] =&gt; Apache
            [x-powered-by] =&gt; PHP/5.3.3
            [x-server] =&gt; 10.90.6.243
            [expires] =&gt; Thu, 30 Sep 2010 03:16:36 GMT
            [cache-control] =&gt; Array
                (
                    [0] =&gt; no-store, no-cache, must-revalidate
                    [1] =&gt; post-check=0, pre-check=0
                )

            [vary] =&gt; Accept-Encoding
            [content-length] =&gt; 1641
            [connection] =&gt; close
            [content-type] =&gt; application/php
        )
    [body] =&gt; &lt;html&gt;This is a website!&lt;/html&gt;
    [response] =&gt; Array
        (
            [code] =&gt; 200
            [message] =&gt; OK
        )

    [cookies] =&gt; Array
        (
        )

)
</pre>
</div>
								</td>
							</tr>

							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Examples
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><h4 style="margin-bottom: 0;">
	Post data should be sent in the body as an array. Example passing post data:</h4>
<pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
$response = wp_remote_post( $url, array(
  &#39;method&#39; =&gt; &#39;POST&#39;,
  &#39;timeout&#39; =&gt; 45,
  &#39;redirection&#39; =&gt; 5,
  &#39;httpversion&#39; =&gt; &#39;1.0&#39;,
  &#39;blocking&#39; =&gt; true,
  &#39;headers&#39; =&gt; array(),
  &#39;body&#39; =&gt; array( &#39;username&#39; =&gt; &#39;bob&#39;,
                   &#39;password&#39; =&gt; &#39;1234xyz&#39; ),
  &#39;cookies&#39; =&gt; array()
  )
);

if( is_wp_error( $response ) ) {
   echo &#39;Something went wrong!&#39;;
} else {
   echo &#39;Response:&lt;pre&gt;&#39;;
   print_r( $response );
   echo &#39;&lt;/pre&gt;&#39;;
}
</pre>
</div>
								</td>
							</tr>

              	<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									More information
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><a href="http://codex.wordpress.org/Function_API/wp_remote_post" style="color: #cc0000;">http://codex.wordpress.org/Function_API/wp_remote_post</a></div><br>
								</td>
							</tr>
							<tr>
                <td>
                  <table width="600">
                    <tr>
                      <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                        Liked this function?
                      </td>
                    </tr>
                    <tr>
                      <td width="70%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2"><div>
	You might also like these books:<br>

<a href="http://www.amazon.com/gp/product/0470916222/ref=as_li_tf_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0470916222" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0470916222&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0470916222" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/1119995965/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1119995965" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=1119995965&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=1119995965" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/0980455294/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0980455294" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0980455294&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0980455294" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

</div>
</td>
                      <td width="30%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; text-align: right; line-height: 20px;" colspan="2">Share it:<br>
<a href="http://twitter.com/share?url=http%3A%2F%2Feepurl.com%2FqTllD&text=The+Daily+WordPress+Reference%3A+wp_remote_post%28%29&count=none" target="_blank"><img src="http://cdn-images.mailchimp.com/social_connect_tweet.png" border="0" width="55" height="20" style="display:inline;" alt="share on Twitter"></a>&nbsp;<a href="http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=10967a5038&fblike=true&e=[UNIQID]&socialproxy=http%3A%2F%2Fus4.campaign-archive.com%2Fsocial-proxy%2Ffacebook-like%3Fu%3D427153c482114d70024e1dc1a%26id%3D10967a5038%26url%3Dhttp%253A%252F%252Fus4.campaign-archive.com%252F%253Fu%253D427153c482114d70024e1dc1a%2526id%253D10967a5038%26title%3DThe%2520Daily%2520WordPress%2520Reference%253A%2520wp_remote_post%2528%2529" title="Like The Daily WordPress Reference: wp_remote_post() on Facebook" rel="socialproxy" id="fblike-"><img src="http://cdn-images.mailchimp.com/fb/like.gif" border="0" alt="Like The Daily WordPress Reference: wp_remote_post() on Facebook" height="20" width="48" style="display:inline;"/></a><br>
&nbsp;Or Donate to the project:<br>
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EQZ8YJVVF79AN" style="color: #cc0000;"><img alt="Donata via Paypal" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif"></a><br>
(<a href="http://www.dailydocumentation.com/blog/faq/why-donate-to-this-project/" style="color: #cc0000;">Why Donate?</a>)</td>
                    </tr>
                  </table>
                </td>
              </tr>
						</table>
            <!-- // End Module: Standard Content \\ -->
						<!-- // End Template Body \\ -->
					</td>
				</tr>
				<tr>
					<td valign="top" width="600">
            <!-- // Begin Template Footer \\ -->
            <!-- // Begin Module: Standard Footer \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td valign="top">
									<table cellspacing="0" border="0" width="600" cellpadding="0">
										<tr>
											<td class="unsubscribe" valign="top" style="padding: 10px 20px; color: #999; font-size: 14px; font-family: Georgia; line-height: 20px;">
                        <div><br>
 </div>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td valign="top" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td class="copyright" height="100" align="center" valign="top" style="padding: 0 20px; color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; line-height: 20px;" width="600" colspan="2">
                  <div>
									&nbsp;<a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=10967a5038">unsubscribe from this list</a> | <a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]">update subscription preferences</a>&nbsp; 
                  </div>
								</td>
							</tr>
						</table>
            <!-- // End Module: Standard Footer \\ -->
						<!-- // End Template Footer \\ -->
					</td>
				</tr>
			</table>
			
		</td>
	
	</tr>
	
</table>

</body>
</html>
<!--
<a href="./" style="color: #cc0000; text-decoration: none;"></a>
-->
]]></content:encoded>
      <pubDate>Wed, 31 Oct 2012 12:00:00 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[The Daily WordPress Reference: is_tag()]]></title>
      <link>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=4bb1688ccf</link>
      <guid>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=4bb1688ccf</guid>
      <description><![CDATA[Is this email not displaying correctly? View it in your browser: http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=4bb1688ccf&e=[UNIQID]
   
The Daily WordPress Reference

The is_tag() function

Description
   This Conditional Tag checks if a Tag archive page is being displayed. This is a boolean function, meaning it returns either TRUE or FALSE. 

Usage
   <?php is_tag( $slug ); ?> 

Parameters
   $slug
       (mixed) (optional) The Tag slug or an Array of slugs.
   
           Default: None 

Return Values
   (boolean) 
       True on success, false on failure. 

Examples
   is_tag();
   // When any Tag archive page is being displayed.
   
   is_tag( 'mild' );
   // When the archive page for tag with the slug of 'mild' is being displayed.
   
   is_tag( array( 'sharp', 'mild', 'extreme' ) );
   // Returns true when the tag archive being displayed has a slug of either "sharp", "mild", or "extreme".  Note: the array ability was added at Version 2.5.

More informations
   http://codex.wordpress.org/Function_Reference/is_tag
  
  
DailyWordpressReference is not affiliated with WordPress in any way.
  __________________________________________________________________
  Links:
    [1]Follow the Daily WordPress Reference on Twitter
   
   
    [2]unsubscribe from this list | [3]update subscription preferences
     Links:
       1. Twitter Account not yet Authorized


       2. http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=4bb1688ccf
       3. http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]]]></description>
      <content:encoded><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>The Daily WordPress Reference: is_tag()</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<!-- Facebook sharing information tags -->
	<meta property="og:title" content="The Daily WordPress Reference: is_tag()">
		
<style type="text/css">
		a{
			color:#cc0000;
		}
		dl{
			margin:0;
		}
		h4{
			margin-bottom:0;
		}
		.example{
			border:1px dashed #059100;
			padding:3px;
		}
		.default_param_value{
			color:#777;
			padding-bottom:7px;
		}
		code{
			color:#3D5A6F;
			background:#F7F7F7;
		}
		pre{
			color:#3D5A6F;
			background:#F7F7F7;
			border-top:1px solid #dedede;
			border-bottom:1px solid #dedede;
			padding:3px 2px;
		}
		.list a{
			color:#cc0000;
			text-transform:uppercase;
			font-family:Verdana;
			font-size:11px;
			text-decoration:none;
		}
</style></head>
<body marginheight="0" topmargin="0" marginwidth="0" bgcolor="#c5c5c5" leftmargin="0">

<table cellspacing="0" border="0" style="background-image: url(http://www.dailydocumentation.com/wordpress/mailassets/bg.gif); background-color: #c5c5c5;" cellpadding="0" width="100%">
	
	<tr>
		
		<td valign="top">

			<table cellspacing="0" border="0" align="center" style="background: #fff; border-right: 1px solid #ccc; border-left: 1px solid #ccc;" cellpadding="0" width="600">
				<tr>
					<td valign="top">
            <!-- // Begin Template Preheader \\ -->	
						<table cellspacing="0" border="0" height="110" cellpadding="0" width="600">
							<tr>
                <!-- // Begin Module: Standard Preheader \\ -->
								<td class="header-text" height="50" valign="top" style="color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; padding: 0 20px;" width="540" colspan="2">
                  <div>
									<!--  -->
                  </div>
								</td>
                <!-- // End Module: Standard Preheader \\ -->
							</tr>
              <!-- // End Template Preheader \\ -->
							<tr>
                <!-- // Begin Template Header \\ -->
								<td class="main-title" height="13" valign="top" style="padding: 0 20px; font-size: 25px; font-family: Georgia;" width="600" colspan="2">
                  <!-- // Begin Module: Standard Header Image \\ -->
									<a href="http://www.dailydocumentation.com/wordpress/" style="color: black; text-decoration: none;">The Daily WordPress Reference</a>
                  <!-- // End Module: Standard Header Image \\ -->
								</td>
							</tr>
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
						</table>
            <!-- // End Template Header \\ -->
					</td>
				</tr>
				<tr>
					<td>
            <!-- // Begin Template Body \\ -->
            <!-- // Begin Module: Standard Content \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
              <tr>
                <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  <div><div style="text-align: left;">
	is_tag()</div>
</div>
                </td>
              </tr>
              <tr>
                <td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div>This <a href="http://codex.wordpress.org/Conditional_Tags" title="Conditional Tags" style="color: #cc0000;">Conditional Tag</a> checks if a Tag archive page is being displayed. This is a boolean function, meaning it returns either TRUE or FALSE.</div>
                </td>
              </tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  Usage
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;?php&nbsp;is_tag(&nbsp;$slug&nbsp;);&nbsp;?&gt;</pre>
</div>
								</td>
							</tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Parameters
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                  <div><dl style="margin: 0;">
	<dt>
		<strong>$slug</strong><br>
		&nbsp;&nbsp; (<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#Mixed" title="How to Pass Tag Parameters" style="color: #cc0000;">mixed</a>) (optional) The Tag slug or an Array of slugs.<br>
		&nbsp;&nbsp; Default: None</dt>
	
</dl>
</div>
								</td>
							</tr>
							
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Return values
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><dl style="margin: 0;">
	<dt>
		(<strong>boolean</strong>)<br>
		&nbsp;&nbsp; True on success, false on failure.</dt>
</dl>
</div>
								</td>
							</tr>

							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Examples
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
/***************************************************
When any Tag archive page is being displayed.
***************************************************/
is_tag();

/***************************************************
When the archive page for tag with the slug of &#39;mild&#39;
is being displayed.
***************************************************/
is_tag( &#39;mild&#39; );

/**************************************************
Returns true when the tag archive being
displayed has a slug of either &quot;sharp&quot;, &quot;mild&quot;,
or &quot;extreme&quot;.  Note: the array ability was
added at <a href="http://codex.wordpress.org/Version_2.5" title="Version 2.5" style="color: #cc0000;">Version 2.5</a>.
**************************************************/
is_tag( array( &#39;sharp&#39;, &#39;mild&#39;, &#39;extreme&#39; ) );
</pre>
</div>
								</td>
							</tr>

              	<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									More information
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><a href="http://codex.wordpress.org/Function_Reference/is_tag" style="color: #cc0000;">http://codex.wordpress.org/Function_Reference/is_tag</a></div><br>
								</td>
							</tr>
							<tr>
                <td>
                  <table width="600">
                    <tr>
                      <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                        Liked this function?
                      </td>
                    </tr>
                    <tr>
                      <td width="70%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2"><div>
	You might also like these books:<br>

<a href="http://www.amazon.com/gp/product/0470916222/ref=as_li_tf_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0470916222" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0470916222&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0470916222" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/1119995965/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1119995965" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=1119995965&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=1119995965" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/0980455294/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0980455294" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0980455294&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0980455294" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

</div>
</td>
                      <td width="30%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; text-align: right; line-height: 20px;" colspan="2">Share it:<br>
<a href="http://twitter.com/share?url=http%3A%2F%2Feepurl.com%2FqTjMH&text=The+Daily+WordPress+Reference%3A+is_tag%28%29&count=none" target="_blank"><img src="http://cdn-images.mailchimp.com/social_connect_tweet.png" border="0" width="55" height="20" style="display:inline;" alt="share on Twitter"></a>&nbsp;<a href="http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=4bb1688ccf&fblike=true&e=[UNIQID]&socialproxy=http%3A%2F%2Fus4.campaign-archive.com%2Fsocial-proxy%2Ffacebook-like%3Fu%3D427153c482114d70024e1dc1a%26id%3D4bb1688ccf%26url%3Dhttp%253A%252F%252Fus4.campaign-archive.com%252F%253Fu%253D427153c482114d70024e1dc1a%2526id%253D4bb1688ccf%26title%3DThe%2520Daily%2520WordPress%2520Reference%253A%2520is_tag%2528%2529" title="Like The Daily WordPress Reference: is_tag() on Facebook" rel="socialproxy" id="fblike-"><img src="http://cdn-images.mailchimp.com/fb/like.gif" border="0" alt="Like The Daily WordPress Reference: is_tag() on Facebook" height="20" width="48" style="display:inline;"/></a><br>
&nbsp;Or Donate to the project:<br>
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EQZ8YJVVF79AN" style="color: #cc0000;"><img alt="Donata via Paypal" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif"></a><br>
(<a href="http://www.dailydocumentation.com/blog/faq/why-donate-to-this-project/" style="color: #cc0000;">Why Donate?</a>)</td>
                    </tr>
                  </table>
                </td>
              </tr>
						</table>
            <!-- // End Module: Standard Content \\ -->
						<!-- // End Template Body \\ -->
					</td>
				</tr>
				<tr>
					<td valign="top" width="600">
            <!-- // Begin Template Footer \\ -->
            <!-- // Begin Module: Standard Footer \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td valign="top">
									<table cellspacing="0" border="0" width="600" cellpadding="0">
										<tr>
											<td class="unsubscribe" valign="top" style="padding: 10px 20px; color: #999; font-size: 14px; font-family: Georgia; line-height: 20px;">
                        <div><br>
 </div>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td valign="top" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td class="copyright" height="100" align="center" valign="top" style="padding: 0 20px; color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; line-height: 20px;" width="600" colspan="2">
                  <div>
									&nbsp;<a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=4bb1688ccf">unsubscribe from this list</a> | <a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]">update subscription preferences</a>&nbsp; 
                  </div>
								</td>
							</tr>
						</table>
            <!-- // End Module: Standard Footer \\ -->
						<!-- // End Template Footer \\ -->
					</td>
				</tr>
			</table>
			
		</td>
	
	</tr>
	
</table>

</body>
</html>
<!--
<a href="./" style="color: #cc0000; text-decoration: none;"></a>
-->
]]></content:encoded>
      <pubDate>Tue, 30 Oct 2012 12:00:00 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[The Daily WordPress Reference: disabled()]]></title>
      <link>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=9b8ad53179</link>
      <guid>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=9b8ad53179</guid>
      <description><![CDATA[Is this email not displaying correctly? View it in your browser: http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=9b8ad53179&e=[UNIQID]
   
The Daily WordPress Reference

The disabled() function

Description
   Compares two given values (for example, a saved option vs. one chosen in a form) and, if the values are the same, adds the disabled attribute to a form input field. 

Usage
    <?php disabled( $disabled, $current, $echo ); ?>

Parameters
   $disabled
       (mixed) (required) One of the values to compare.
   
           Default: None 
   
   $current
       (mixed) (optional) The other value to compare if not just true.
   
           Default: true 
   
   $echo
       (boolean) (optional) Whether to echo or just return the string. This function will always return the result regardless.
   
           Default: true 

Return Values
   (string) 
       HTML attribute (disabled='disabled') or empty string. 

Examples
   <input type="radio" name="attachments"  value="<?php echo $value; ?>" <?php disabled( $value, false ); ?> />

More informations
   http://codex.wordpress.org/Function_Reference/disabled
  
  
DailyWordpressReference is not affiliated with WordPress in any way.
  __________________________________________________________________
  Links:
    [1]Follow the Daily WordPress Reference on Twitter
   
   
    [2]unsubscribe from this list | [3]update subscription preferences
     Links:
       1. Twitter Account not yet Authorized


       2. http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=9b8ad53179
       3. http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]]]></description>
      <content:encoded><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>The Daily WordPress Reference: disabled()</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<!-- Facebook sharing information tags -->
	<meta property="og:title" content="The Daily WordPress Reference: disabled()">
		
<style type="text/css">
		a{
			color:#cc0000;
		}
		dl{
			margin:0;
		}
		h4{
			margin-bottom:0;
		}
		.example{
			border:1px dashed #059100;
			padding:3px;
		}
		.default_param_value{
			color:#777;
			padding-bottom:7px;
		}
		code{
			color:#3D5A6F;
			background:#F7F7F7;
		}
		pre{
			color:#3D5A6F;
			background:#F7F7F7;
			border-top:1px solid #dedede;
			border-bottom:1px solid #dedede;
			padding:3px 2px;
		}
		.list a{
			color:#cc0000;
			text-transform:uppercase;
			font-family:Verdana;
			font-size:11px;
			text-decoration:none;
		}
</style></head>
<body marginheight="0" topmargin="0" marginwidth="0" bgcolor="#c5c5c5" leftmargin="0">

<table cellspacing="0" border="0" style="background-image: url(http://www.dailydocumentation.com/wordpress/mailassets/bg.gif); background-color: #c5c5c5;" cellpadding="0" width="100%">
	
	<tr>
		
		<td valign="top">

			<table cellspacing="0" border="0" align="center" style="background: #fff; border-right: 1px solid #ccc; border-left: 1px solid #ccc;" cellpadding="0" width="600">
				<tr>
					<td valign="top">
            <!-- // Begin Template Preheader \\ -->	
						<table cellspacing="0" border="0" height="110" cellpadding="0" width="600">
							<tr>
                <!-- // Begin Module: Standard Preheader \\ -->
								<td class="header-text" height="50" valign="top" style="color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; padding: 0 20px;" width="540" colspan="2">
                  <div>
									<!--  -->
                  </div>
								</td>
                <!-- // End Module: Standard Preheader \\ -->
							</tr>
              <!-- // End Template Preheader \\ -->
							<tr>
                <!-- // Begin Template Header \\ -->
								<td class="main-title" height="13" valign="top" style="padding: 0 20px; font-size: 25px; font-family: Georgia;" width="600" colspan="2">
                  <!-- // Begin Module: Standard Header Image \\ -->
									<a href="http://www.dailydocumentation.com/wordpress/" style="color: black; text-decoration: none;">The Daily WordPress Reference</a>
                  <!-- // End Module: Standard Header Image \\ -->
								</td>
							</tr>
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
						</table>
            <!-- // End Template Header \\ -->
					</td>
				</tr>
				<tr>
					<td>
            <!-- // Begin Template Body \\ -->
            <!-- // Begin Module: Standard Content \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
              <tr>
                <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  <div><div style="text-align: left;">
	disabled()</div>
</div>
                </td>
              </tr>
              <tr>
                <td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div>Compares two given values (for example, a saved option vs. one chosen in a form) and, if the values are the same, adds the disabled attribute to a form input field.</div>
                </td>
              </tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  Usage
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;?php disabled( $disabled, $current, $echo );&nbsp;?&gt;
</pre>
</div>
								</td>
							</tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Parameters
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                  <div><dl style="margin: 0;">
	<dt>
		<strong>$disabled</strong><br>
		&nbsp;&nbsp; (<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#Mixed" title="How to Pass Tag Parameters" style="color: #cc0000;">mixed</a>) (required) One of the values to compare.<br>
		&nbsp;&nbsp; Default: None</dt>
	<dd>
		&nbsp;</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>$current</strong><br>
		&nbsp;&nbsp; (<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#Mixed" title="How to Pass Tag Parameters" style="color: #cc0000;">mixed</a>) (optional) The other<br>
		&nbsp;&nbsp; value to compare if not just true.<br>
		&nbsp;&nbsp; Default: true</dt>
	<dd>
		&nbsp;</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>$echo</strong><br>
		&nbsp;&nbsp; (<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#Boolean" title="How to Pass Tag Parameters" style="color: #cc0000;">boolean</a>) (optional) Whether to echo<br>
		&nbsp;&nbsp; or just return the string. This function<br>
		&nbsp;&nbsp; will always return the result regardless.<br>
		&nbsp;&nbsp; Default: true</dt>
	
</dl>
</div>
								</td>
							</tr>
							
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Return values
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><dl style="margin: 0;">
	<dt>
		(<strong>string</strong>)<br>
		&nbsp;&nbsp; The date, translated if locale specifies it.</dt>
</dl>
</div>
								</td>
							</tr>

							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Examples
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;input type=&quot;radio&quot; name=&quot;attachments&quot;  
  value=&quot;&lt;?php echo $value;&nbsp;?&gt;&quot; 
  &lt;?php disabled( $value, false );&nbsp;?&gt; /&gt;
</pre>
</div>
								</td>
							</tr>

              	<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									More information
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><a href="http://codex.wordpress.org/Function_Reference/disabled" style="color: #cc0000;">http://codex.wordpress.org/Function_Reference/disabled</a></div><br>
								</td>
							</tr>
							<tr>
                <td>
                  <table width="600">
                    <tr>
                      <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                        Liked this function?
                      </td>
                    </tr>
                    <tr>
                      <td width="70%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2"><div>
	You might also like these books:<br>

<a href="http://www.amazon.com/gp/product/0470916222/ref=as_li_tf_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0470916222" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0470916222&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0470916222" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/1119995965/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1119995965" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=1119995965&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=1119995965" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/0980455294/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0980455294" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0980455294&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0980455294" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

</div>
</td>
                      <td width="30%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; text-align: right; line-height: 20px;" colspan="2">Share it:<br>
<a href="http://twitter.com/share?url=http%3A%2F%2Feepurl.com%2FqS51v&text=The+Daily+WordPress+Reference%3A+disabled%28%29&count=none" target="_blank"><img src="http://cdn-images.mailchimp.com/social_connect_tweet.png" border="0" width="55" height="20" style="display:inline;" alt="share on Twitter"></a>&nbsp;<a href="http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=9b8ad53179&fblike=true&e=[UNIQID]&socialproxy=http%3A%2F%2Fus4.campaign-archive.com%2Fsocial-proxy%2Ffacebook-like%3Fu%3D427153c482114d70024e1dc1a%26id%3D9b8ad53179%26url%3Dhttp%253A%252F%252Fus4.campaign-archive.com%252F%253Fu%253D427153c482114d70024e1dc1a%2526id%253D9b8ad53179%26title%3DThe%2520Daily%2520WordPress%2520Reference%253A%2520disabled%2528%2529" title="Like The Daily WordPress Reference: disabled() on Facebook" rel="socialproxy" id="fblike-"><img src="http://cdn-images.mailchimp.com/fb/like.gif" border="0" alt="Like The Daily WordPress Reference: disabled() on Facebook" height="20" width="48" style="display:inline;"/></a><br>
&nbsp;Or Donate to the project:<br>
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EQZ8YJVVF79AN" style="color: #cc0000;"><img alt="Donata via Paypal" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif"></a><br>
(<a href="http://www.dailydocumentation.com/blog/faq/why-donate-to-this-project/" style="color: #cc0000;">Why Donate?</a>)</td>
                    </tr>
                  </table>
                </td>
              </tr>
						</table>
            <!-- // End Module: Standard Content \\ -->
						<!-- // End Template Body \\ -->
					</td>
				</tr>
				<tr>
					<td valign="top" width="600">
            <!-- // Begin Template Footer \\ -->
            <!-- // Begin Module: Standard Footer \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td valign="top">
									<table cellspacing="0" border="0" width="600" cellpadding="0">
										<tr>
											<td class="unsubscribe" valign="top" style="padding: 10px 20px; color: #999; font-size: 14px; font-family: Georgia; line-height: 20px;">
                        <div><br>
 </div>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td valign="top" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td class="copyright" height="100" align="center" valign="top" style="padding: 0 20px; color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; line-height: 20px;" width="600" colspan="2">
                  <div>
									&nbsp;<a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=9b8ad53179">unsubscribe from this list</a> | <a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]">update subscription preferences</a>&nbsp; 
                  </div>
								</td>
							</tr>
						</table>
            <!-- // End Module: Standard Footer \\ -->
						<!-- // End Template Footer \\ -->
					</td>
				</tr>
			</table>
			
		</td>
	
	</tr>
	
</table>

</body>
</html>
<!--
<a href="./" style="color: #cc0000; text-decoration: none;"></a>
-->
]]></content:encoded>
      <pubDate>Mon, 29 Oct 2012 12:00:00 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[The Daily WordPress Reference: date_i18n()]]></title>
      <link>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=5f00db6799</link>
      <guid>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=5f00db6799</guid>
      <description><![CDATA[Is this email not displaying correctly? View it in your browser: http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=5f00db6799&e=[UNIQID]
   
The Daily WordPress Reference

The date_i18n() function

Description
   Retrieve the date in localized format, based on timestamp.
   
   If the locale specifies the locale month and weekday, then the locale will take over the format for the date. If it isn't, then the date format string will be used instead.
   
   i18n is an abbreviation for Internationalization. (There are 18 letters between the first "i" and last "n".)

Usage
   <?php echo date_i18n( $dateformatstring, $unixtimestamp, $gmt ) ?> 

Parameters
   $dateformatstring
       (string) (required) Format to display the date.
   
           Default: None 
   
   $unixtimestamp
       (integer) (optional) Unix timestamp.
   
           Default: false 
   
   $gmt
       (boolean) (optional) Whether to convert to GMT for time.
   
           Default: false 

Return Values
   (string) 
       The date, translated if locale specifies it. 

Examples
   Depending on your blog settings you will see the date displayed in your local format, for example: 15. november 1976.
   
   <?php echo date_i18n(get_option('date_format') ,strtotime("11/15-1976"));?>

More informations
   http://codex.wordpress.org/Function_Reference/date_i18n
  
   
   Name 
       WordPress Theme object. 
   ThemeURI 
       The path to the theme's directory 
   Description 
       The description of the theme 
   Author 
       The theme's author 
   AuthorURI 
       The website of the theme author 
   Version 
       The version of the theme 
   Template 
       The folder name of the current theme 
   Status 
       If the theme is published 
   Tags 
       Tags used to describe the theme 
   TextDomain 
       The text domain used in the theme for translation purposes 
   DomainPath 
       Path to the theme translation files 

Examples
   Display the Current Theme's Version
   
   <?php
   $my_theme = wp_get_theme();
   echo $my_theme->Name . " is version " . $my_theme->Version;
   ?>

More informations
   http://codex.wordpress.org/Function_Reference/wp_get_theme
  
  
DailyWordpressReference is not affiliated with WordPress in any way.
  __________________________________________________________________
  Links:
    [1]Follow the Daily WordPress Reference on Twitter
   
   
    [2]unsubscribe from this list | [3]update subscription preferences
     Links:
       1. Twitter Account not yet Authorized


       2. http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=5f00db6799
       3. http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]]]></description>
      <content:encoded><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>The Daily WordPress Reference: date_i18n()</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<!-- Facebook sharing information tags -->
	<meta property="og:title" content="The Daily WordPress Reference: date_i18n()">
		
<style type="text/css">
		a{
			color:#cc0000;
		}
		dl{
			margin:0;
		}
		h4{
			margin-bottom:0;
		}
		.example{
			border:1px dashed #059100;
			padding:3px;
		}
		.default_param_value{
			color:#777;
			padding-bottom:7px;
		}
		code{
			color:#3D5A6F;
			background:#F7F7F7;
		}
		pre{
			color:#3D5A6F;
			background:#F7F7F7;
			border-top:1px solid #dedede;
			border-bottom:1px solid #dedede;
			padding:3px 2px;
		}
		.list a{
			color:#cc0000;
			text-transform:uppercase;
			font-family:Verdana;
			font-size:11px;
			text-decoration:none;
		}
</style></head>
<body marginheight="0" topmargin="0" marginwidth="0" bgcolor="#c5c5c5" leftmargin="0">

<table cellspacing="0" border="0" style="background-image: url(http://www.dailydocumentation.com/wordpress/mailassets/bg.gif); background-color: #c5c5c5;" cellpadding="0" width="100%">
	
	<tr>
		
		<td valign="top">

			<table cellspacing="0" border="0" align="center" style="background: #fff; border-right: 1px solid #ccc; border-left: 1px solid #ccc;" cellpadding="0" width="600">
				<tr>
					<td valign="top">
            <!-- // Begin Template Preheader \\ -->	
						<table cellspacing="0" border="0" height="110" cellpadding="0" width="600">
							<tr>
                <!-- // Begin Module: Standard Preheader \\ -->
								<td class="header-text" height="50" valign="top" style="color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; padding: 0 20px;" width="540" colspan="2">
                  <div>
									<!--  -->
                  </div>
								</td>
                <!-- // End Module: Standard Preheader \\ -->
							</tr>
              <!-- // End Template Preheader \\ -->
							<tr>
                <!-- // Begin Template Header \\ -->
								<td class="main-title" height="13" valign="top" style="padding: 0 20px; font-size: 25px; font-family: Georgia;" width="600" colspan="2">
                  <!-- // Begin Module: Standard Header Image \\ -->
									<a href="http://www.dailydocumentation.com/wordpress/" style="color: black; text-decoration: none;">The Daily WordPress Reference</a>
                  <!-- // End Module: Standard Header Image \\ -->
								</td>
							</tr>
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
						</table>
            <!-- // End Template Header \\ -->
					</td>
				</tr>
				<tr>
					<td>
            <!-- // Begin Template Body \\ -->
            <!-- // Begin Module: Standard Content \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
              <tr>
                <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  <div><div style="text-align: left;">
	date_i18n()</div>
</div>
                </td>
              </tr>
              <tr>
                <td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><p>
	Retrieve the date in localized format, based on timestamp.</p>
<p>
	If the locale specifies the locale month and weekday, then the locale will take over the format for the date. If it isn&#39;t, then the date format string will be used instead.</p>
<p>
	<a href="http://en.wikipedia.org/wiki/i18n" title="wikipedia:i18n" style="color: #cc0000;">i18n</a> is an abbreviation for Internationalization. (There are 18 letters between the first &quot;i&quot; and last &quot;n&quot;.)</p>
</div>
                </td>
              </tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  Usage
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;?php
echo&nbsp;date_i18n(&nbsp;$dateformatstring,&nbsp;$unixtimestamp,&nbsp;$gmt&nbsp;)&nbsp;
?&gt;</pre>
</div>
								</td>
							</tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Parameters
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                  <div><dl style="margin: 0;">
	<dt>
		<strong>$dateformatstring</strong><br>
		&nbsp;&nbsp; (<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#String" title="How to Pass Tag Parameters" style="color: #cc0000;">string</a>) (required) Format to display the date.<br>
		&nbsp;&nbsp; Default: None</dt>
	<dd>
		&nbsp;</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>$unixtimestamp</strong><br>
		&nbsp;&nbsp; (<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#Integer" title="How to Pass Tag Parameters" style="color: #cc0000;">integer</a>) (optional) Unix timestamp.<br>
		&nbsp;&nbsp; Default: false</dt>
	<dd>
		&nbsp;</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>$gmt</strong><br>
		&nbsp;&nbsp; (<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#Boolean" title="How to Pass Tag Parameters" style="color: #cc0000;">boolean</a>) (optional) Whether to convert to GMT for time.<br>
		&nbsp;&nbsp; Default: false</dt>
	
</dl>
</div>
								</td>
							</tr>
							
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Return values
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><dl style="margin: 0;">
	<dt>
		(<strong>string</strong>)<br>
		&nbsp;&nbsp; The date, translated if locale specifies it.</dt>
</dl>
</div>
								</td>
							</tr>

							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Examples
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><h4 style="margin-bottom: 0;">
	Depending on your blog settings you will see the date displayed in your local format, for example: 15. november 1976.</h4>
<pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;?php 
echo date_i18n(get_option(&#39;date_format&#39;),strtotime(&quot;11/15-1976&quot;));
?&gt;
</pre>
</div>
								</td>
							</tr>

              	<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									More information
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><a href="http://codex.wordpress.org/Function_Reference/date_i18n" style="color: #cc0000;">http://codex.wordpress.org/Function_Reference/date_i18n</a></div><br>
								</td>
							</tr>
							<tr>
                <td>
                  <table width="600">
                    <tr>
                      <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                        Liked this function?
                      </td>
                    </tr>
                    <tr>
                      <td width="70%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2"><div>
	You might also like these books:<br>

<a href="http://www.amazon.com/gp/product/0470916222/ref=as_li_tf_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0470916222" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0470916222&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0470916222" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/1119995965/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1119995965" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=1119995965&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=1119995965" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/0980455294/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0980455294" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0980455294&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0980455294" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

</div>
</td>
                      <td width="30%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; text-align: right; line-height: 20px;" colspan="2">Share it:<br>
<a href="http://twitter.com/share?url=http%3A%2F%2Feepurl.com%2FqS1SH&text=The+Daily+WordPress+Reference%3A+date_i18n%28%29&count=none" target="_blank"><img src="http://cdn-images.mailchimp.com/social_connect_tweet.png" border="0" width="55" height="20" style="display:inline;" alt="share on Twitter"></a>&nbsp;<a href="http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=5f00db6799&fblike=true&e=[UNIQID]&socialproxy=http%3A%2F%2Fus4.campaign-archive.com%2Fsocial-proxy%2Ffacebook-like%3Fu%3D427153c482114d70024e1dc1a%26id%3D5f00db6799%26url%3Dhttp%253A%252F%252Fus4.campaign-archive.com%252F%253Fu%253D427153c482114d70024e1dc1a%2526id%253D5f00db6799%26title%3DThe%2520Daily%2520WordPress%2520Reference%253A%2520date_i18n%2528%2529" title="Like The Daily WordPress Reference: date_i18n() on Facebook" rel="socialproxy" id="fblike-"><img src="http://cdn-images.mailchimp.com/fb/like.gif" border="0" alt="Like The Daily WordPress Reference: date_i18n() on Facebook" height="20" width="48" style="display:inline;"/></a><br>
&nbsp;Or Donate to the project:<br>
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EQZ8YJVVF79AN" style="color: #cc0000;"><img alt="Donata via Paypal" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif"></a><br>
(<a href="http://www.dailydocumentation.com/blog/faq/why-donate-to-this-project/" style="color: #cc0000;">Why Donate?</a>)</td>
                    </tr>
                  </table>
                </td>
              </tr>
						</table>
            <!-- // End Module: Standard Content \\ -->
						<!-- // End Template Body \\ -->
					</td>
				</tr>
				<tr>
					<td valign="top" width="600">
            <!-- // Begin Template Footer \\ -->
            <!-- // Begin Module: Standard Footer \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td valign="top">
									<table cellspacing="0" border="0" width="600" cellpadding="0">
										<tr>
											<td class="unsubscribe" valign="top" style="padding: 10px 20px; color: #999; font-size: 14px; font-family: Georgia; line-height: 20px;">
                        <div><br>
 </div>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td valign="top" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td class="copyright" height="100" align="center" valign="top" style="padding: 0 20px; color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; line-height: 20px;" width="600" colspan="2">
                  <div>
									&nbsp;<a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=5f00db6799">unsubscribe from this list</a> | <a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]">update subscription preferences</a>&nbsp; 
                  </div>
								</td>
							</tr>
						</table>
            <!-- // End Module: Standard Footer \\ -->
						<!-- // End Template Footer \\ -->
					</td>
				</tr>
			</table>
			
		</td>
	
	</tr>
	
</table>

</body>
</html>
<!--
<a href="./" style="color: #cc0000; text-decoration: none;"></a>
-->
]]></content:encoded>
      <pubDate>Sat, 27 Oct 2012 12:00:00 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[The Daily WordPress Reference: wp_get_theme()]]></title>
      <link>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=1c008eec28</link>
      <guid>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=1c008eec28</guid>
      <description><![CDATA[Is this email not displaying correctly? View it in your browser: http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=1c008eec28&e=[UNIQID]
   
The Daily WordPress Reference

The wp_get_theme() function

Description
   Gets a WP_Theme object for a theme. 

Usage
   <?php $theme = wp_get_theme( $stylesheet, $theme_root ); ?> 

Parameters
   $stylesheet
       (string) (Optional) Directory name for the theme. Defaults to current theme.
   
           Default: Null 
   
   $theme_root
       (string) (Optional) Absolute path of the theme root to look in. If not specified, the value returned by get_raw_theme_root() will be used.
   
           Default: Null 

Return Values
   This function returns an instance of the WP_Theme object with the following items
   
   Name 
       WordPress Theme object. 
   ThemeURI 
       The path to the theme's directory 
   Description 
       The description of the theme 
   Author 
       The theme's author 
   AuthorURI 
       The website of the theme author 
   Version 
       The version of the theme 
   Template 
       The folder name of the current theme 
   Status 
       If the theme is published 
   Tags 
       Tags used to describe the theme 
   TextDomain 
       The text domain used in the theme for translation purposes 
   DomainPath 
       Path to the theme translation files 

Examples
   Display the Current Theme's Version
   
   <?php
   $my_theme = wp_get_theme();
   echo $my_theme->Name . " is version " . $my_theme->Version;
   ?>

More informations
   http://codex.wordpress.org/Function_Reference/wp_get_theme
  
  
DailyWordpressReference is not affiliated with WordPress in any way.
  __________________________________________________________________
  Links:
    [1]Follow the Daily WordPress Reference on Twitter
   
   
    [2]unsubscribe from this list | [3]update subscription preferences
     Links:
       1. Twitter Account not yet Authorized


       2. http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=1c008eec28
       3. http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]]]></description>
      <content:encoded><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>The Daily WordPress Reference: wp_get_theme()</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<!-- Facebook sharing information tags -->
	<meta property="og:title" content="The Daily WordPress Reference: wp_get_theme()">
		
<style type="text/css">
		a{
			color:#cc0000;
		}
		dl{
			margin:0;
		}
		h4{
			margin-bottom:0;
		}
		.example{
			border:1px dashed #059100;
			padding:3px;
		}
		.default_param_value{
			color:#777;
			padding-bottom:7px;
		}
		code{
			color:#3D5A6F;
			background:#F7F7F7;
		}
		pre{
			color:#3D5A6F;
			background:#F7F7F7;
			border-top:1px solid #dedede;
			border-bottom:1px solid #dedede;
			padding:3px 2px;
		}
		.list a{
			color:#cc0000;
			text-transform:uppercase;
			font-family:Verdana;
			font-size:11px;
			text-decoration:none;
		}
</style></head>
<body marginheight="0" topmargin="0" marginwidth="0" bgcolor="#c5c5c5" leftmargin="0">

<table cellspacing="0" border="0" style="background-image: url(http://www.dailydocumentation.com/wordpress/mailassets/bg.gif); background-color: #c5c5c5;" cellpadding="0" width="100%">
	
	<tr>
		
		<td valign="top">

			<table cellspacing="0" border="0" align="center" style="background: #fff; border-right: 1px solid #ccc; border-left: 1px solid #ccc;" cellpadding="0" width="600">
				<tr>
					<td valign="top">
            <!-- // Begin Template Preheader \\ -->	
						<table cellspacing="0" border="0" height="110" cellpadding="0" width="600">
							<tr>
                <!-- // Begin Module: Standard Preheader \\ -->
								<td class="header-text" height="50" valign="top" style="color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; padding: 0 20px;" width="540" colspan="2">
                  <div>
									<!--  -->
                  </div>
								</td>
                <!-- // End Module: Standard Preheader \\ -->
							</tr>
              <!-- // End Template Preheader \\ -->
							<tr>
                <!-- // Begin Template Header \\ -->
								<td class="main-title" height="13" valign="top" style="padding: 0 20px; font-size: 25px; font-family: Georgia;" width="600" colspan="2">
                  <!-- // Begin Module: Standard Header Image \\ -->
									<a href="http://www.dailydocumentation.com/wordpress/" style="color: black; text-decoration: none;">The Daily WordPress Reference</a>
                  <!-- // End Module: Standard Header Image \\ -->
								</td>
							</tr>
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
						</table>
            <!-- // End Template Header \\ -->
					</td>
				</tr>
				<tr>
					<td>
            <!-- // Begin Template Body \\ -->
            <!-- // Begin Module: Standard Content \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
              <tr>
                <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  <div><div style="text-align: left;">
	wp_get_theme()</div>
</div>
                </td>
              </tr>
              <tr>
                <td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div>Gets a WP_Theme object for a theme.</div>
                </td>
              </tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  Usage
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">&lt;?php&nbsp;$theme&nbsp;=&nbsp;wp_get_theme(&nbsp;$stylesheet,&nbsp;$theme_root&nbsp;);&nbsp;?&gt;</pre></div>
								</td>
							</tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Parameters
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                  <div><dl style="margin: 0;">
	<dt>
		<strong>$stylesheet</strong><br>
		&nbsp;&nbsp; (<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#String" title="How to Pass Tag Parameters" style="color: #cc0000;">string</a>) (Optional) Directory name&nbsp;for the theme. Defaults to current theme.<br>
		&nbsp;&nbsp; Default: Null</dt>
	<dd>
		&nbsp;</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>$theme_root</strong><br>
		&nbsp;&nbsp; (<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#String" title="How to Pass Tag Parameters" style="color: #cc0000;">string</a>) (Optional) Absolute path of the theme&nbsp;root to look in. If not specified, the value&nbsp;returned by get_raw_theme_root() will be used.<br>
		&nbsp;&nbsp; Default: Null</dt>
</dl>
</div>
								</td>
							</tr>
							
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Return values
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><p>
	This function returns an instance of the WP_Theme object with the following items</p>
<dl style="margin: 0;">
	<dt>
		<strong>Name </strong><br>
		&nbsp;&nbsp; WordPress Theme object.</dt>
	<dt>
		<strong>ThemeURI </strong><br>
		&nbsp;&nbsp; The path to the theme&#39;s directory</dt>
	<dt>
		<strong>Description</strong><br>
		&nbsp;&nbsp; The description of the theme</dt>
	<dt>
		<strong>Author</strong><br>
		&nbsp;&nbsp; The theme&#39;s author</dt>
	<dt>
		<strong>AuthorURI</strong><br>
		&nbsp;&nbsp; The website of the theme author</dt>
	<dt>
		<strong>Version</strong><br>
		&nbsp;&nbsp; The version of the theme</dt>
	<dt>
		<strong>Template</strong><br>
		&nbsp;&nbsp; The folder name of the current theme</dt>
	<dt>
		<strong>Status</strong><br>
		&nbsp;&nbsp; If the theme is published</dt>
	<dt>
		<strong>Tags</strong><br>
		&nbsp;&nbsp; Tags used to describe the theme</dt>
	<dt>
		<strong>TextDomain</strong><br>
		&nbsp;&nbsp; The text domain used in the theme for translation purposes</dt>
	<dt>
		<strong>DomainPath</strong><br>
		&nbsp;&nbsp; Path to the theme translation files</dt>
</dl>
</div>
								</td>
							</tr>

							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Examples
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><h4 style="margin-bottom: 0;">
	Display the Current Theme&#39;s Version</h4>
<pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;?php
$my_theme = wp_get_theme();
echo $my_theme-&gt;Name . &quot; is version &quot; .
     $my_theme-&gt;Version;
?&gt;</pre>
</div>
								</td>
							</tr>

              	<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									More information
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><a href="http://codex.wordpress.org/Function_Reference/wp_get_theme" style="color: #cc0000;">http://codex.wordpress.org/Function_Reference/wp_get_theme</a></div><br>
								</td>
							</tr>
							<tr>
                <td>
                  <table width="600">
                    <tr>
                      <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                        Liked this function?
                      </td>
                    </tr>
                    <tr>
                      <td width="70%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2"><div>
	You might also like these books:<br>

<a href="http://www.amazon.com/gp/product/0470916222/ref=as_li_tf_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0470916222" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0470916222&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0470916222" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/1119995965/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1119995965" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=1119995965&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=1119995965" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/0980455294/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0980455294" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0980455294&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0980455294" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

</div>
</td>
                      <td width="30%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; text-align: right; line-height: 20px;" colspan="2">Share it:<br>
<a href="http://twitter.com/share?url=http%3A%2F%2Feepurl.com%2FqS0q5&text=The+Daily+WordPress+Reference%3A+wp_get_theme%28%29&count=none" target="_blank"><img src="http://cdn-images.mailchimp.com/social_connect_tweet.png" border="0" width="55" height="20" style="display:inline;" alt="share on Twitter"></a>&nbsp;<a href="http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=1c008eec28&fblike=true&e=[UNIQID]&socialproxy=http%3A%2F%2Fus4.campaign-archive.com%2Fsocial-proxy%2Ffacebook-like%3Fu%3D427153c482114d70024e1dc1a%26id%3D1c008eec28%26url%3Dhttp%253A%252F%252Fus4.campaign-archive.com%252F%253Fu%253D427153c482114d70024e1dc1a%2526id%253D1c008eec28%26title%3DThe%2520Daily%2520WordPress%2520Reference%253A%2520wp_get_theme%2528%2529" title="Like The Daily WordPress Reference: wp_get_theme() on Facebook" rel="socialproxy" id="fblike-"><img src="http://cdn-images.mailchimp.com/fb/like.gif" border="0" alt="Like The Daily WordPress Reference: wp_get_theme() on Facebook" height="20" width="48" style="display:inline;"/></a><br>
&nbsp;Or Donate to the project:<br>
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EQZ8YJVVF79AN" style="color: #cc0000;"><img alt="Donata via Paypal" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif"></a><br>
(<a href="http://www.dailydocumentation.com/blog/faq/why-donate-to-this-project/" style="color: #cc0000;">Why Donate?</a>)</td>
                    </tr>
                  </table>
                </td>
              </tr>
						</table>
            <!-- // End Module: Standard Content \\ -->
						<!-- // End Template Body \\ -->
					</td>
				</tr>
				<tr>
					<td valign="top" width="600">
            <!-- // Begin Template Footer \\ -->
            <!-- // Begin Module: Standard Footer \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td valign="top">
									<table cellspacing="0" border="0" width="600" cellpadding="0">
										<tr>
											<td class="unsubscribe" valign="top" style="padding: 10px 20px; color: #999; font-size: 14px; font-family: Georgia; line-height: 20px;">
                        <div><br>
 </div>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td valign="top" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td class="copyright" height="100" align="center" valign="top" style="padding: 0 20px; color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; line-height: 20px;" width="600" colspan="2">
                  <div>
									&nbsp;<a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=1c008eec28">unsubscribe from this list</a> | <a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]">update subscription preferences</a>&nbsp; 
                  </div>
								</td>
							</tr>
						</table>
            <!-- // End Module: Standard Footer \\ -->
						<!-- // End Template Footer \\ -->
					</td>
				</tr>
			</table>
			
		</td>
	
	</tr>
	
</table>

</body>
</html>
<!--
<a href="./" style="color: #cc0000; text-decoration: none;"></a>
-->
]]></content:encoded>
      <pubDate>Fri, 26 Oct 2012 12:00:00 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[The Daily WordPress Reference: get_comments()]]></title>
      <link>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=d1811e5b8e</link>
      <guid>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=d1811e5b8e</guid>
      <description><![CDATA[Is this email not displaying correctly? View it in your browser: http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=d1811e5b8e&e=[UNIQID]
   
The Daily WordPress Reference

The get_comments() function

Description
   Retrieve a list of comments. 

Usage
   <?php get_comments( $args ); ?>
   Default Usage
   
   <?php $defaults = array(
   	'author_email' => '',
   	'ID' => '',
   	'karma' => '',
   	'number' => '',
   	'offset' => '',
   	'orderby' => '',
   	'order' => 'DESC',
   	'parent' => '',
   	'post_id' => '',
   	'post_author' => '',
   	'post_name' => '',
   	'post_parent' => '',
   	'post_status' => '',
   	'post_type' => '',
   	'status' => '',
   	'type' => '',
   	'user_id' => '',
   	'search' => '',
   	'count' => false
   ); ?>

Parameters
   $status
       (string) (optional) Only return comments with this status.
   
           'hold' - unapproved comments
           'approve' - approved comments
           'spam' - spam comments
           'trash' - trash comments
   
           Default: None 
   
   $orderby
       (string) (optional) Set the field used to sort comments.
   
           Default: comment_date_gmt 
   
   $order
       (string) (optional) How to sort $orderby. Valid values:
   
           'ASC' - Ascending (lowest to highest).
           'DESC' - Descending (highest to lowest).
   
           Default: DESC 
   
   $number
       (integer) (optional) Number of comments to return. Leave blank to return all comments.
   
           Default: unlimited 
   
   $offset
       (integer) (optional) Offset from latest comment. You must include $number along with this.
   
           Default: 0 
   
   $post_id
       (integer) (optional) Only return comments for a particular post or page.
   
           Default: None 
   
   $user_id
       (integer) (optional) Only return comments for a particular user.
   
           Default: None 
   
   $count
       (integer) (optional) Only return the total count of comments.
   
           Default: None 

Return Values
   (Array) 
       Comment fields

Examples
   Show comments of a user:
   
   <?php
   $args = array(
   	'user_id' => 1, // use user_id
   
   );
   $comments = get_comments($args);
   foreach($comments as $comment) :
   	echo($comment->comment_author . '<br />' . $comment->comment_content);
   endforeach;
   
   ?>

More informations
   http://codex.wordpress.org/Function_Reference/get_comments
  
  
DailyWordpressReference is not affiliated with WordPress in any way.
  __________________________________________________________________
  Links:
    [1]Follow the Daily WordPress Reference on Twitter
   
   
    [2]unsubscribe from this list | [3]update subscription preferences
     Links:
       1. Twitter Account not yet Authorized


       2. http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=d1811e5b8e
       3. http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]]]></description>
      <content:encoded><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>The Daily WordPress Reference: get_comments()</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<!-- Facebook sharing information tags -->
	<meta property="og:title" content="The Daily WordPress Reference: get_comments()">
		
<style type="text/css">
		a{
			color:#cc0000;
		}
		dl{
			margin:0;
		}
		h4{
			margin-bottom:0;
		}
		.example{
			border:1px dashed #059100;
			padding:3px;
		}
		.default_param_value{
			color:#777;
			padding-bottom:7px;
		}
		code{
			color:#3D5A6F;
			background:#F7F7F7;
		}
		pre{
			color:#3D5A6F;
			background:#F7F7F7;
			border-top:1px solid #dedede;
			border-bottom:1px solid #dedede;
			padding:3px 2px;
		}
		.list a{
			color:#cc0000;
			text-transform:uppercase;
			font-family:Verdana;
			font-size:11px;
			text-decoration:none;
		}
</style></head>
<body marginheight="0" topmargin="0" marginwidth="0" bgcolor="#c5c5c5" leftmargin="0">

<table cellspacing="0" border="0" style="background-image: url(http://www.dailydocumentation.com/wordpress/mailassets/bg.gif); background-color: #c5c5c5;" cellpadding="0" width="100%">
	
	<tr>
		
		<td valign="top">

			<table cellspacing="0" border="0" align="center" style="background: #fff; border-right: 1px solid #ccc; border-left: 1px solid #ccc;" cellpadding="0" width="600">
				<tr>
					<td valign="top">
            <!-- // Begin Template Preheader \\ -->	
						<table cellspacing="0" border="0" height="110" cellpadding="0" width="600">
							<tr>
                <!-- // Begin Module: Standard Preheader \\ -->
								<td class="header-text" height="50" valign="top" style="color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; padding: 0 20px;" width="540" colspan="2">
                  <div>
									<!--  -->
                  </div>
								</td>
                <!-- // End Module: Standard Preheader \\ -->
							</tr>
              <!-- // End Template Preheader \\ -->
							<tr>
                <!-- // Begin Template Header \\ -->
								<td class="main-title" height="13" valign="top" style="padding: 0 20px; font-size: 25px; font-family: Georgia;" width="600" colspan="2">
                  <!-- // Begin Module: Standard Header Image \\ -->
									<a href="http://www.dailydocumentation.com/wordpress/" style="color: black; text-decoration: none;">The Daily WordPress Reference</a>
                  <!-- // End Module: Standard Header Image \\ -->
								</td>
							</tr>
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
						</table>
            <!-- // End Template Header \\ -->
					</td>
				</tr>
				<tr>
					<td>
            <!-- // Begin Template Body \\ -->
            <!-- // Begin Module: Standard Content \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
              <tr>
                <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  <div><div style="text-align: left;">
	get_comments()</div>
</div>
                </td>
              </tr>
              <tr>
                <td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div>Retrieve a list of comments.</div>
                </td>
              </tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  Usage
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;?php&nbsp;get_comments(&nbsp;$args&nbsp;);&nbsp;?&gt;</pre>
Default Usage
<pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;?php $defaults = array(
	&#39;author_email&#39; =&gt; &#39;&#39;,
	&#39;ID&#39; =&gt; &#39;&#39;,
	&#39;karma&#39; =&gt; &#39;&#39;,
	&#39;number&#39; =&gt; &#39;&#39;,
	&#39;offset&#39; =&gt; &#39;&#39;,
	&#39;orderby&#39; =&gt; &#39;&#39;,
	&#39;order&#39; =&gt; &#39;DESC&#39;,
	&#39;parent&#39; =&gt; &#39;&#39;,
	&#39;post_id&#39; =&gt; &#39;&#39;,
	&#39;post_author&#39; =&gt; &#39;&#39;,
	&#39;post_name&#39; =&gt; &#39;&#39;,
	&#39;post_parent&#39; =&gt; &#39;&#39;,
	&#39;post_status&#39; =&gt; &#39;&#39;,
	&#39;post_type&#39; =&gt; &#39;&#39;,
	&#39;status&#39; =&gt; &#39;&#39;,
	&#39;type&#39; =&gt; &#39;&#39;,
	&#39;user_id&#39; =&gt; &#39;&#39;,
	&#39;search&#39; =&gt; &#39;&#39;,
	&#39;count&#39; =&gt; false
);&nbsp;?&gt;
</pre>
</div>
								</td>
							</tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Parameters
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                  <div><dl style="margin: 0;">
	<dt>
		<strong>$status</strong><br>
		&nbsp;&nbsp; (<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#String" title="How to Pass Tag Parameters" style="color: #cc0000;">string</a>) (optional) Only return comments with this status.</dt>
	<dd>
		<ul>
			<li>
				&#39;hold&#39; - unapproved comments</li>
			<li>
				&#39;approve&#39; - approved comments</li>
			<li>
				&#39;spam&#39; - spam comments</li>
			<li>
				&#39;trash&#39; - trash comments</li>
		</ul>
		<dl style="margin: 0;">
			<dd>
				Default: None</dd>
		</dl>
	</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>$orderby</strong><br>
		&nbsp;&nbsp; (<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#String" title="How to Pass Tag Parameters" style="color: #cc0000;">string</a>) (optional) Set the field<br>
		&nbsp;&nbsp; used to sort comments.<br>
		&nbsp;&nbsp; Default: comment_date_gmt</dt>
	<dd>
		&nbsp;</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>$order</strong><br>
		&nbsp;&nbsp; (<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#String" title="How to Pass Tag Parameters" style="color: #cc0000;">string</a>) (optional) How to sort $orderby. Valid values:</dt>
	<dd>
		<ul>
			<li>
				&#39;ASC&#39; - Ascending (lowest to highest).</li>
			<li>
				&#39;DESC&#39; - Descending (highest to lowest).</li>
		</ul>
		<dl style="margin: 0;">
			<dd>
				Default: DESC</dd>
		</dl>
	</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>$number</strong><br>
		&nbsp;&nbsp; (<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#Integer" title="How to Pass Tag Parameters" style="color: #cc0000;">integer</a>) (optional) Number of comments to<br>
		&nbsp;&nbsp; return. Leave blank to return all comments.<br>
		&nbsp;&nbsp; Default: unlimited</dt>
	<dd>
		&nbsp;</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>$offset</strong><br>
		&nbsp;&nbsp; (<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#Integer" title="How to Pass Tag Parameters" style="color: #cc0000;">integer</a>) (optional) Offset from latest comment.<br>
		&nbsp;&nbsp; You must include $number along with this.<br>
		&nbsp;&nbsp; Default: 0</dt>
	<dd>
		&nbsp;</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>$post_id</strong><br>
		&nbsp;&nbsp; (<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#Integer" title="How to Pass Tag Parameters" style="color: #cc0000;">integer</a>) (optional) Only return comments<br>
		&nbsp;&nbsp; for a particular post or page.<br>
		&nbsp;&nbsp; Default: None</dt>
	<dd>
		&nbsp;</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>$user_id</strong><br>
		&nbsp;&nbsp; (<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#Integer" title="How to Pass Tag Parameters" style="color: #cc0000;">integer</a>) (optional) Only return<br>
		&nbsp;&nbsp; comments for a particular user.<br>
		&nbsp;&nbsp; Default: None</dt>
	<dd>
		&nbsp;</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong>$count</strong><br>
		&nbsp;&nbsp; (<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#Integer" title="How to Pass Tag Parameters" style="color: #cc0000;">integer</a>) (optional) Only return the<br>
		&nbsp;&nbsp; total count of comments.<br>
		&nbsp;&nbsp; Default: None</dt>
	
</dl>
</div>
								</td>
							</tr>
							
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Return values
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div>(<strong>Array</strong>)&nbsp;<br>
&nbsp;&nbsp; Comment fields</div>
								</td>
							</tr>

							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Examples
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><h4 style="margin-bottom: 0;">
	Show comments of a user:</h4>
<pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;?php
$args = array(
	&#39;user_id&#39; =&gt; 1, // use user_id
);
$comments = get_comments($args);
foreach($comments as $comment)&nbsp;:
	echo($comment-&gt;comment_author .
       &#39;&lt;br /&gt;&#39; . $comment-&gt;comment_content);
endforeach;

?&gt;</pre>
</div>
								</td>
							</tr>

              	<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									More information
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><a href="http://codex.wordpress.org/Function_Reference/get_comments" style="color: #cc0000;">http://codex.wordpress.org/Function_Reference/get_comments</a></div><br>
								</td>
							</tr>
							<tr>
                <td>
                  <table width="600">
                    <tr>
                      <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                        Liked this function?
                      </td>
                    </tr>
                    <tr>
                      <td width="70%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2"><div>
	You might also like these books:<br>

<a href="http://www.amazon.com/gp/product/0470916222/ref=as_li_tf_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0470916222" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0470916222&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0470916222" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/1119995965/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1119995965" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=1119995965&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=1119995965" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/0980455294/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0980455294" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0980455294&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0980455294" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

</div>
</td>
                      <td width="30%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; text-align: right; line-height: 20px;" colspan="2">Share it:<br>
<a href="http://twitter.com/share?url=http%3A%2F%2Feepurl.com%2FqPVDf&text=The+Daily+WordPress+Reference%3A+get_comments%28%29&count=none" target="_blank"><img src="http://cdn-images.mailchimp.com/social_connect_tweet.png" border="0" width="55" height="20" style="display:inline;" alt="share on Twitter"></a>&nbsp;<a href="http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=d1811e5b8e&fblike=true&e=[UNIQID]&socialproxy=http%3A%2F%2Fus4.campaign-archive.com%2Fsocial-proxy%2Ffacebook-like%3Fu%3D427153c482114d70024e1dc1a%26id%3Dd1811e5b8e%26url%3Dhttp%253A%252F%252Fus4.campaign-archive.com%252F%253Fu%253D427153c482114d70024e1dc1a%2526id%253Dd1811e5b8e%26title%3DThe%2520Daily%2520WordPress%2520Reference%253A%2520get_comments%2528%2529" title="Like The Daily WordPress Reference: get_comments() on Facebook" rel="socialproxy" id="fblike-"><img src="http://cdn-images.mailchimp.com/fb/like.gif" border="0" alt="Like The Daily WordPress Reference: get_comments() on Facebook" height="20" width="48" style="display:inline;"/></a><br>
&nbsp;Or Donate to the project:<br>
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EQZ8YJVVF79AN" style="color: #cc0000;"><img alt="Donata via Paypal" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif"></a><br>
(<a href="http://www.dailydocumentation.com/blog/faq/why-donate-to-this-project/" style="color: #cc0000;">Why Donate?</a>)</td>
                    </tr>
                  </table>
                </td>
              </tr>
						</table>
            <!-- // End Module: Standard Content \\ -->
						<!-- // End Template Body \\ -->
					</td>
				</tr>
				<tr>
					<td valign="top" width="600">
            <!-- // Begin Template Footer \\ -->
            <!-- // Begin Module: Standard Footer \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td valign="top">
									<table cellspacing="0" border="0" width="600" cellpadding="0">
										<tr>
											<td class="unsubscribe" valign="top" style="padding: 10px 20px; color: #999; font-size: 14px; font-family: Georgia; line-height: 20px;">
                        <div><br>
 </div>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td valign="top" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td class="copyright" height="100" align="center" valign="top" style="padding: 0 20px; color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; line-height: 20px;" width="600" colspan="2">
                  <div>
									&nbsp;<a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=d1811e5b8e">unsubscribe from this list</a> | <a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]">update subscription preferences</a>&nbsp; 
                  </div>
								</td>
							</tr>
						</table>
            <!-- // End Module: Standard Footer \\ -->
						<!-- // End Template Footer \\ -->
					</td>
				</tr>
			</table>
			
		</td>
	
	</tr>
	
</table>

</body>
</html>
<!--
<a href="./" style="color: #cc0000; text-decoration: none;"></a>
-->
]]></content:encoded>
      <pubDate>Thu, 25 Oct 2012 12:00:00 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[The Daily WordPress Reference: get_stylesheet_directory_uri()]]></title>
      <link>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=1d4d7b2e46</link>
      <guid>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=1d4d7b2e46</guid>
      <description><![CDATA[Is this email not displaying correctly? View it in your browser: http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=1d4d7b2e46&e=[UNIQID]
   
The Daily WordPress Reference

The get_stylesheet_directory_uri() function

Description
   Retrieve stylesheet directory URI for the current theme/child theme. Checks for SSL.
   
   Note: Does not contain a trailing slash.
   
   Note that this returns a properly-formed URI; in other words, it will be a web-address (starting with http:// or https:// for SSL). As such, it is most appropriately used for links, referencing additional stylesheets, or probably most commonly, images.
   
   In the event a child theme is being used, this function will return the child's theme directory URI. Use get_template_directory_uri() instead if you want the parent directory.
   
   If you want to include a local file in PHP, use get_stylesheet_directory() instead.

Usage
   Use the URI
   
   <?php get_stylesheet_directory_uri(); ?>
   
   Output the URI
   
   <?php echo get_stylesheet_directory_uri(); ?>

Parameters
   None.

Return Values
   uri (string) 
       Stylesheet directory URI. 

Examples
   Image (HTML)
   
   <img src="<?php echo get_stylesheet_directory_uri() ?>/images/aternus.png" alt="" title="" width="" height="" />

More informations
   http://codex.wordpress.org/Function_Reference/get_stylesheet_directory_uri
  
  
DailyWordpressReference is not affiliated with WordPress in any way.
  __________________________________________________________________
  Links:
    [1]Follow the Daily WordPress Reference on Twitter
   
   
    [2]unsubscribe from this list | [3]update subscription preferences
     Links:
       1. Twitter Account not yet Authorized


       2. http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=1d4d7b2e46
       3. http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]]]></description>
      <content:encoded><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>The Daily WordPress Reference: get_stylesheet_directory_uri()</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<!-- Facebook sharing information tags -->
	<meta property="og:title" content="The Daily WordPress Reference: get_stylesheet_directory_uri()">
		
<style type="text/css">
		a{
			color:#cc0000;
		}
		dl{
			margin:0;
		}
		h4{
			margin-bottom:0;
		}
		.example{
			border:1px dashed #059100;
			padding:3px;
		}
		.default_param_value{
			color:#777;
			padding-bottom:7px;
		}
		code{
			color:#3D5A6F;
			background:#F7F7F7;
		}
		pre{
			color:#3D5A6F;
			background:#F7F7F7;
			border-top:1px solid #dedede;
			border-bottom:1px solid #dedede;
			padding:3px 2px;
		}
		.list a{
			color:#cc0000;
			text-transform:uppercase;
			font-family:Verdana;
			font-size:11px;
			text-decoration:none;
		}
</style></head>
<body marginheight="0" topmargin="0" marginwidth="0" bgcolor="#c5c5c5" leftmargin="0">

<table cellspacing="0" border="0" style="background-image: url(http://www.dailydocumentation.com/wordpress/mailassets/bg.gif); background-color: #c5c5c5;" cellpadding="0" width="100%">
	
	<tr>
		
		<td valign="top">

			<table cellspacing="0" border="0" align="center" style="background: #fff; border-right: 1px solid #ccc; border-left: 1px solid #ccc;" cellpadding="0" width="600">
				<tr>
					<td valign="top">
            <!-- // Begin Template Preheader \\ -->	
						<table cellspacing="0" border="0" height="110" cellpadding="0" width="600">
							<tr>
                <!-- // Begin Module: Standard Preheader \\ -->
								<td class="header-text" height="50" valign="top" style="color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; padding: 0 20px;" width="540" colspan="2">
                  <div>
									<!--  -->
                  </div>
								</td>
                <!-- // End Module: Standard Preheader \\ -->
							</tr>
              <!-- // End Template Preheader \\ -->
							<tr>
                <!-- // Begin Template Header \\ -->
								<td class="main-title" height="13" valign="top" style="padding: 0 20px; font-size: 25px; font-family: Georgia;" width="600" colspan="2">
                  <!-- // Begin Module: Standard Header Image \\ -->
									<a href="http://www.dailydocumentation.com/wordpress/" style="color: black; text-decoration: none;">The Daily WordPress Reference</a>
                  <!-- // End Module: Standard Header Image \\ -->
								</td>
							</tr>
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
						</table>
            <!-- // End Template Header \\ -->
					</td>
				</tr>
				<tr>
					<td>
            <!-- // Begin Template Body \\ -->
            <!-- // Begin Module: Standard Content \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
              <tr>
                <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  <div><div style="text-align: left;">
	get_stylesheet_directory_uri()</div>
</div>
                </td>
              </tr>
              <tr>
                <td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><p>
	Retrieve <a href="http://en.wikipedia.org/wiki/Cascading_Style_Sheets" title="http://en.wikipedia.org/wiki/Cascading_Style_Sheets" style="color: #cc0000;">stylesheet</a> directory URI for the current theme/child theme. Checks for SSL.</p>
<p>
	Note: Does not contain a trailing slash.</p>
<p>
	Note that this returns a properly-formed <a href="http://en.wikipedia.org/wiki/Uniform_Resource_Identifier" title="http://en.wikipedia.org/wiki/Uniform_Resource_Identifier" style="color: #cc0000;">URI</a>; in other words, it will be a web-address (starting with http:// or https:// for SSL). As such, it is most appropriately used for links, referencing additional stylesheets, or probably most commonly, images.</p>
<p>
	In the event a child theme is being used, this function will return the child&#39;s theme directory URI. Use <a href="http://codex.wordpress.org/Function_Reference/get_template_directory_uri" title="Function Reference/get template directory uri" style="color: #cc0000;"> get_template_directory_uri()</a> instead if you want the parent directory.</p>
<p>
	If you want to include a local file in PHP, use <a href="http://codex.wordpress.org/Function_Reference/get_stylesheet_directory" title="Function Reference/get stylesheet directory" style="color: #cc0000;">get_stylesheet_directory()</a> instead.</p>
</div>
                </td>
              </tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  Usage
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><p>
	<strong>Use the URI</strong></p>
<pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;?php get_stylesheet_directory_uri();&nbsp;?&gt;
</pre>
<p>
	<strong>Output the URI</strong></p>
<pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;?php echo get_stylesheet_directory_uri();&nbsp;?&gt;
</pre>
</div>
								</td>
							</tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Parameters
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                  <div>None.</div>
								</td>
							</tr>
							
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Return values
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><dl style="margin: 0;">
	<dt>
		uri (<strong><a href="http://codex.wordpress.org/Glossary#String" title="Glossary" style="color: #cc0000;">string</a></strong>)<br>
		&nbsp;&nbsp; Stylesheet directory URI.</dt>
</dl>
</div>
								</td>
							</tr>

							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Examples
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><h4 style="margin-bottom: 0;">
	Image (HTML)</h4>
<pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;img src=&quot;&lt;?php
echo get_stylesheet_directory_uri()&nbsp;
?&gt;/images/logo.png&quot; alt=&quot;&quot; title=&quot;&quot; width=&quot;&quot; height=&quot;&quot; /&gt;
</pre>
</div>
								</td>
							</tr>

              	<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									More information
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><a href="http://codex.wordpress.org/Function_Reference/get_stylesheet_directory_uri" style="color: #cc0000;">http://codex.wordpress.org/Function_Reference/get_stylesheet_directory_uri</a></div><br>
								</td>
							</tr>
							<tr>
                <td>
                  <table width="600">
                    <tr>
                      <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                        Liked this function?
                      </td>
                    </tr>
                    <tr>
                      <td width="70%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2"><div>
	You might also like these books:<br>

<a href="http://www.amazon.com/gp/product/0470916222/ref=as_li_tf_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0470916222" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0470916222&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0470916222" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/1119995965/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1119995965" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=1119995965&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=1119995965" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/0980455294/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0980455294" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0980455294&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0980455294" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

</div>
</td>
                      <td width="30%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; text-align: right; line-height: 20px;" colspan="2">Share it:<br>
<a href="http://twitter.com/share?url=http%3A%2F%2Feepurl.com%2Fqy2Hj&text=The+Daily+WordPress+Reference%3A+get_stylesheet_directory_uri%28%29&count=none" target="_blank"><img src="http://cdn-images.mailchimp.com/social_connect_tweet.png" border="0" width="55" height="20" style="display:inline;" alt="share on Twitter"></a>&nbsp;<a href="http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=1d4d7b2e46&fblike=true&e=[UNIQID]&socialproxy=http%3A%2F%2Fus4.campaign-archive.com%2Fsocial-proxy%2Ffacebook-like%3Fu%3D427153c482114d70024e1dc1a%26id%3D1d4d7b2e46%26url%3Dhttp%253A%252F%252Fus4.campaign-archive.com%252F%253Fu%253D427153c482114d70024e1dc1a%2526id%253D1d4d7b2e46%26title%3DThe%2520Daily%2520WordPress%2520Reference%253A%2520get_stylesheet_directory_uri%2528%2529" title="Like The Daily WordPress Reference: get_stylesheet_directory_uri() on Facebook" rel="socialproxy" id="fblike-"><img src="http://cdn-images.mailchimp.com/fb/like.gif" border="0" alt="Like The Daily WordPress Reference: get_stylesheet_directory_uri() on Facebook" height="20" width="48" style="display:inline;"/></a><br>
&nbsp;Or Donate to the project:<br>
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EQZ8YJVVF79AN" style="color: #cc0000;"><img alt="Donata via Paypal" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif"></a><br>
(<a href="http://www.dailydocumentation.com/blog/faq/why-donate-to-this-project/" style="color: #cc0000;">Why Donate?</a>)</td>
                    </tr>
                  </table>
                </td>
              </tr>
						</table>
            <!-- // End Module: Standard Content \\ -->
						<!-- // End Template Body \\ -->
					</td>
				</tr>
				<tr>
					<td valign="top" width="600">
            <!-- // Begin Template Footer \\ -->
            <!-- // Begin Module: Standard Footer \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td valign="top">
									<table cellspacing="0" border="0" width="600" cellpadding="0">
										<tr>
											<td class="unsubscribe" valign="top" style="padding: 10px 20px; color: #999; font-size: 14px; font-family: Georgia; line-height: 20px;">
                        <div><br>
 </div>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td valign="top" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td class="copyright" height="100" align="center" valign="top" style="padding: 0 20px; color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; line-height: 20px;" width="600" colspan="2">
                  <div>
									&nbsp;<a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=1d4d7b2e46">unsubscribe from this list</a> | <a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]">update subscription preferences</a>&nbsp; 
                  </div>
								</td>
							</tr>
						</table>
            <!-- // End Module: Standard Footer \\ -->
						<!-- // End Template Footer \\ -->
					</td>
				</tr>
			</table>
			
		</td>
	
	</tr>
	
</table>

</body>
</html>
<!--
<a href="./" style="color: #cc0000; text-decoration: none;"></a>
-->
]]></content:encoded>
      <pubDate>Wed, 24 Oct 2012 12:00:00 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[The Daily WordPress Reference: get_header()]]></title>
      <link>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=4893dbda0f</link>
      <guid>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=4893dbda0f</guid>
      <description><![CDATA[Is this email not displaying correctly? View it in your browser: http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=4893dbda0f&e=[UNIQID]
   
The Daily WordPress Reference

The get_header() function

Description
   Includes the header.php template file from your current theme's directory. if a name is specified then a specialised header header-{name}.php will be included.
   
   If the theme contains no header.php file then the header from the default theme wp-includes/theme-compat/header.php will be included. 

Usage
   <?php get_header( $name ); ?> 

Parameters
   $name
       (string) (optional) Calls for header-name.php.
   
           Default: None 

Return Values
   None.

Examples
   Multi headers
   
   Different header for different pages.
   
   <?php
   if ( is_home() ) :
     get_header('home');
   elseif ( is_404() ) :
     get_header('404');
   else :
     get_header();
   endif;
   ?>

More informations
   http://codex.wordpress.org/Function_Reference/get_header
  
  
DailyWordpressReference is not affiliated with WordPress in any way.
  __________________________________________________________________
  Links:
    [1]Follow the Daily WordPress Reference on Twitter
   
   
    [2]unsubscribe from this list | [3]update subscription preferences
     Links:
       1. Twitter Account not yet Authorized


       2. http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=4893dbda0f
       3. http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]]]></description>
      <content:encoded><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>The Daily WordPress Reference: get_header()</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<!-- Facebook sharing information tags -->
	<meta property="og:title" content="The Daily WordPress Reference: get_header()">
		
<style type="text/css">
		a{
			color:#cc0000;
		}
		dl{
			margin:0;
		}
		h4{
			margin-bottom:0;
		}
		.example{
			border:1px dashed #059100;
			padding:3px;
		}
		.default_param_value{
			color:#777;
			padding-bottom:7px;
		}
		code{
			color:#3D5A6F;
			background:#F7F7F7;
		}
		pre{
			color:#3D5A6F;
			background:#F7F7F7;
			border-top:1px solid #dedede;
			border-bottom:1px solid #dedede;
			padding:3px 2px;
		}
		.list a{
			color:#cc0000;
			text-transform:uppercase;
			font-family:Verdana;
			font-size:11px;
			text-decoration:none;
		}
</style></head>
<body marginheight="0" topmargin="0" marginwidth="0" bgcolor="#c5c5c5" leftmargin="0">

<table cellspacing="0" border="0" style="background-image: url(http://www.dailydocumentation.com/wordpress/mailassets/bg.gif); background-color: #c5c5c5;" cellpadding="0" width="100%">
	
	<tr>
		
		<td valign="top">

			<table cellspacing="0" border="0" align="center" style="background: #fff; border-right: 1px solid #ccc; border-left: 1px solid #ccc;" cellpadding="0" width="600">
				<tr>
					<td valign="top">
            <!-- // Begin Template Preheader \\ -->	
						<table cellspacing="0" border="0" height="110" cellpadding="0" width="600">
							<tr>
                <!-- // Begin Module: Standard Preheader \\ -->
								<td class="header-text" height="50" valign="top" style="color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; padding: 0 20px;" width="540" colspan="2">
                  <div>
									<!--  -->
                  </div>
								</td>
                <!-- // End Module: Standard Preheader \\ -->
							</tr>
              <!-- // End Template Preheader \\ -->
							<tr>
                <!-- // Begin Template Header \\ -->
								<td class="main-title" height="13" valign="top" style="padding: 0 20px; font-size: 25px; font-family: Georgia;" width="600" colspan="2">
                  <!-- // Begin Module: Standard Header Image \\ -->
									<a href="http://www.dailydocumentation.com/wordpress/" style="color: black; text-decoration: none;">The Daily WordPress Reference</a>
                  <!-- // End Module: Standard Header Image \\ -->
								</td>
							</tr>
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
						</table>
            <!-- // End Template Header \\ -->
					</td>
				</tr>
				<tr>
					<td>
            <!-- // Begin Template Body \\ -->
            <!-- // Begin Module: Standard Content \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
              <tr>
                <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  <div><div style="text-align: left;">
	get_header()</div>
</div>
                </td>
              </tr>
              <tr>
                <td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><p>
	<a href="http://codex.wordpress.org/Include_Tags" title="Include Tags" style="color: #cc0000;">Includes</a> the header.php template file from your current theme&#39;s directory. if a name is specified then a specialised header header-{name}.php will be included.</p>
<p>
	If the theme contains no header.php file then the header from the default theme wp-includes/theme-compat/header.php will be included.</p>
</div>
                </td>
              </tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  Usage
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">&lt;?php&nbsp;get_header(&nbsp;$name&nbsp;);&nbsp;?&gt;</pre></div>
								</td>
							</tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Parameters
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                  <div><dl style="margin: 0;">
	<dt>
		<strong>$name</strong><br>
		&nbsp;&nbsp; (<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#String" title="How to Pass Tag Parameters" style="color: #cc0000;">string</a>) (optional) Calls for header-name.php.<br>
		&nbsp;&nbsp; Default: None</dt>
</dl>
</div>
								</td>
							</tr>
							
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Return values
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div>The ID of the post if the post is successfully added to the database. On failure, it returns 0 if $wp_error is set to false, or a <a href="http://codex.wordpress.org/Class_Reference/WP_Error" title="Class Reference/WP Error" style="color: #cc0000;">WP_Error</a> object if $wp_error is set to true.</div>
								</td>
							</tr>

							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Examples
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><h4 style="margin-bottom: 0;">Multi headers</h4>
<p>
	Different header for different pages.</p>
<pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;?php
if ( is_home() )&nbsp;:
  get_header(&#39;home&#39;);
elseif ( is_404() )&nbsp;:
  get_header(&#39;404&#39;);
else&nbsp;:
  get_header();
endif;
?&gt;
</pre>
</div>
								</td>
							</tr>

              	<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									More information
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><a href="http://codex.wordpress.org/Function_Reference/get_header" style="color: #cc0000;">http://codex.wordpress.org/Function_Reference/get_header</a></div><br>
								</td>
							</tr>
							<tr>
                <td>
                  <table width="600">
                    <tr>
                      <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                        Liked this function?
                      </td>
                    </tr>
                    <tr>
                      <td width="70%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2"><div>
	You might also like these books:<br>

<a href="http://www.amazon.com/gp/product/0470916222/ref=as_li_tf_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0470916222" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0470916222&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0470916222" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/1119995965/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1119995965" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=1119995965&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=1119995965" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/0980455294/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0980455294" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0980455294&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0980455294" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

</div>
</td>
                      <td width="30%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; text-align: right; line-height: 20px;" colspan="2">Share it:<br>
<a href="http://twitter.com/share?url=http%3A%2F%2Feepurl.com%2FqvAS5&text=The+Daily+WordPress+Reference%3A+get_header%28%29&count=none" target="_blank"><img src="http://cdn-images.mailchimp.com/social_connect_tweet.png" border="0" width="55" height="20" style="display:inline;" alt="share on Twitter"></a>&nbsp;<a href="http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=4893dbda0f&fblike=true&e=[UNIQID]&socialproxy=http%3A%2F%2Fus4.campaign-archive.com%2Fsocial-proxy%2Ffacebook-like%3Fu%3D427153c482114d70024e1dc1a%26id%3D4893dbda0f%26url%3Dhttp%253A%252F%252Fus4.campaign-archive.com%252F%253Fu%253D427153c482114d70024e1dc1a%2526id%253D4893dbda0f%26title%3DThe%2520Daily%2520WordPress%2520Reference%253A%2520get_header%2528%2529" title="Like The Daily WordPress Reference: get_header() on Facebook" rel="socialproxy" id="fblike-"><img src="http://cdn-images.mailchimp.com/fb/like.gif" border="0" alt="Like The Daily WordPress Reference: get_header() on Facebook" height="20" width="48" style="display:inline;"/></a><br>
&nbsp;Or Donate to the project:<br>
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EQZ8YJVVF79AN" style="color: #cc0000;"><img alt="Donata via Paypal" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif"></a><br>
(<a href="http://www.dailydocumentation.com/blog/faq/why-donate-to-this-project/" style="color: #cc0000;">Why Donate?</a>)</td>
                    </tr>
                  </table>
                </td>
              </tr>
						</table>
            <!-- // End Module: Standard Content \\ -->
						<!-- // End Template Body \\ -->
					</td>
				</tr>
				<tr>
					<td valign="top" width="600">
            <!-- // Begin Template Footer \\ -->
            <!-- // Begin Module: Standard Footer \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td valign="top">
									<table cellspacing="0" border="0" width="600" cellpadding="0">
										<tr>
											<td class="unsubscribe" valign="top" style="padding: 10px 20px; color: #999; font-size: 14px; font-family: Georgia; line-height: 20px;">
                        <div><br>
 </div>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td valign="top" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td class="copyright" height="100" align="center" valign="top" style="padding: 0 20px; color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; line-height: 20px;" width="600" colspan="2">
                  <div>
									&nbsp;<a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=4893dbda0f">unsubscribe from this list</a> | <a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]">update subscription preferences</a>&nbsp; 
                  </div>
								</td>
							</tr>
						</table>
            <!-- // End Module: Standard Footer \\ -->
						<!-- // End Template Footer \\ -->
					</td>
				</tr>
			</table>
			
		</td>
	
	</tr>
	
</table>

</body>
</html>
<!--
<a href="./" style="color: #cc0000; text-decoration: none;"></a>
-->
]]></content:encoded>
      <pubDate>Tue, 23 Oct 2012 12:00:00 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[The Daily WordPress Reference: wp_insert_post()]]></title>
      <link>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=c248003a99</link>
      <guid>http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&amp;id=c248003a99</guid>
      <description><![CDATA[Is this email not displaying correctly? View it in your browser: http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=c248003a99&e=[UNIQID]
   
The Daily WordPress Reference

The wp_insert_post() function

Description
   This function inserts posts (and pages) in the database. It sanitizes variables, does some checks, fills in missing variables like date/time, etc. It takes an object as its argument and returns the post ID of the created post (or 0 if there is an error). 

Usage
   <?php wp_insert_post( $post, $wp_error ); ?> 

Parameters
   $post
       (array) (required) An array representing the elements that make up a post. There is a one-to-one relationship between these elements and the names of columns in the wp_posts table in the database.
   
           Default: None 
   
   The contents of the post array can depend on how much (or little) you want to trust the defaults. Here is a list with a short description of all the keys you can set for a post:
   
   $post = array(
     'ID'             => [ <post id> ] //Are you updating an existing post?
     'menu_order'     => [ <order> ] //If new post is a page, it sets the order in which it should appear in the tabs.
     'comment_status' => [ 'closed' | 'open' ] // 'closed' means no comments.
     'ping_status'    => [ 'closed' | 'open' ] // 'closed' means pingbacks or trackbacks turned off
     'pinged'         => [ ? ] //?
     'post_author'    => [ <user ID> ] //The user ID number of the author.
     'post_category'  => [ array(<category id>, <...>) ] //post_category no longer exists, try wp_set_post_terms() for setting a post's categories
     'post_content'   => [ <the text of the post> ] //The full text of the post.
     'post_date'      => [ Y-m-d H:i:s ] //The time post was made.
     'post_date_gmt'  => [ Y-m-d H:i:s ] //The time post was made, in GMT.
     'post_excerpt'   => [ <an excerpt> ] //For all your post excerpt needs.
     'post_name'      => [ <the name> ] // The name (slug) for your post
     'post_parent'    => [ <post ID> ] //Sets the parent of the new post.
     'post_password'  => [ ? ] //password for post?
     'post_status'    => [ 'draft' | 'publish' | 'pending'| 'future' | 'private' | custom registered status ] //Set the status of the new post.
     'post_title'     => [ <the title> ] //The title of your post.
     'post_type'      => [ 'post' | 'page' | 'link' | 'nav_menu_item' | custom post type ] //You may want to insert a regular post, page, link, a menu item or some custom post type
     'tags_input'     => [ '<tag>, <tag>, <...>' ] //For tags.
     'to_ping'        => [ ? ] //?
     'tax_input'      => [ array( 'taxonomy_name' => array( 'term', 'term2', 'term3' ) ) ] // support for custom taxonomies. 
   );  
   $wp_error
       (bool) (optional) Allow return of WP_Error object on failure
   
           Default: false 

Return Values
   The ID of the post if the post is successfully added to the database. On failure, it returns 0 if $wp_error is set to false, or a WP_Error object if $wp_error is set to true. 

Examples
   Before calling wp_insert_post() it is necessary to create an array to pass the necessary elements that make up a post. The wp_insert_post() will fill out a default list of these but the user is required to provide the title and content otherwise the database write will fail.
   
   The user can provide more elements than are listed here by simply defining new keys in the database. The keys should match the names of the columns in the wp_posts table in the database.
   
   // Create post object
   $my_post = array(
     'post_title'    => 'My post',
     'post_content'  => 'This is my post.',
     'post_status'   => 'publish',
     'post_author'   => 1,
     'post_category' => array(8,39)
   );
   
   // Insert the post into the database
   wp_insert_post( $my_post );

More informations
   http://codex.wordpress.org/Function_Reference/wp_insert_post
  
  
DailyWordpressReference is not affiliated with WordPress in any way.
  __________________________________________________________________
  Links:
    [1]Follow the Daily WordPress Reference on Twitter
   
   
    [2]unsubscribe from this list | [3]update subscription preferences
     Links:
       1. Twitter Account not yet Authorized


       2. http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=c248003a99
       3. http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]]]></description>
      <content:encoded><![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>The Daily WordPress Reference: wp_insert_post()</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<!-- Facebook sharing information tags -->
	<meta property="og:title" content="The Daily WordPress Reference: wp_insert_post()">
		
<style type="text/css">
		a{
			color:#cc0000;
		}
		dl{
			margin:0;
		}
		h4{
			margin-bottom:0;
		}
		.example{
			border:1px dashed #059100;
			padding:3px;
		}
		.default_param_value{
			color:#777;
			padding-bottom:7px;
		}
		code{
			color:#3D5A6F;
			background:#F7F7F7;
		}
		pre{
			color:#3D5A6F;
			background:#F7F7F7;
			border-top:1px solid #dedede;
			border-bottom:1px solid #dedede;
			padding:3px 2px;
		}
		.list a{
			color:#cc0000;
			text-transform:uppercase;
			font-family:Verdana;
			font-size:11px;
			text-decoration:none;
		}
</style></head>
<body marginheight="0" topmargin="0" marginwidth="0" bgcolor="#c5c5c5" leftmargin="0">

<table cellspacing="0" border="0" style="background-image: url(http://www.dailydocumentation.com/wordpress/mailassets/bg.gif); background-color: #c5c5c5;" cellpadding="0" width="100%">
	
	<tr>
		
		<td valign="top">

			<table cellspacing="0" border="0" align="center" style="background: #fff; border-right: 1px solid #ccc; border-left: 1px solid #ccc;" cellpadding="0" width="600">
				<tr>
					<td valign="top">
            <!-- // Begin Template Preheader \\ -->	
						<table cellspacing="0" border="0" height="110" cellpadding="0" width="600">
							<tr>
                <!-- // Begin Module: Standard Preheader \\ -->
								<td class="header-text" height="50" valign="top" style="color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; padding: 0 20px;" width="540" colspan="2">
                  <div>
									<!--  -->
                  </div>
								</td>
                <!-- // End Module: Standard Preheader \\ -->
							</tr>
              <!-- // End Template Preheader \\ -->
							<tr>
                <!-- // Begin Template Header \\ -->
								<td class="main-title" height="13" valign="top" style="padding: 0 20px; font-size: 25px; font-family: Georgia;" width="600" colspan="2">
                  <!-- // Begin Module: Standard Header Image \\ -->
									<a href="http://www.dailydocumentation.com/wordpress/" style="color: black; text-decoration: none;">The Daily WordPress Reference</a>
                  <!-- // End Module: Standard Header Image \\ -->
								</td>
							</tr>
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
						</table>
            <!-- // End Template Header \\ -->
					</td>
				</tr>
				<tr>
					<td>
            <!-- // Begin Template Body \\ -->
            <!-- // Begin Module: Standard Content \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
              <tr>
                <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  <div><div style="text-align: left;">
	wp_insert_post()</div>
</div>
                </td>
              </tr>
              <tr>
                <td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div>This function inserts posts (and pages) in the database. It sanitizes variables, does some checks, fills in missing variables like date/time, etc. It takes an object as its argument and returns the post ID of the created post (or 0 if there is an error).</div>
                </td>
              </tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                  Usage
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
&lt;?php&nbsp;wp_insert_post(&nbsp;$post,&nbsp;$wp_error&nbsp;);&nbsp;?&gt;</pre>
</div>
								</td>
							</tr>
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Parameters
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                  <div><dl style="margin: 0;">
	<dt>
		<strong><tt>$post</tt></strong><br>
		&nbsp;&nbsp; (<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#Array" title="How to Pass Tag Parameters" style="color: #cc0000;"><i>array</i></a>) (<i>required</i>) An array representing the elements that<br>
		&nbsp;&nbsp; make up a post. There is a one-to-one relationship between<br>
		&nbsp;&nbsp; these elements and the names of columns in the wp_posts<br>
		&nbsp;&nbsp; table in the database.<br>
		&nbsp;&nbsp; Default: <i>None</i></dt>
	<dd>
		&nbsp;</dd>
</dl>
<dl style="margin: 0;">
	<dt>
		<strong><tt>$wp_error</tt></strong><br>
		&nbsp;&nbsp; (<a href="http://codex.wordpress.org/How_to_Pass_Tag_Parameters#Bool" title="How to Pass Tag Parameters" style="color: #cc0000;"><i>bool</i></a>) (<i>optional</i>) Allow return of <a href="http://codex.wordpress.org/Class_Reference/WP_Error" title="Class Reference/WP Error" style="color: #cc0000;">WP_Error</a> object on failure<br>
		&nbsp;&nbsp; Default: false</dt>
</dl>
<p>
	The contents of the post array can depend on how much (or little) you want to trust the defaults. Here is a list with a short description of all the keys you can set for a post:</p>
<pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
$post = array(
  // Are you updating an existing post?
  &#39;ID&#39;             =&gt; [ &lt;post id&gt; ] 
  // if new post is a page, it sets the
  // order in wich it should appear in the tabs.
  &#39;menu_order&#39;     =&gt; [ &lt;order&gt; ] 
  // &#39;closed&#39; means no comments.
  &#39;comment_status&#39; =&gt; [ &#39;closed&#39; | &#39;open&#39; ]
  // &#39;closed&#39; means pingbacks or trakbacks turned off
  &#39;ping_status&#39;    =&gt; [ &#39;closed&#39; | &#39;open&#39; ]
  &#39;pinged&#39;         =&gt; [&nbsp;? ] //?
  // The user ID number of the author.
  &#39;post_author&#39;    =&gt; [ &lt;user ID&gt; ] 
  // post_category no longer exists, try wp_set_post_terms()
  // for setting a post&#39;s categories
  &#39;post_category&#39;  =&gt; [ array(&lt;category id&gt;, &lt;...&gt;) ]
  // The full text of the post
  &#39;post_content&#39;   =&gt; [ &lt;the text of the post&gt; ]
  // The time post was made.
  &#39;post_date&#39;      =&gt; [ Y-m-d H:i:s ]
  // The time post was made, in GMT.
  &#39;post_date_gmt&#39;  =&gt; [ Y-m-d H:i:s ]
  // For all your post excerpt needs
  &#39;post_excerpt&#39;   =&gt; [ &lt;an excerpt&gt; ]
  // The name (slug) for your post
  &#39;post_name&#39;      =&gt; [ &lt;the name&gt; ]
  // Sets the parent of the new post.
  &#39;post_parent&#39;    =&gt; [ &lt;post ID&gt; ]
  &#39;post_password&#39;  =&gt; [&nbsp;? ] //password for post?
  // Set the status of the new post.
  &#39;post_status&#39;    =&gt; [ &#39;draft&#39; | &#39;publish&#39; 
    | &#39;pending&#39;| &#39;future&#39; | &#39;private&#39; | custom registered status ] 
  &#39;post_title&#39;     =&gt; [ &lt;the title&gt; ] //The title of your post.
  // You may want to insert a regular post, page,
  // link, a menu item or some custom post type
  &#39;post_type&#39;      =&gt; [ &#39;post&#39; | &#39;page&#39; 
    | &#39;link&#39; | &#39;nav_menu_item&#39; | custom post type ] 
  &#39;tags_input&#39;     =&gt; [ &#39;&lt;tag&gt;, &lt;tag&gt;, &lt;...&gt;&#39; ] //For tags.
  &#39;to_ping&#39;        =&gt; [&nbsp;? ] //?
  // support for custom taxonomies. 
  &#39;tax_input&#39;      =&gt; [ array( 
    &#39;taxonomy_name&#39; =&gt; array( &#39;term&#39;, &#39;term2&#39;, &#39;term3&#39; ) ) ] 
);  
</pre>
</div>
								</td>
							</tr>
							
							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Return values
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div>The ID of the post if the post is successfully added to the database. On failure, it returns 0 if $wp_error is set to false, or a <a href="http://codex.wordpress.org/Class_Reference/WP_Error" title="Class Reference/WP Error" style="color: #cc0000;">WP_Error</a> object if $wp_error is set to true.</div>
								</td>
							</tr>

							<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									Examples
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><p>
	Before calling wp_insert_post() it is necessary to create an array to pass the necessary elements that make up a post. The wp_insert_post() will fill out a default list of these but the user is required to provide the title and content otherwise the database write will fail.</p>
<p>
	The user can provide more elements than are listed here by simply defining new keys in the database. The keys should match the names of the columns in the wp_posts table in the database.</p>
<pre style="color: #3D5A6F;background: #F7F7F7;border-top: 1px solid #dedede;border-bottom: 1px solid #dedede;padding: 3px 2px;">
// Create post object
$my_post = array(
  &#39;post_title&#39;    =&gt; &#39;My post&#39;,
  &#39;post_content&#39;  =&gt; &#39;This is my post.&#39;,
  &#39;post_status&#39;   =&gt; &#39;publish&#39;,
  &#39;post_author&#39;   =&gt; 1,
  &#39;post_category&#39; =&gt; array(8,39)
);

// Insert the post into the database
wp_insert_post( $my_post );
</pre>
</div>
								</td>
							</tr>

              	<tr>
								<td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
									More information
								</td>
							</tr>
							<tr>
								<td class="content-copy" valign="top" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2">
                <div><a href="http://codex.wordpress.org/Function_Reference/wp_insert_post" style="color: #cc0000;">http://codex.wordpress.org/Function_Reference/wp_insert_post</a></div><br>
								</td>
							</tr>
							<tr>
                <td>
                  <table width="600">
                    <tr>
                      <td class="article-title" valign="top" style="padding: 10px 20px; font-family: Georgia; font-size: 20px; font-weight: bold;" width="600" colspan="2">
                        Liked this function?
                      </td>
                    </tr>
                    <tr>
                      <td width="70%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; line-height: 20px;" colspan="2"><div>
	You might also like these books:<br>

<a href="http://www.amazon.com/gp/product/0470916222/ref=as_li_tf_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=9325&creativeASIN=0470916222" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0470916222&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0470916222" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/1119995965/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1119995965" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=1119995965&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=1119995965" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

<a href="http://www.amazon.com/gp/product/0980455294/ref=as_li_ss_il?ie=UTF8&tag=thedaiworref-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0980455294" style="color: #cc0000;"><img border="0" src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&Format=_SL110_&ASIN=0980455294&MarketPlace=US&ID=AsinImage&WS=1&tag=thedaiworref-20&ServiceVersion=20070822"></a><img src="http://www.assoc-amazon.com/e/ir?t=thedaiworref-20&l=as2&o=1&a=0980455294" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;">

</div>
</td>
                      <td width="30%" class="content-copy" valign="center" style="padding: 0 20px; color: #000; font-size: 14px; font-family: Georgia; text-align: right; line-height: 20px;" colspan="2">Share it:<br>
<a href="http://twitter.com/share?url=http%3A%2F%2Feepurl.com%2FqvxKn&text=The+Daily+WordPress+Reference%3A+wp_insert_post%28%29&count=none" target="_blank"><img src="http://cdn-images.mailchimp.com/social_connect_tweet.png" border="0" width="55" height="20" style="display:inline;" alt="share on Twitter"></a>&nbsp;<a href="http://us4.campaign-archive.com/?u=427153c482114d70024e1dc1a&id=c248003a99&fblike=true&e=[UNIQID]&socialproxy=http%3A%2F%2Fus4.campaign-archive.com%2Fsocial-proxy%2Ffacebook-like%3Fu%3D427153c482114d70024e1dc1a%26id%3Dc248003a99%26url%3Dhttp%253A%252F%252Fus4.campaign-archive.com%252F%253Fu%253D427153c482114d70024e1dc1a%2526id%253Dc248003a99%26title%3DThe%2520Daily%2520WordPress%2520Reference%253A%2520wp_insert_post%2528%2529" title="Like The Daily WordPress Reference: wp_insert_post() on Facebook" rel="socialproxy" id="fblike-"><img src="http://cdn-images.mailchimp.com/fb/like.gif" border="0" alt="Like The Daily WordPress Reference: wp_insert_post() on Facebook" height="20" width="48" style="display:inline;"/></a><br>
&nbsp;Or Donate to the project:<br>
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EQZ8YJVVF79AN" style="color: #cc0000;"><img alt="Donata via Paypal" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif"></a><br>
(<a href="http://www.dailydocumentation.com/blog/faq/why-donate-to-this-project/" style="color: #cc0000;">Why Donate?</a>)</td>
                    </tr>
                  </table>
                </td>
              </tr>
						</table>
            <!-- // End Module: Standard Content \\ -->
						<!-- // End Template Body \\ -->
					</td>
				</tr>
				<tr>
					<td valign="top" width="600">
            <!-- // Begin Template Footer \\ -->
            <!-- // Begin Module: Standard Footer \\ -->
						<table cellspacing="0" border="0" cellpadding="0" width="600">
							<tr>
								<td height="20" valign="top" width="600" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td valign="top">
									<table cellspacing="0" border="0" width="600" cellpadding="0">
										<tr>
											<td class="unsubscribe" valign="top" style="padding: 10px 20px; color: #999; font-size: 14px; font-family: Georgia; line-height: 20px;">
                        <div><br>
 </div>
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td valign="top" colspan="2">
									<img src="http://www.dailydocumentation.com/wordpress/mailassets/breaker.jpg" height="20" alt="" style="border: 0;" width="600">
								</td>
							</tr>
							<tr>
								<td class="copyright" height="100" align="center" valign="top" style="padding: 0 20px; color: #999; font-family: Verdana; font-size: 10px; text-transform: uppercase; line-height: 20px;" width="600" colspan="2">
                  <div>
									&nbsp;<a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/unsubscribe?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]&c=c248003a99">unsubscribe from this list</a> | <a style="color: #cc0000; text-decoration: none;" href="http://dailydocumentation.us4.list-manage.com/profile?u=427153c482114d70024e1dc1a&id=60aff5b9cd&e=[UNIQID]">update subscription preferences</a>&nbsp; 
                  </div>
								</td>
							</tr>
						</table>
            <!-- // End Module: Standard Footer \\ -->
						<!-- // End Template Footer \\ -->
					</td>
				</tr>
			</table>
			
		</td>
	
	</tr>
	
</table>

</body>
</html>
<!--
<a href="./" style="color: #cc0000; text-decoration: none;"></a>
-->
]]></content:encoded>
      <pubDate>Mon, 22 Oct 2012 12:00:00 +0000</pubDate>
    </item>
  </channel>
</rss>
