<?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>Jes.Gs v2.0 &#187; Wordpress Resources</title>
	<atom:link href="http://www.jes.gs/tag/wordpress-resources/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jes.gs</link>
	<description>The Portfolio and Blog of Minneapolis Web Designer Jessica C. Green</description>
	<lastBuildDate>Sat, 21 Jan 2012 19:56:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>WordPress: Using page_css_class</title>
		<link>http://www.jes.gs/php/wordpress-page-css-class/</link>
		<comments>http://www.jes.gs/php/wordpress-page-css-class/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 04:30:58 +0000</pubDate>
		<dc:creator>Jess G.</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Recommended]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Wordpress Resources]]></category>

		<guid isPermaLink="false">http://dumpster-fairy.com/?p=575</guid>
		<description><![CDATA[How to use WordPress hooks to change the pagenav class from page-item-# to page-item-pagename.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m pretty sure that I&#8217;m not the only person who is somewhat annoyed by the way WordPress handles the page-item classes for Page lists. Particularly if you&#8217;re like me and you use WordPress as a CMS. It would be a lot easier to deal with <code>page-item-pagename</code> than <code>page-item-1</code>. For one, <code>page-item-pagename</code> is easier to remember. Well, I bet you didn&#8217;t know that you can change that! Yep, that&#8217;s right. You can, and it&#8217;s all because of a relatively unknown hook that was introduced in WordPress 2.8 called <code>page_css_class</code>, and here is very quick and dirty way of changing the page item classes to match the pagename and <em>not</em> the page ID.</p>
<ol>
<li>Open or create a functions.php file in your theme directory.</li>
<li>Then paste the code below into your functions.php file:</li>
</ol>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'page_css_class'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'custom_page_css_class'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">10</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009933; font-style: italic;">/**
 *	custom_page_css_class()
 *	Hooks into page_css_class and modifies the page item class so that
 *	it uses the name of the page instead of the id.
 *
 *	@global int $id.		The ID of the page being viewed. Needed to set current_page_item.
 *	@param array $class.	The page css class being modified, passed as an array from Walker_Page
 *	@param object $page.	The page object passed from Walker_Page
 *	@return array			Returns the new page css class.
 */</span>
<span style="color: #000000; font-weight: bold;">function</span> custom_page_css_class<span style="color: #009900;">&#40;</span><span style="color: #000088;">$class</span><span style="color: #339933;">,</span> <span style="color: #000088;">$page</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$id</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$page</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$id</span><span style="color: #009900;">&#41;</span>
		<span style="color: #666666; font-style: italic;">/* checks if the page ID matches the current page and if it does,
		    adds the current_page_item class
		*/</span>
		<span style="color: #000088;">$t</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'page_item'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'page-item-'</span><span style="color: #339933;">.</span><span style="color: #000088;">$page</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_name</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'current_page_item'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">else</span>
		<span style="color: #000088;">$t</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'page_item'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'page-item-'</span><span style="color: #339933;">.</span><span style="color: #000088;">$page</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_name</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">return</span> <span style="color: #000088;">$t</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>There you go! Yes, it&#8217;s that easy.</p>
<p>What the example does is it duplicates what&#8217;s happening in the WordPress source code but instead of using $page->ID, it&#8217;s using $page->post_name. It assembles the classes into an array and then returns it to be echo-ed out when the pagenav is generated. Note that $class isn&#8217;t used but it is necessary to have it as one of the parameters because WordPress passes it to the hook by default and we need the $page object in order to make the example work.</p>
<p>Happy coding!</p>
<ul>
<li><a href="http://adambrown.info/p/wp_hooks/hook/page_css_class" rel="external">WordPress hook directory page_css_class</a></li>
<li><a href="http://svn.automattic.com/wordpress/tags/2.9/wp-includes/classes.php" rel="external">WordPress Classes.php Source Reference</a></li>
<li><a href="http://wordpress.org/support/topic/243523" rel="external">WordPress Support: Add Link with Class to Page Menu</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.jes.gs/php/wordpress-page-css-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Plugin: YaECP</title>
		<link>http://www.jes.gs/htmlcss/wordpress-plugin-yaecp/</link>
		<comments>http://www.jes.gs/htmlcss/wordpress-plugin-yaecp/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 01:50:21 +0000</pubDate>
		<dc:creator>Jess G.</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[Updates]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Wordpress Resources]]></category>
		<category><![CDATA[yaecp]]></category>

		<guid isPermaLink="false">http://dumpster-fairy.com/?p=300</guid>
		<description><![CDATA[Which stands for &#8220;Yet Another Exclude-Cats Plugin.&#8221; Fairly easy to use, just follow these basic steps: Just unzip into your WordPress plugins directory Open the WordPress plugins page Activate the ]]></description>
			<content:encoded><![CDATA[<p>Which stands for &#8220;Yet Another Exclude-Cats Plugin.&#8221; Fairly easy to use, just follow these basic steps:</p>
<ol>
<li>Just unzip into your WordPress plugins directory</li>
<li>Open the WordPress plugins page</li>
<li>Activate the YaECP plugin</li>
<li>Look for the new page called &#8220;Exclude Categories&#8221; in the Posts section.</li>
<li>Finally, select which categories you wish to exclude from the front page.</li>
</ol>
<p>I whipped this plugin up on the spur-of-the-moment to deal with some issues that I found in the beta version of <a href="http://manga-press.silent-shadow.net">Manga+Press 2.5</a> having to do with it&#8217;s new exclude comic categories from the front page option. Apparently, if you want to exclude another category as well as the comic category, you can&#8217;t call <code>query_posts()</code> again because it will reset the <a href="http://manga-press.silent-shadow.net">Manga+Press</a> query.</p>
<p>The plugin was tested on WordPress 2.8 so I&#8217;m not so sure how it&#8217;ll work with versions older than 2.8. I am also not so sure how the plugin will work with specialized themes that have multiple loops, such as magazine-style WordPress themes. Either way, hope someone gets some use out of it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jes.gs/htmlcss/wordpress-plugin-yaecp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updates, life, releases, other stuff</title>
		<link>http://www.jes.gs/general/updates-life-releases-other-stuff/</link>
		<comments>http://www.jes.gs/general/updates-life-releases-other-stuff/#comments</comments>
		<pubDate>Mon, 04 May 2009 18:35:36 +0000</pubDate>
		<dc:creator>Jess G.</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Updates]]></category>
		<category><![CDATA[freebies]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Wordpress Resources]]></category>

		<guid isPermaLink="false">http://dumpster-fairy.com/?p=259</guid>
		<description><![CDATA[New projects, news and updates.]]></description>
			<content:encoded><![CDATA[<p>Busy, hectic, tiring, exciting, fun, etc. That describes my life during the first five months of 2009 perfectly. Anyway, the beta version of <a href="http://manga-press.silent-shadow.net/">Manga+Press</a> 2.0 has been released, actually was released about a month back and due to school, road test (I passed xD), and a bout of spring hay fever, I forgot to announce it here. I&#8217;ve been working on a few other things besides Manga+Press, though. <span id="more-259"></span>Well, I have been working on Manga+Press; I&#8217;ve received one bug report that oddly enough, I can&#8217;t seem to reproduce either on the server or in my local developer environment. The only thing I can chalk that up to is user-error. The other news about Manga+Press is I&#8217;ve started working on a standalone version. I can&#8217;t even begin to tell you when it will be released because I only really work on it when I have the time and lately, that is something I really haven&#8217;t had much of.</p>
<p>Freebies. I&#8217;ve been working on a set of scrap book-influenced freebies that contain some of the design elements that have gone into my current Dumpster-fairy.com layout. I really don&#8217;t have a set release date for the set, though I&#8217;m quietly gunning for a June release. While I&#8217;m on that subject, I am also working on a free WordPress theme. I&#8217;m looking at a July release for the WordPress theme; it still has to be cut up from Photoshop and the theme has to be coded.</p>
<p>Finally, I&#8217;ve been thinking about selling my design skills. I feel that I&#8217;m pretty good at what I do and I could use both the money and the experience since I am set to graduate next June. I also have a few other commercial ventures planned that will probably start in the next few months. I don&#8217;t want to say what just  yet, though <img src='http://www.jes.gs/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Till next time!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jes.gs/general/updates-life-releases-other-stuff/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Manga+Press News &amp; Updates</title>
		<link>http://www.jes.gs/general/mangapress-news-updates/</link>
		<comments>http://www.jes.gs/general/mangapress-news-updates/#comments</comments>
		<pubDate>Sun, 29 Mar 2009 02:31:41 +0000</pubDate>
		<dc:creator>Jess G.</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[mangapress]]></category>
		<category><![CDATA[Wordpress Resources]]></category>

		<guid isPermaLink="false">http://dumpster-fairy.com/?p=253</guid>
		<description><![CDATA[Manga+Press 2.0 beta is getting set to roll out sometime this week. A number of changes have been made to Manga+Press, namely the way Manga+Press uploads the comic pages. However, ]]></description>
			<content:encoded><![CDATA[<p><a href="http://manga-press.silent-shadow.net/">Manga+Press 2.0 beta</a> is getting set to roll out sometime this week. A number of changes have been made to Manga+Press, namely the way Manga+Press uploads the comic pages. However, before users can upgrade, one of the files in the current release branch needs to be patched first. <span id="more-253"></span></p>
<p>The reason is the hook that is called when Manga+Press is deactivated. The hook deletes all of the options and the two tables Manga+Press uses to keep track of comic posts. Since the proper way of upgrading a plugin usually involves deactivation and deletion of the files, this could be a problem for some users. <em>However</em>, I went ahead and tested the deactivation procedure on the server and&#8230;nothing happened. So either there is a bug in 2.7 (fortunate in this case) or the hook in question is no longer being used. Either way, I suggest either downloading the patch I&#8217;ve provided or backing up your database; the latter always being a wise choice whenever you&#8217;re upgrading a plugin, of course.</p>
<p>Manga+Press: <a href="http://manga-press.silent-shadow.net/">http://manga-press.silent-shadow.net/</a><br />
Download Patch: <a href="http://manga-press.silent-shadow.net/wp-content/uploads/2009/03/mangapress_patch.zip">mangapress patch</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jes.gs/general/mangapress-news-updates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Manga+Press 1.0 RC2.5, bug-fix version</title>
		<link>http://www.jes.gs/general/mangapress-10-rc25-bug-fix-version/</link>
		<comments>http://www.jes.gs/general/mangapress-10-rc25-bug-fix-version/#comments</comments>
		<pubDate>Wed, 31 Dec 2008 05:56:47 +0000</pubDate>
		<dc:creator>Jess G.</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Updates]]></category>
		<category><![CDATA[mangapress]]></category>
		<category><![CDATA[Wordpress Resources]]></category>

		<guid isPermaLink="false">http://dumpster-fairy.com/?p=172</guid>
		<description><![CDATA[Manga+Press 1.0 RC2.5, bug-fix involving permissions set on directories created by Manga+Press to store comics.]]></description>
			<content:encoded><![CDATA[<p>RC2.5 bugfixes inside.<span id="more-172"></span>Yeah, another RC release. This time, it&#8217;s because I caught a fairly major bug with the directory-creation process when Manga+Press uploads a new comic page. Permissions aren&#8217;t being set correctly so if you do something like try to delete the files through FTP or an online file-manager (like cPanel&#8217;s File Manager), it&#8217;ll give you a rather ominous &#8220;permission denied&#8221; error. Fortunately, the fix is fairly simple—that is, if your web host allows this.</p>
<p>Create a PHP file and name it&#8230;something&#8230;<code>test.php</code>&#8230;whatever, doesn&#8217;t matter as long as you can remember what it is <img src='http://www.jes.gs/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  Insert the following lines of code into your file:</p>
<p>Upload the file to your wp-content/uploads directory and then open it in your browser. The filename part may or may not be necessary; I tried it both ways and it seemed to work when I added the name of a file that was <em>inside</em> the directory I was trying to change. Try it without the file name first, and if you get an error; add the name of a file inside the directory and if you <em>still</em> get an error then try changing the permissions on the <code>test.php</code> file itself to <code>777</code> or <code>755</code>. If you&#8217;re <em>still</em> getting errors, then it&#8217;s time to contact your web host and have them set the correct permissions on the folders in question.</p>
<p>At this point, what I want is feedback from anyone who has downloaded and is using the plugin in question. If you&#8217;ve run into errors, I&#8217;d like to know about it. If you send me a bug report, be sure to include the following:</p>
<ul>
<li>WordPress version (very important)</li>
<li>Plugins installed (also very <em>very</em> important)</li>
<li>Screenshots of the possible bug in question</li>
<li>and, if you have access to this: Web server configuration info
<ul>
<li>Server version and config info</li>
<li>PHP version and config info</li>
<li>MySQL version and config info</li>
</ul>
</li>
</ul>
<p>Look for my email address in the readme.txt file that comes with the plugin. Sorry, but I really don&#8217;t want to give spam-bots a chance to harvest my email address. You can use the contact form here if you like but you won&#8217;t be able to send screen-shots.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jes.gs/general/mangapress-10-rc25-bug-fix-version/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Manga+Press 1.0RC2 Released!</title>
		<link>http://www.jes.gs/general/mangapress-10rc2-released/</link>
		<comments>http://www.jes.gs/general/mangapress-10rc2-released/#comments</comments>
		<pubDate>Mon, 29 Dec 2008 23:19:07 +0000</pubDate>
		<dc:creator>Jess G.</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Updates]]></category>
		<category><![CDATA[mangapress]]></category>
		<category><![CDATA[Wordpress Resources]]></category>

		<guid isPermaLink="false">http://dumpster-fairy.com/?p=167</guid>
		<description><![CDATA[New release, bug fixes and minor code corrections.]]></description>
			<content:encoded><![CDATA[<p>First off, if you&#8217;re getting the &#8220;new version&#8221; prompt, ignore the link because it doesn&#8217;t work. It was something that I overlooked when I released the first version about a week back; that&#8217;s one of the things that has been corrected in RC2. You can download the new version <a href="http://manga-press.silent-shadow.net/downloads/">here</a> or <a href="http://wordpress.org/extend/plugins/mangapress/">here</a>. Most of the corrections that I&#8217;ve done were fairly minor, and had more to do with XHTML Strict validation than with actual functionality. I noticed that my &#8220;Latest Comic&#8221; page would come up as invalid whenever I sent it through W3C&#8217;s XHTML validator. I traced the problem to the way Manga+Press handles the &lt;img&gt; tag. Honestly, that was a result of an older, unreleased version that I&#8217;ve been using for a few months, but it also made me look at the code and make a few corrections. I <em>also </em>added the correction for the RSS cache bug that&#8217;s present in WordPress 2.7.</p>
<p>Enjoy, and Happy New Year!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jes.gs/general/mangapress-10rc2-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Manga+Press Status</title>
		<link>http://www.jes.gs/general/mangapress-status/</link>
		<comments>http://www.jes.gs/general/mangapress-status/#comments</comments>
		<pubDate>Sun, 14 Dec 2008 20:01:21 +0000</pubDate>
		<dc:creator>Jess G.</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[mangapress]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Wordpress Resources]]></category>

		<guid isPermaLink="false">http://dumpster-fairy.com/?p=164</guid>
		<description><![CDATA[Status on Manga+Press release &#8230;]]></description>
			<content:encoded><![CDATA[<p>A little status update on Manga+Press 1.0 RC1. I&#8217;ve been shaking out bugs and reworking some of the code. I hope to have it out for release sometime next week, followed by a &#8220;skeleton&#8221; WordPress theme that works with the plugin. Right now, I&#8217;m testing Manga+Press out using a modified version of the Kubrik theme that comes with WordPress.</p>
<p>I&#8217;m aiming for a Friday release, so check back for more info!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jes.gs/general/mangapress-status/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

