<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Amado Martinez</title>
	<atom:link href="http://www.projectivemotion.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.projectivemotion.com</link>
	<description>coding websites and other cool things.</description>
	<lastBuildDate>Wed, 04 Jan 2012 07:11:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>Comment on Better wordpress custom post types using a base php class. by amado</title>
		<link>http://www.projectivemotion.com/2011/10/13/wordpress-custom-post-types-php-class/#comment-428</link>
		<dc:creator>amado</dc:creator>
		<pubDate>Wed, 04 Jan 2012 07:11:44 +0000</pubDate>
		<guid isPermaLink="false">http://projectivemotion.com/?p=145#comment-428</guid>
		<description>If you meant accessing the custom field in the front end, then I do have a solution for that using a different class, but it&#039;s a bit more intricate and involves hooking the sql for getting the custom values in one query. I think I should write a post about it one of these days.</description>
		<content:encoded><![CDATA[<p>If you meant accessing the custom field in the front end, then I do have a solution for that using a different class, but it&#8217;s a bit more intricate and involves hooking the sql for getting the custom values in one query. I think I should write a post about it one of these days.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Better wordpress custom post types using a base php class. by amado</title>
		<link>http://www.projectivemotion.com/2011/10/13/wordpress-custom-post-types-php-class/#comment-427</link>
		<dc:creator>amado</dc:creator>
		<pubDate>Wed, 04 Jan 2012 07:05:33 +0000</pubDate>
		<guid isPermaLink="false">http://projectivemotion.com/?p=145#comment-427</guid>
		<description>Hi. I don&#039;t access the custom fields directly in the class, what I normally do is in the meta box functions (example: clientInfoBox) is:
&lt;code&gt;
$metainfo = get_post_meta($post-&gt;ID, &#039;courseinfo&#039;, true);&lt;/code&gt;
		
which gives me an array of the &#039;courseinfo&#039; custom field.

for saving the custom data, it&#039;s a little more advanced,  you have to add a hook within the register method for the post_save action:
&lt;code&gt;
add_action(&#039;save_post&#039;, array($this, &#039;onSavePost&#039;));&lt;/code&gt;

then you have to add an onSavePost function to your class so that it saves the custom data for you.

&lt;code&gt;
function onSavePost($post_id)
{
		if(empty($_POST) &#124;&#124; $_POST[&#039;post_type&#039;] != $this-&gt;posttype &#124;&#124; wp_is_post_revision($post_id) !== false) return;
		

		update_post_meta($post_id, &#039;courseinfo&#039;, $_POST[&#039;courseinfo&#039;]);
}&lt;/code&gt;

that way you could name your custom field inputs inside the metabox method something like:
&lt;code&gt;
&lt; input type=&quot;textbox&quot; name=&quot;courseinfo[data1]&quot; value=&quot;&lt;?php echo esc_attr($metainfo[&#039;data1&#039;]); ?&gt;&quot; / &gt;&lt;/code&gt;

which will display data gathered from get_post_meta.</description>
		<content:encoded><![CDATA[<p>Hi. I don&#8217;t access the custom fields directly in the class, what I normally do is in the meta box functions (example: clientInfoBox) is:<br />
<code><br />
$metainfo = get_post_meta($post->ID, 'courseinfo', true);</code></p>
<p>which gives me an array of the &#8216;courseinfo&#8217; custom field.</p>
<p>for saving the custom data, it&#8217;s a little more advanced,  you have to add a hook within the register method for the post_save action:<br />
<code><br />
add_action('save_post', array($this, 'onSavePost'));</code></p>
<p>then you have to add an onSavePost function to your class so that it saves the custom data for you.</p>
<p><code><br />
function onSavePost($post_id)<br />
{<br />
		if(empty($_POST) || $_POST['post_type'] != $this->posttype || wp_is_post_revision($post_id) !== false) return;</p>
<p>		update_post_meta($post_id, 'courseinfo', $_POST['courseinfo']);<br />
}</code></p>
<p>that way you could name your custom field inputs inside the metabox method something like:<br />
<code><br />
< input type="textbox" name="courseinfo[data1]" value="<?php echo esc_attr($metainfo['data1']); ?>" / ></code></p>
<p>which will display data gathered from get_post_meta.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Hello Linux &#8220;Lisa&#8221; Mint 12, Bye-Bye Windows 7! by amado</title>
		<link>http://www.projectivemotion.com/2011/12/06/linux-mint-12-bye-bye-windows-7/#comment-426</link>
		<dc:creator>amado</dc:creator>
		<pubDate>Wed, 04 Jan 2012 06:48:10 +0000</pubDate>
		<guid isPermaLink="false">http://projectivemotion.com/?p=165#comment-426</guid>
		<description>Xubuntu uses XFCE which is the desktop manager that I&#039;m using right now with linux mint. I love its simplicity and speed. It&#039;s very fast compared to KDE and Gnome which are more resource heavy.  It feels a lot like windows - depending on your configuration. I suggest that you don&#039;t remove windows completely because you might need it in case of an emergency. I still have windows 7 installed but I only use it to play games. The great thing about linux is that you can customize it in many ways. If you&#039;re not happy with your xfce desktop you can always download kde or gnome or one of the many other desktop environments on top of your xubuntu installation.</description>
		<content:encoded><![CDATA[<p>Xubuntu uses XFCE which is the desktop manager that I&#8217;m using right now with linux mint. I love its simplicity and speed. It&#8217;s very fast compared to KDE and Gnome which are more resource heavy.  It feels a lot like windows &#8211; depending on your configuration. I suggest that you don&#8217;t remove windows completely because you might need it in case of an emergency. I still have windows 7 installed but I only use it to play games. The great thing about linux is that you can customize it in many ways. If you&#8217;re not happy with your xfce desktop you can always download kde or gnome or one of the many other desktop environments on top of your xubuntu installation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Hello Linux &#8220;Lisa&#8221; Mint 12, Bye-Bye Windows 7! by cipricus</title>
		<link>http://www.projectivemotion.com/2011/12/06/linux-mint-12-bye-bye-windows-7/#comment-417</link>
		<dc:creator>cipricus</dc:creator>
		<pubDate>Tue, 03 Jan 2012 13:48:22 +0000</pubDate>
		<guid isPermaLink="false">http://projectivemotion.com/?p=165#comment-417</guid>
		<description>Hello, I just said bye bye to Windows myself but just installed Xubuntu with Wubi for the moment, and it seems I will soon remove Win completely. I took Xubuntu because it said it needed the least amount of  hardware resources. What do you think about it? I would appreciate a response. It seems to me that all the other new Linux brothers and sisters are said to be heavy on resources, closer to Vista etc.</description>
		<content:encoded><![CDATA[<p>Hello, I just said bye bye to Windows myself but just installed Xubuntu with Wubi for the moment, and it seems I will soon remove Win completely. I took Xubuntu because it said it needed the least amount of  hardware resources. What do you think about it? I would appreciate a response. It seems to me that all the other new Linux brothers and sisters are said to be heavy on resources, closer to Vista etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Better wordpress custom post types using a base php class. by deryk</title>
		<link>http://www.projectivemotion.com/2011/10/13/wordpress-custom-post-types-php-class/#comment-398</link>
		<dc:creator>deryk</dc:creator>
		<pubDate>Sun, 01 Jan 2012 20:04:28 +0000</pubDate>
		<guid isPermaLink="false">http://projectivemotion.com/?p=145#comment-398</guid>
		<description>Thanks for the article. Do you use the classes for displaying custom post meta data. For example echo $customer-&gt;custom_field() ?</description>
		<content:encoded><![CDATA[<p>Thanks for the article. Do you use the classes for displaying custom post meta data. For example echo $customer-&gt;custom_field() ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WordPress (always) redirect to homepage after logout. by amado</title>
		<link>http://www.projectivemotion.com/2011/07/27/wordpress-always-redirect-to-homepage-after-logout/#comment-217</link>
		<dc:creator>amado</dc:creator>
		<pubDate>Fri, 16 Dec 2011 17:09:57 +0000</pubDate>
		<guid isPermaLink="false">http://projectivemotion.com/?p=119#comment-217</guid>
		<description>Hi Martin. I know this is a bit late but I published a post regarding redirection after invalid login. Check it out http://projectivemotion.com/2011/12/16/redirect-failed-login-attempt-wordpress/

Hope you&#039;re enjoying the weather wherever you are ! lol</description>
		<content:encoded><![CDATA[<p>Hi Martin. I know this is a bit late but I published a post regarding redirection after invalid login. Check it out <a href="http://projectivemotion.com/2011/12/16/redirect-failed-login-attempt-wordpress/" rel="nofollow">http://projectivemotion.com/2011/12/16/redirect-failed-login-attempt-wordpress/</a></p>
<p>Hope you&#8217;re enjoying the weather wherever you are ! lol</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Replacing the WordPress Dashboard with your own plugin page. by amado</title>
		<link>http://www.projectivemotion.com/2011/04/23/replacing-the-wordpress-dashboard-with-your-own-plugin-page/#comment-216</link>
		<dc:creator>amado</dc:creator>
		<pubDate>Fri, 16 Dec 2011 15:04:10 +0000</pubDate>
		<guid isPermaLink="false">http://projectivemotion.com/?p=93#comment-216</guid>
		<description>Hi Jatin, Sorry, for some reason the code formatting got jumbled up. just remove the &amp;... amp; stuff and it should work fine. On another note, I have found a better method for replacing the dashboard. I will post it here soon. Thanks for the heads up!</description>
		<content:encoded><![CDATA[<p>Hi Jatin, Sorry, for some reason the code formatting got jumbled up. just remove the &amp;&#8230; amp; stuff and it should work fine. On another note, I have found a better method for replacing the dashboard. I will post it here soon. Thanks for the heads up!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Replacing the WordPress Dashboard with your own plugin page. by Jatin Soni</title>
		<link>http://www.projectivemotion.com/2011/04/23/replacing-the-wordpress-dashboard-with-your-own-plugin-page/#comment-208</link>
		<dc:creator>Jatin Soni</dc:creator>
		<pubDate>Mon, 12 Dec 2011 18:17:55 +0000</pubDate>
		<guid isPermaLink="false">http://projectivemotion.com/?p=93#comment-208</guid>
		<description>Getting syntax error in this code

&#039;function my_plugin_admin_init(){
        if(current_user_can(&#039;plugin_user_role&#039;) &amp;amp;amp;&amp;amp;amp; $pagenow == &#039;index.php&#039; &amp;amp;amp;&amp;amp;amp; empty($_GET[&#039;page&#039;]))
        {
            wp_redirect(admin_url(&#039;admin.php?page=manage-applications&#039;));
            exit;
        }
}
add_action(&#039;admin_init&#039;, &#039;my_plugin_admin_init&#039;);&#039;</description>
		<content:encoded><![CDATA[<p>Getting syntax error in this code</p>
<p>&#8216;function my_plugin_admin_init(){<br />
        if(current_user_can(&#8216;plugin_user_role&#8217;) &amp;amp;amp;amp;&amp;amp;amp;amp; $pagenow == &#8216;index.php&#8217; &amp;amp;amp;amp;&amp;amp;amp;amp; empty($_GET['page']))<br />
        {<br />
            wp_redirect(admin_url(&#8216;admin.php?page=manage-applications&#8217;));<br />
            exit;<br />
        }<br />
}<br />
add_action(&#8216;admin_init&#8217;, &#8216;my_plugin_admin_init&#8217;);&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WordPress (always) redirect to homepage after logout. by Martin</title>
		<link>http://www.projectivemotion.com/2011/07/27/wordpress-always-redirect-to-homepage-after-logout/#comment-186</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Sun, 20 Nov 2011 22:54:51 +0000</pubDate>
		<guid isPermaLink="false">http://projectivemotion.com/?p=119#comment-186</guid>
		<description>Hi, your piece of code was working good. 
HOW ABOUT WRONG LOGIN CREDENTIALS?
Do you also have a code that redirect to a page and give a message?

Hope to be in Mexico next month. To cold here in Europe!</description>
		<content:encoded><![CDATA[<p>Hi, your piece of code was working good.<br />
HOW ABOUT WRONG LOGIN CREDENTIALS?<br />
Do you also have a code that redirect to a page and give a message?</p>
<p>Hope to be in Mexico next month. To cold here in Europe!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on WordPress (always) redirect to homepage after logout. by amado</title>
		<link>http://www.projectivemotion.com/2011/07/27/wordpress-always-redirect-to-homepage-after-logout/#comment-184</link>
		<dc:creator>amado</dc:creator>
		<pubDate>Fri, 18 Nov 2011 16:35:50 +0000</pubDate>
		<guid isPermaLink="false">http://projectivemotion.com/?p=119#comment-184</guid>
		<description>Hi. It&#039;s not normally recommended to edit the wordpress include files directly because they can cause problems but more importantly because any time that you choose to update your installation there is a chance that your modification will be rewritten by any new code changes in the wordpress update. It&#039;s better to use the functions.php file of your theme or create a custom plugin.</description>
		<content:encoded><![CDATA[<p>Hi. It&#8217;s not normally recommended to edit the wordpress include files directly because they can cause problems but more importantly because any time that you choose to update your installation there is a chance that your modification will be rewritten by any new code changes in the wordpress update. It&#8217;s better to use the functions.php file of your theme or create a custom plugin.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

