<?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 on: WPAlchemy MetaBox: Data Storage Modes	</title>
	<atom:link href="https://www.farinspace.com/wpalchemy-metabox-data-storage-modes/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.farinspace.com/wpalchemy-metabox-data-storage-modes/</link>
	<description>Practical Real World Web Development</description>
	<lastBuildDate>Wed, 30 Sep 2015 19:27:18 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>
	<item>
		<title>
		By: Dimas		</title>
		<link>https://www.farinspace.com/wpalchemy-metabox-data-storage-modes/#comment-37620</link>

		<dc:creator><![CDATA[Dimas]]></dc:creator>
		<pubDate>Fri, 03 Jul 2015 17:31:32 +0000</pubDate>
		<guid isPermaLink="false">http://farinspace.com/?p=1008#comment-37620</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.farinspace.com/wpalchemy-metabox-data-storage-modes/#comment-37619&quot;&gt;Joseph&lt;/a&gt;.

Have a look at &lt;a href=&quot;http://www.farinspace.com/wpalchemy-metabox/#template&quot; rel=&quot;nofollow&quot;&gt;Using The Meta Box Values In Your Template&lt;/a&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.farinspace.com/wpalchemy-metabox-data-storage-modes/#comment-37619">Joseph</a>.</p>
<p>Have a look at <a href="http://www.farinspace.com/wpalchemy-metabox/#template" rel="nofollow">Using The Meta Box Values In Your Template</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Joseph		</title>
		<link>https://www.farinspace.com/wpalchemy-metabox-data-storage-modes/#comment-37619</link>

		<dc:creator><![CDATA[Joseph]]></dc:creator>
		<pubDate>Fri, 03 Jul 2015 16:25:40 +0000</pubDate>
		<guid isPermaLink="false">http://farinspace.com/?p=1008#comment-37619</guid>

					<description><![CDATA[I have this in a plugin and working no problem. Now I want to get the meta data in a theme file. The theme file is in a child theme. I have spent all day working on this with no joy. How would I do this? Do I need to include anything?]]></description>
			<content:encoded><![CDATA[<p>I have this in a plugin and working no problem. Now I want to get the meta data in a theme file. The theme file is in a child theme. I have spent all day working on this with no joy. How would I do this? Do I need to include anything?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Catherine Sandrick		</title>
		<link>https://www.farinspace.com/wpalchemy-metabox-data-storage-modes/#comment-24065</link>

		<dc:creator><![CDATA[Catherine Sandrick]]></dc:creator>
		<pubDate>Sun, 24 Jun 2012 01:57:25 +0000</pubDate>
		<guid isPermaLink="false">http://farinspace.com/?p=1008#comment-24065</guid>

					<description><![CDATA[I did this. Seems to work. I&#039;m sure it could be improved upon.

http://pastebin.com/J44LQBv4]]></description>
			<content:encoded><![CDATA[<p>I did this. Seems to work. I&#8217;m sure it could be improved upon.</p>
<p><a href="http://pastebin.com/J44LQBv4" rel="nofollow ugc">http://pastebin.com/J44LQBv4</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Catherine Sandrick		</title>
		<link>https://www.farinspace.com/wpalchemy-metabox-data-storage-modes/#comment-24032</link>

		<dc:creator><![CDATA[Catherine Sandrick]]></dc:creator>
		<pubDate>Sat, 23 Jun 2012 01:45:20 +0000</pubDate>
		<guid isPermaLink="false">http://farinspace.com/?p=1008#comment-24032</guid>

					<description><![CDATA[First let me say thank you for this class! It&#039;s amazing.

I have a very similar issue to Federico Vezzoli and I did not see a response to his query. I have a number of items stored in WPALCHEMY_MODE_ARRAY and now I find I need to create a search routine that tests against meta data. I will have to convert a couple hundred entries with multiple fields each to WPALCHEMY_MODE_EXTRACT, and am wondering if there is a ready built automation for this that I simply don&#039;t see in the docs.

Thanks again!]]></description>
			<content:encoded><![CDATA[<p>First let me say thank you for this class! It&#8217;s amazing.</p>
<p>I have a very similar issue to Federico Vezzoli and I did not see a response to his query. I have a number of items stored in WPALCHEMY_MODE_ARRAY and now I find I need to create a search routine that tests against meta data. I will have to convert a couple hundred entries with multiple fields each to WPALCHEMY_MODE_EXTRACT, and am wondering if there is a ready built automation for this that I simply don&#8217;t see in the docs.</p>
<p>Thanks again!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jesse		</title>
		<link>https://www.farinspace.com/wpalchemy-metabox-data-storage-modes/#comment-23832</link>

		<dc:creator><![CDATA[Jesse]]></dc:creator>
		<pubDate>Wed, 13 Jun 2012 21:34:11 +0000</pubDate>
		<guid isPermaLink="false">http://farinspace.com/?p=1008#comment-23832</guid>

					<description><![CDATA[How would I do a query for posts with a meta field that have a certain checkbox checked?

I have my metabox setup to use EXTRACT and the box values are post ids - so basically, I am looking for the posts that have a certain id checked.

I tried to use this in my query arguments:
&#039;meta_query&#039; =&#062; array(
   array(
     &#039;key&#039;     =&#062; &#039;_workshop_speakers&#039;, //checkbox array
     &#039;value&#039;   =&#062; $post-&#062;ID, //id to query for
     &#039;compare&#039; =&#062; &#039;IN&#039;
   )
}

but it&#039;s not finding anything.]]></description>
			<content:encoded><![CDATA[<p>How would I do a query for posts with a meta field that have a certain checkbox checked?</p>
<p>I have my metabox setup to use EXTRACT and the box values are post ids &#8211; so basically, I am looking for the posts that have a certain id checked.</p>
<p>I tried to use this in my query arguments:<br />
&#8216;meta_query&#8217; =&gt; array(<br />
   array(<br />
     &#8216;key&#8217;     =&gt; &#8216;_workshop_speakers&#8217;, //checkbox array<br />
     &#8216;value&#8217;   =&gt; $post-&gt;ID, //id to query for<br />
     &#8216;compare&#8217; =&gt; &#8216;IN&#8217;<br />
   )<br />
}</p>
<p>but it&#8217;s not finding anything.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Dan Gavin		</title>
		<link>https://www.farinspace.com/wpalchemy-metabox-data-storage-modes/#comment-22604</link>

		<dc:creator><![CDATA[Dan Gavin]]></dc:creator>
		<pubDate>Thu, 05 Apr 2012 22:35:29 +0000</pubDate>
		<guid isPermaLink="false">http://farinspace.com/?p=1008#comment-22604</guid>

					<description><![CDATA[I believe I have everything set up correctly and I am using the WPALCHEMY_EXTRACT_MODE on my custom meta box. 

I have a checkbox set up that when checked should let the user add that post to the front end of the site. When I check the box it saves, but nothing is coming through on the front end. My code is as follows:

http://pastebin.com/eMkaR5K9

Any thoughts?]]></description>
			<content:encoded><![CDATA[<p>I believe I have everything set up correctly and I am using the WPALCHEMY_EXTRACT_MODE on my custom meta box. </p>
<p>I have a checkbox set up that when checked should let the user add that post to the front end of the site. When I check the box it saves, but nothing is coming through on the front end. My code is as follows:</p>
<p><a href="http://pastebin.com/eMkaR5K9" rel="nofollow ugc">http://pastebin.com/eMkaR5K9</a></p>
<p>Any thoughts?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Federico Vezzoli		</title>
		<link>https://www.farinspace.com/wpalchemy-metabox-data-storage-modes/#comment-22245</link>

		<dc:creator><![CDATA[Federico Vezzoli]]></dc:creator>
		<pubDate>Wed, 14 Mar 2012 11:53:41 +0000</pubDate>
		<guid isPermaLink="false">http://farinspace.com/?p=1008#comment-22245</guid>

					<description><![CDATA[Hi Dimas!
I need to switch existing data from array to extract mode, what should i do? I understand I need to use the save_filter, but i&#039;m struggling a bit. 
Is a metadata in extract mode the same as a custom field?

thanks]]></description>
			<content:encoded><![CDATA[<p>Hi Dimas!<br />
I need to switch existing data from array to extract mode, what should i do? I understand I need to use the save_filter, but i&#8217;m struggling a bit.<br />
Is a metadata in extract mode the same as a custom field?</p>
<p>thanks</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Katherine		</title>
		<link>https://www.farinspace.com/wpalchemy-metabox-data-storage-modes/#comment-20119</link>

		<dc:creator><![CDATA[Katherine]]></dc:creator>
		<pubDate>Sun, 04 Dec 2011 18:25:25 +0000</pubDate>
		<guid isPermaLink="false">http://farinspace.com/?p=1008#comment-20119</guid>

					<description><![CDATA[Geez, I previewed that and thought it made sense, but it really doesn&#039;t. :(

The second sentence should read:
I am creating a post automatically, within a plugin, then updating it based on a json response.]]></description>
			<content:encoded><![CDATA[<p>Geez, I previewed that and thought it made sense, but it really doesn&#8217;t. 🙁</p>
<p>The second sentence should read:<br />
I am creating a post automatically, within a plugin, then updating it based on a json response.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Katherine		</title>
		<link>https://www.farinspace.com/wpalchemy-metabox-data-storage-modes/#comment-20118</link>

		<dc:creator><![CDATA[Katherine]]></dc:creator>
		<pubDate>Sun, 04 Dec 2011 18:23:53 +0000</pubDate>
		<guid isPermaLink="false">http://farinspace.com/?p=1008#comment-20118</guid>

					<description><![CDATA[This may not be possible, but I&#039;ll ask anyway.

I am creating a automatically, within a plugin, the updating it based on a json response. 

Essentially, the post is created, the json request sent, then based on the response I need to add meta data to the post. This all works, in the DB I see
_mypostype_meta_fields
_myprefix_fieldone
_myprefix_fieldtwo 
etc.

I am using extract mode.

However since the post was never published or update through WP, wpalchemy does not know the _myprefix_ fields exist, there is nothing about them in the array and thus no values in the fields when the post is edited via admin. 

Is there another way to do what I want to do, or can&#039;t it be done?]]></description>
			<content:encoded><![CDATA[<p>This may not be possible, but I&#8217;ll ask anyway.</p>
<p>I am creating a automatically, within a plugin, the updating it based on a json response. </p>
<p>Essentially, the post is created, the json request sent, then based on the response I need to add meta data to the post. This all works, in the DB I see<br />
_mypostype_meta_fields<br />
_myprefix_fieldone<br />
_myprefix_fieldtwo<br />
etc.</p>
<p>I am using extract mode.</p>
<p>However since the post was never published or update through WP, wpalchemy does not know the _myprefix_ fields exist, there is nothing about them in the array and thus no values in the fields when the post is edited via admin. </p>
<p>Is there another way to do what I want to do, or can&#8217;t it be done?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: CC		</title>
		<link>https://www.farinspace.com/wpalchemy-metabox-data-storage-modes/#comment-18276</link>

		<dc:creator><![CDATA[CC]]></dc:creator>
		<pubDate>Wed, 19 Oct 2011 05:00:27 +0000</pubDate>
		<guid isPermaLink="false">http://farinspace.com/?p=1008#comment-18276</guid>

					<description><![CDATA[Hi there,

Brilliant class, thank you!

I am having some issues querying meta_keys once I changed the mode to:  WPALCHEMY_MODE_EXTRACT. I want to get the three most recent posts in a category, where the start date is before todays date and the end date is after todays date.

Please see my query below, thank you so much for your help

Hoping this may be of help to another developer using this great plugin! :)

[code lang=&quot;php&quot;]
$today = time();

//set up the query for the three most recent shows
$args = array(
    &#039;post_type&#039; =&#038;gt; array(&#039;show-listing&#039;),
    &#039;orderby&#039; =&#038;gt; &#039;meta_value_number&#039;,
    &#039;meta_key&#039; =&#038;gt; &#039;_my_start_timestamp&#039;,
    &#039;showposts&#039; =&#038;gt; 3,
    &#039;order&#039; =&#038;gt; &#039;ASC&#039;,
    &#039;meta_query&#039; =&#038;gt; array(
      array(
	&#039;key&#039; =&#038;gt; &#039;_my_start_timestamp&#039;,
	&#039;value&#039; =&#038;gt; time(),
	&#039;compare&#039; =&#038;gt; &#039; &#039;NUMERIC,&#039;
      ),
      array(
	&#039;key&#039; =&#038;gt; &#039;_my_end_timestamp&#039;,
	&#039;value&#039; =&#038;gt; time(),
	&#039;compare&#039; =&#038;gt; &#039;&#038;gt;=&#039;,
	&#039;type&#039; =&#038;gt; &#039;NUMERIC,&#039;
      )
    )
);

// The Query
$featured_shows = new WP_Query($args);

// Display the posts
while ( $featured_shows-&#038;gt;have_posts() ) : $featured_shows-&#038;gt;the_post();
	echo &#039;&#039;;
	the_title();
	echo &#039;&#039;;
endwhile;
[/code]]]></description>
			<content:encoded><![CDATA[<p>Hi there,</p>
<p>Brilliant class, thank you!</p>
<p>I am having some issues querying meta_keys once I changed the mode to:  WPALCHEMY_MODE_EXTRACT. I want to get the three most recent posts in a category, where the start date is before todays date and the end date is after todays date.</p>
<p>Please see my query below, thank you so much for your help</p>
<p>Hoping this may be of help to another developer using this great plugin! 🙂</p>
<pre class="brush: php; title: ; notranslate">
$today = time();

//set up the query for the three most recent shows
$args = array(
    'post_type' =&amp;gt; array('show-listing'),
    'orderby' =&amp;gt; 'meta_value_number',
    'meta_key' =&amp;gt; '_my_start_timestamp',
    'showposts' =&amp;gt; 3,
    'order' =&amp;gt; 'ASC',
    'meta_query' =&amp;gt; array(
      array(
	'key' =&amp;gt; '_my_start_timestamp',
	'value' =&amp;gt; time(),
	'compare' =&amp;gt; ' 'NUMERIC,'
      ),
      array(
	'key' =&amp;gt; '_my_end_timestamp',
	'value' =&amp;gt; time(),
	'compare' =&amp;gt; '&amp;gt;=',
	'type' =&amp;gt; 'NUMERIC,'
      )
    )
);

// The Query
$featured_shows = new WP_Query($args);

// Display the posts
while ( $featured_shows-&amp;gt;have_posts() ) : $featured_shows-&amp;gt;the_post();
	echo '';
	the_title();
	echo '';
endwhile;
</pre>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
