<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>iface thoughts &#187; wordpress global variables</title>
	<atom:link href="http://ifacethoughts.net/category/wordpress-global-variables/feed/" rel="self" type="application/rss+xml" />
	<link>http://ifacethoughts.net</link>
	<description>Thoughts on software development and related, by Abhijit Nadgouda</description>
	<lastBuildDate>Sun, 14 Mar 2010 07:40:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>month</title>
		<link>http://ifacethoughts.net/2006/08/15/month/</link>
		<comments>http://ifacethoughts.net/2006/08/15/month/#comments</comments>
		<pubDate>Tue, 15 Aug 2006 05:13:28 +0000</pubDate>
		<dc:creator>Abhijit Nadgouda</dc:creator>
				<category><![CDATA[wordpress global variables]]></category>

		<guid isPermaLink="false">http://ifacethoughts.net/2006/08/15/month/</guid>
		<description><![CDATA[Just like weekday, Wordpress uses month global variable to store the month names. It is a single dimensional array set in [wordpress root folder/wp-includes/locale.php]. It stores the localized values of the month names.
Plugin and theme developers can access this global variable, however, to retrieve time and date information about posts within a loop the functions [...]]]></description>
			<content:encoded><![CDATA[<p>Just like <a title="weekday global variable" href="http://ifacethoughts.net/2006/08/08/weekday/">weekday</a>, <a title="Wordpress" href="http://www.wordpress.org/">Wordpress</a> uses <code>month</code> global variable to store the month names. It is a single dimensional array set in [wordpress root folder/wp-includes/locale.php]. It stores the localized values of the month names.</p>
<p>Plugin and theme developers can access this global variable, however, to retrieve time and date information about posts within a loop the functions mentioned in <a title="weekday global variable" href="http://ifacethoughts.net/2006/08/08/weekday/">weekday</a> can be used.</p>
<p><a title="Wordpress Global Variables" href="http://ifacethoughts.net/2006/02/25/wordpress-global-variables/">Back</a> to full list of global variables.</p>
<p>Technorati tags: <a rel="tag" href="http://technorati.com/tag/month">month</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ifacethoughts.net/2006/08/15/month/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>weekday_abbrev</title>
		<link>http://ifacethoughts.net/2006/08/10/weekday_abbrev/</link>
		<comments>http://ifacethoughts.net/2006/08/10/weekday_abbrev/#comments</comments>
		<pubDate>Thu, 10 Aug 2006 14:55:38 +0000</pubDate>
		<dc:creator>Abhijit Nadgouda</dc:creator>
				<category><![CDATA[wordpress global variables]]></category>

		<guid isPermaLink="false">http://ifacethoughts.net/2006/08/10/weekday_abbrev/</guid>
		<description><![CDATA[Wordpress stores in the abbreviations of weekday names in weekday_abbrev weekday variable. It is a single dimensional array, indexed by the weekday name and is set in [wordpress root folder]/wp-includes/locale.php. Just like weekday global variable, weekday_abbrev stores localized values.
Plugin and theme developers can use weekday_abbrev to get abbreviation of a specified weekday name.
Back to full [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Wordpress" href="http://www.wordpress.org/">Wordpress</a> stores in the abbreviations of weekday names in <code>weekday_abbrev</code> weekday variable. It is a single dimensional array, indexed by the weekday name and is set in [wordpress root folder]/wp-includes/locale.php. Just like <a title="weekday global variable" href="http://ifacethoughts.net/2006/08/08/weekday/">weekday global variable</a>, <code>weekday_abbrev</code> stores <a title="l10n global variable" href="http://ifacethoughts.net/2006/07/05/l10n/">localized</a> values.</p>
<p>Plugin and theme developers can use <code>weekday_abbrev</code> to get abbreviation of a specified weekday name.</p>
<p><a title="Wordpress Global Variables" href="http://ifacethoughts.net/2006/02/25/wordpress-global-variables/">Back</a> to full list of global variables.</p>
<p>Technorati tags: <a rel="tag" href="http://technorati.com/tag/weekday_abbrev">weekday_abbrev</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ifacethoughts.net/2006/08/10/weekday_abbrev/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>weekday</title>
		<link>http://ifacethoughts.net/2006/08/08/weekday/</link>
		<comments>http://ifacethoughts.net/2006/08/08/weekday/#comments</comments>
		<pubDate>Tue, 08 Aug 2006 11:30:19 +0000</pubDate>
		<dc:creator>Abhijit Nadgouda</dc:creator>
				<category><![CDATA[wordpress global variables]]></category>

		<guid isPermaLink="false">http://ifacethoughts.net/2006/08/08/weekday/</guid>
		<description><![CDATA[Wordpress uses weekday global variable to access, exactly what it says, names of the weekdays. It is a one dimensional array set in the file [wordpress root folder]/wp-includes/locale.php. It stores localized values. Additional global variables like weekday_initial, weekday_abbrev, month, month_abbrev are also defined.
Wordpress uses weekday internally. Wordpress provides following functions, defined in [wordpress root folder]/wp-includes/template-general-functions.php [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Wordpress" href="http://www.wordpress.org/">Wordpress</a> uses <code>weekday</code> global variable to access, exactly what it says, names of the weekdays. It is a one dimensional array set in the file [wordpress root folder]/wp-includes/locale.php. It stores <a title="l10n global variable" href="http://ifacethoughts.net/2006/07/05/l10n/">localized</a> values. Additional global variables like <code>weekday_initial</code>, <code>weekday_abbrev</code>, <code>month</code>, <code>month_abbrev</code> are also defined.</p>
<p>Wordpress uses <code>weekday</code> internally. Wordpress provides following functions, defined in [wordpress root folder]/wp-includes/template-general-functions.php for use within the loop:</p>
<ul>
<li><a title="the_date template tag" href="http://codex.wordpress.org/Template_Tags/the_date">the_date($format=&#8217; &#8216;, $before=&#8217; &#8216;, $after=&#8217; &#8216;, $echo = true)</a>: access date details of the current post.</li>
<li><a title="the_time template tag" href="http://codex.wordpress.org/Template_Tags/the_date">the_time($format=&#8217; &#8216;)</a>: access time details of the current post.</li>
</ul>
<p>The weekday can be accessed by using the <a title="Formatting Date and Time" href="http://codex.wordpress.org/Formatting_Date_and_Time">format options specified here</a></p>
<p><a title="Wordpress Global Variables" href="http://ifacethoughts.net/2006/02/25/wordpress-global-variables/">Back</a> to full list of global variables.</p>
<p>Technorati tags: <a rel="tag" href="http://technorati.com/tag/weekday">weekday</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ifacethoughts.net/2006/08/08/weekday/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>monthnum</title>
		<link>http://ifacethoughts.net/2006/08/04/monthnum/</link>
		<comments>http://ifacethoughts.net/2006/08/04/monthnum/#comments</comments>
		<pubDate>Fri, 04 Aug 2006 05:44:54 +0000</pubDate>
		<dc:creator>Abhijit Nadgouda</dc:creator>
				<category><![CDATA[wordpress global variables]]></category>

		<guid isPermaLink="false">http://ifacethoughts.net/2006/08/04/monthnum/</guid>
		<description><![CDATA[monthnum is a Wordpress query string variable that stores the two digit month number. It can be used to retrieve archive of posts posted in a certain month, even across years. When a particular post is being displayed, it contains the month when the post was published.
Wordpress uses this global variable internally when the archives [...]]]></description>
			<content:encoded><![CDATA[<p><code>monthnum</code> is a <a title="Wordpress" href="http://www.wordpress.org/">Wordpress</a> query string variable that stores the two digit month number. It can be used to retrieve archive of posts posted in a certain month, even across years. When a particular post is being displayed, it contains the month when the post was published.</p>
<p>Wordpress uses this global variable internally when the archives are requested. Plugin and theme developers can use <code>monthnum</code> to access the month requested or for the month of the current post. Day f the current post can be accessed using <a title="day global variable" href="http://ifacethoughts.net/2006/07/31/day/">day</a>.</p>
<p><a title="Wordpress Global Variables" href="http://ifacethoughts.net/2006/02/25/wordpress-global-variables/">Back</a> to full list of global variables.</p>
<p>Technorati tags: <a rel="tag" href="http://technorati.com/tag/monthnum">monthnum</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ifacethoughts.net/2006/08/04/monthnum/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>day</title>
		<link>http://ifacethoughts.net/2006/07/31/day/</link>
		<comments>http://ifacethoughts.net/2006/07/31/day/#comments</comments>
		<pubDate>Mon, 31 Jul 2006 17:48:29 +0000</pubDate>
		<dc:creator>Abhijit Nadgouda</dc:creator>
				<category><![CDATA[wordpress global variables]]></category>

		<guid isPermaLink="false">http://ifacethoughts.net/2006/07/31/day/</guid>
		<description><![CDATA[day is a Wordpress query string variable that can used to request archive of posts published on a certain day, across months and years. day global variable stores day of the current post. It is set in the function setup_postdata($post) defined in [wordpress root folder]/wp-includes/functions.php.
Wordpress uses this global variable internally, e.g., to form the HTML [...]]]></description>
			<content:encoded><![CDATA[<p><code>day</code> is a <a>Wordpress</a> query string variable that can used to request archive of posts published on a certain day, across months and years. <code>day</code> global variable stores day of the current post. It is set in the function <code>setup_postdata($post)</code> defined in [wordpress root folder]/wp-includes/functions.php.</p>
<p>Wordpress uses this global variable internally, e.g., to form the <abbr title="HyperText Markup Language">HTML</abbr> title when any archive is requested. Plugin and theme developers can use <code>day</code> to get day of the current post.</p>
<p><a title="Wordpress Global Variables" href="http://ifacethoughts.net/2006/02/25/wordpress-global-variables/">Back</a> to full list of global variables.</p>
<p>Technorati tags: <a rel="tag" href="http://technorati.com/tag/day">day</a>, <a rel="tag" href="http://technorati.com/tag/current+post">current post</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ifacethoughts.net/2006/07/31/day/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>posts</title>
		<link>http://ifacethoughts.net/2006/07/27/posts/</link>
		<comments>http://ifacethoughts.net/2006/07/27/posts/#comments</comments>
		<pubDate>Wed, 26 Jul 2006 19:49:43 +0000</pubDate>
		<dc:creator>Abhijit Nadgouda</dc:creator>
				<category><![CDATA[wordpress global variables]]></category>

		<guid isPermaLink="false">http://ifacethoughts.net/2006/07/27/posts/</guid>
		<description><![CDATA[The global variable posts stores the results of a Wordpress query as a single dimensional array. It is set in the method register_globals() of class WP.
Plugin and theme developers can use this global variable to access results of the query outside the loop.
Back to full list of global variables.
Technorati tags: posts.
]]></description>
			<content:encoded><![CDATA[<p>The global variable <code>posts</code> stores the results of a <a title="Wordpress" href="http://www.wordpress.org/">Wordpress</a> query as a single dimensional array. It is set in the method <code>register_globals()</code> of <a title="WP" href="http://ifacethoughts.net/2006/03/02/wp/">class WP</a>.</p>
<p>Plugin and theme developers can use this global variable to access results of the query outside <a title="Wordpress Loop" href="http://codex.wordpress.org/The_Loop">the loop</a>.</p>
<p><a title="Wordpress Global Variables" href="http://ifacethoughts.net/2006/02/25/wordpress-global-variables/">Back</a> to full list of global variables.</p>
<p>Technorati tags: <a rel="tag" href="http://technorati.com/tag/posts">posts</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ifacethoughts.net/2006/07/27/posts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>more</title>
		<link>http://ifacethoughts.net/2006/07/23/more/</link>
		<comments>http://ifacethoughts.net/2006/07/23/more/#comments</comments>
		<pubDate>Sun, 23 Jul 2006 10:32:02 +0000</pubDate>
		<dc:creator>Abhijit Nadgouda</dc:creator>
				<category><![CDATA[wordpress global variables]]></category>

		<guid isPermaLink="false">http://ifacethoughts.net/2006/07/23/more/</guid>
		<description><![CDATA[A Wordpress post can be forced to have a teaser by inserting the HTML markup &#60;!-- more --&#62; after the desired teaser in the post. Wordpress then splits this into the teaser and the main content. When an explicit excerpt for a post is not specified, this teaser is used as an excerpt. more global [...]]]></description>
			<content:encoded><![CDATA[<p>A <a title="Wordpress" href="http://www.wordpress.org/">Wordpress</a> post can be <a title="Writing Posts" href="http://codex.wordpress.org/Writing_Posts#Basic_Post_Editing_Screen">forced to have a teaser</a> by inserting the HTML markup <code>&lt;!-- more --&gt;</code> after the desired teaser in the post. Wordpress then splits this into the teaser and the main content. When an explicit excerpt for a post is not specified, this teaser is used as an excerpt. <code>more</code> global variable is used to indicate whether the entire page of the post is to be displayed or only the teaser. Teasers can be included in every <a title="pages global variable" href="http://ifacethoughts.net/2006/04/27/pages/">page</a> of the post. It is set in the function <code>setup_postdata($post)</code> defined in [wordpress root folder]/wp-includes/functions.php.</p>
<p>Wordpress uses <code>more</code> global variable internally to determine whether only the teaser has to be displayed or the entire page of the post. Whether the teaser has to be displayed when the entire page of the post is displayed or not can also be specified by including the HTML markup <code>&lt;!-- noteaser --&gt;</code> in the post. Plugin and theme developers can use this global variable if a different behavior is desired.</p>
<p><a title="Wordpress Global Variables" href="http://ifacethoughts.net/2006/04/27/pages/">Back</a> to full list of global variables.</p>
<p>Technorati tags: <a rel="tag" href="http://technorati.com/tag/more">more</a>, <a rel="tag" href="http://technorati.com/tag/teaser">teaser</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ifacethoughts.net/2006/07/23/more/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>is_winIE or is_macIE</title>
		<link>http://ifacethoughts.net/2006/07/18/is_winie-or-is_macie/</link>
		<comments>http://ifacethoughts.net/2006/07/18/is_winie-or-is_macie/#comments</comments>
		<pubDate>Tue, 18 Jul 2006 07:34:41 +0000</pubDate>
		<dc:creator>Abhijit Nadgouda</dc:creator>
				<category><![CDATA[wordpress global variables]]></category>

		<guid isPermaLink="false">http://ifacethoughts.net/2006/07/18/is_winie-or-is_macie/</guid>
		<description><![CDATA[Wordpress sets is_winIE and is_macIE global variables to identify Microsoft Internet Explorer as part of browser detection in [wordpress root folder]/wp-includes/vars.php. They are set by looking for strings MSIE and Win or Mac in the HTTP_USER_AGENT server variable. It also sets another variable is_IE which is set to true if the browser is Microsoft Internet [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Wordpress" href="http://www.wordpress.org/">Wordpress</a> sets <code>is_winIE</code> and <code>is_macIE</code> global variables to identify Microsoft Internet Explorer as part of browser detection in [wordpress root folder]/wp-includes/vars.php. They are set by looking for strings <em>MSIE</em> and <em>Win</em> or <em>Mac</em> in the HTTP_USER_AGENT server variable. It also sets another variable <code>is_IE</code> which is set to true if the browser is Microsoft Internet Explorer on Microsoft Windows or Macs.</p>
<p>Along with these, it also sets the variables <code>is_lynx</code>, <code>is_gecko</code>, <code>is_opera</code> and  <code>is_NS4</code> to identify <a title="Lynx" href="http://lynx.browser.org/">Lynx</a>, <a title="Mozilla's standards based layout engine" href="http://www.mozilla.org/newlayout/">Gecko</a> based browsers, <a title="Opera browser" href="http://www.opera.com/">Opera</a> and Netscape 4.0 respectively.</p>
<p>Plugin and theme authors can use these global variables to identify browsers to handle any browser specific features.</p>
<p><a title="Wordpress Global Variables" href="http://ifacethoughts.net/2006/02/25/wordpress-global-variables/">Back</a> to full list of global variables.</p>
<p>Technorati tags: <a rel="tag" href="http://technorati.com/tag/browser+detection">browser detection</a>, <a rel="tag" href="http://technorati.com/tag/is_winIE">is_winIE</a>, <a rel="tag" href="http://technorati.com/tag/is_macIE">is_macIE</a>, <a rel="tag" href="http://technorati.com/tag/is_IE">is_IE</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ifacethoughts.net/2006/07/18/is_winie-or-is_macie/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>max_num_pages</title>
		<link>http://ifacethoughts.net/2006/07/16/max_num_pages/</link>
		<comments>http://ifacethoughts.net/2006/07/16/max_num_pages/#comments</comments>
		<pubDate>Sun, 16 Jul 2006 07:00:19 +0000</pubDate>
		<dc:creator>Abhijit Nadgouda</dc:creator>
				<category><![CDATA[wordpress global variables]]></category>

		<guid isPermaLink="false">http://ifacethoughts.net/2006/07/16/max_num_pages/</guid>
		<description><![CDATA[max_num_pages represents the number of pages when any Wordpress archive is displayed. It is set using the posts_per_page global variable. It is calculated and set in the functions next_posts_link($label=&#8217;Next Page Â»&#8217;, $max_page = 0) and posts_nav_link($sep=&#8217; â€” &#8216;, $prelabel=&#8217;Â« Previous Page&#8217;, $nxtlabel=&#8217;Next Page Â»&#8217;) defined in [wordpress root folder]/wp-includes/template-functions-links.php.
Wordpress uses this global variable internally to [...]]]></description>
			<content:encoded><![CDATA[<p><code>max_num_pages</code> represents the number of pages when any <a title="Wordpress" href="http://www.wordpress.org/">Wordpress</a> archive is displayed. It is set using the <a>posts_per_page</a> global variable. It is calculated and set in the functions <a title="paged global variable" href="http://ifacethoughts.net/2006/04/01/paged/">next_posts_link($label=&#8217;Next Page Â»&#8217;, $max_page = 0) and posts_nav_link($sep=&#8217; â€” &#8216;, $prelabel=&#8217;Â« Previous Page&#8217;, $nxtlabel=&#8217;Next Page Â»&#8217;)</a> defined in [wordpress root folder]/wp-includes/template-functions-links.php.</p>
<p>Wordpress uses this global variable internally to create the next and previous links for navigation in an archive. Plugin and theme authors need not access this global variable directly.</p>
<p><a title="Wordpress Global Variables" href="http://ifacethoughts.net/2006/02/25/wordpress-global-variables/">Back</a> to full list of global variables.</p>
<p>Technorati tags: <a rel="tag" href="http://technorati.com/tag/max_num_pages">max_num_pages</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ifacethoughts.net/2006/07/16/max_num_pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>posts_per_page</title>
		<link>http://ifacethoughts.net/2006/07/11/posts_per_page/</link>
		<comments>http://ifacethoughts.net/2006/07/11/posts_per_page/#comments</comments>
		<pubDate>Tue, 11 Jul 2006 08:46:58 +0000</pubDate>
		<dc:creator>Abhijit Nadgouda</dc:creator>
				<category><![CDATA[wordpress global variables]]></category>

		<guid isPermaLink="false">http://ifacethoughts.net/2006/07/11/posts_per_page/</guid>
		<description><![CDATA[Wordpress allows configuration for setting the number of posts to be displayed whenever an index archive (the typical homepage) or other archives like category or monthly archives are displayed. This option can be configured in the Blog Pages field Reading tab under Options menu in the administration User Interface. Note that there is a separate [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Wordpress" href="http://www.wordpress.org/">Wordpress</a> allows configuration for setting the number of posts to be displayed whenever an index archive (the typical homepage) or other archives like category or monthly archives are displayed. This option can be configured in the Blog Pages field Reading tab under Options menu in the administration User Interface. Note that there is a separate field for configuration number of posts to be displayed for syndication (feeds).</p>
<p><code>posts_per_page</code> is set in the method <code>get_posts</code> of <a title="wp_query global variable" href="http://ifacethoughts.net/2006/02/25/wp_query/">WP_Query</a>.</p>
<p>Plugin and theme authors need not access this global variable directly. Wordpress uses it internally to calculate the number of posts to be displayed.</p>
<p>Since the same setting is used for all archives <a title="Matt's Googly Site" href="http://mattread.com/">Matt Read</a> has developed a <a title="Custom Query String Plugin" href="http://mattread.com/projects/wp-plugins/custom-query-string-plugin/">plugin</a> where posts per page setting can be set for different types of archives, e.g., search, category, home, monthly, yearly, etc.</p>
<p><a title="Wordpress Global Variables" href="http://ifacethoughts.net/2006/02/25/wordpress-global-variables/">Back</a> to full list of global variables.</p>
<p>Technorati tags: <a rel="tag" href="http://technorati.com/tag/posts_per_page">posts_per_page</a>, <a rel="tag" href="http://technorati.com/tag/archives">archives</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ifacethoughts.net/2006/07/11/posts_per_page/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
