<?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/"
xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
xmlns:rawvoice="http://www.rawvoice.com/rawvoiceRssModule/"
> <channel><title>jappler.com &#187; pagenow</title> <atom:link href="http://jappler.com/blog/archive/tag/pagenow/feed" rel="self" type="application/rss+xml" /><link>http://jappler.com</link> <description>random and opinionated thoughts by Jennifer Zelazny</description> <lastBuildDate>Fri, 10 Feb 2012 15:25:47 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator><itunes:summary>random and opinionated thoughts by Jennifer Zelazny</itunes:summary> <itunes:author>jappler.com</itunes:author> <itunes:explicit>no</itunes:explicit> <itunes:image href="http://jappler.com/wp-content/plugins/powerpress/itunes_default.jpg" /> <itunes:subtitle>random and opinionated thoughts by Jennifer Zelazny</itunes:subtitle> <image><title>jappler.com &#187; pagenow</title> <url>http://jappler.com/wp-content/plugins/powerpress/rss_default.jpg</url><link>http://jappler.com</link> </image> <item><title>WordPress Wednesdays: Get the Current Page</title><link>http://jappler.com/blog/archive/2009/07/22/wordpress-wednesdays-get-the-current-page</link> <comments>http://jappler.com/blog/archive/2009/07/22/wordpress-wednesdays-get-the-current-page#comments</comments> <pubDate>Wed, 22 Jul 2009 14:51:02 +0000</pubDate> <dc:creator>Jen</dc:creator> <category><![CDATA[Web Development]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[pagenow]]></category> <guid
isPermaLink="false">http://www.jappler.com/?p=1540</guid> <description><![CDATA[I was writing some functions that are used in the admin for my commercial WordPress theme: Lucidity and stumbled upon a great variable in WordPress: $pagenow. This variable will return the current page you are on and is great form admin functions &#8211; especially those that you want to only make available on certain pages. To use this &#8211; just add it to your functions as a global variable, then you can use it to... <a
href="http://jappler.com/blog/archive/2009/07/22/wordpress-wednesdays-get-the-current-page">Read More &#187;</a>]]></description> <content:encoded><![CDATA[<p>I was writing some functions that are used in the admin for my commercial  WordPress theme: <a
href="http://themes.sandboxdev.com/lucidity">Lucidity</a> and stumbled upon a great variable in WordPress: $pagenow. This variable will return the current page you are on and is great form admin functions &#8211; especially those that you want to only make available on certain pages.</p><p>To use this &#8211; just add it to your functions as a global variable, then you can use it to load in specific js/functions:</p><pre class="brush: php; title: ; notranslate">
global $pagenow;
if (($pagenow == 'admin.php') &amp;amp;&amp;amp; ($_GET['page'] == 'sdac_appearance')) {}
</pre><p>This proved to be very helpful when dealing with some finicky JS.</p> ]]></content:encoded> <wfw:commentRss>http://jappler.com/blog/archive/2009/07/22/wordpress-wednesdays-get-the-current-page/feed</wfw:commentRss> <slash:comments>3</slash:comments> </item> </channel> </rss>
