<?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: WordPress List Posts with Custom Field Plugin</title>
	<atom:link href="http://www.christianschenk.org/projects/wordpress-list-posts-custom-field-plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.christianschenk.org</link>
	<description>Writing about my experiences with technology and all different kinds of projects and experiments</description>
	<lastBuildDate>Wed, 08 Feb 2012 03:20:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Christian Schenk</title>
		<link>http://www.christianschenk.org/projects/wordpress-list-posts-custom-field-plugin/comment-page-2/#comment-57283</link>
		<dc:creator>Christian Schenk</dc:creator>
		<pubDate>Wed, 08 Feb 2012 03:20:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.christianschenk.org/?page_id=702#comment-57283</guid>
		<description>Hi Raffaell,
according to the current implementation you have to add the &lt;code&gt;field&lt;/code&gt; attribute; it&#039;s mandatory. Basically, this can be any field that&#039;s common to all the posts you&#039;d like to select.
Regarding the having field everything looks okay with your setup and it should work as expected. The only thing you might want to change is to put the double quotes around the whole value of a certain attribute, i.e. not only &quot;Kuala Lumpur&quot; as in your example.</description>
		<content:encoded><![CDATA[<p>Hi Raffaell,<br />
according to the current implementation you have to add the <code>field</code> attribute; it&#8217;s mandatory. Basically, this can be any field that&#8217;s common to all the posts you&#8217;d like to select.<br />
Regarding the having field everything looks okay with your setup and it should work as expected. The only thing you might want to change is to put the double quotes around the whole value of a certain attribute, i.e. not only &#8220;Kuala Lumpur&#8221; as in your example.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raffaell</title>
		<link>http://www.christianschenk.org/projects/wordpress-list-posts-custom-field-plugin/comment-page-2/#comment-54251</link>
		<dc:creator>Raffaell</dc:creator>
		<pubDate>Wed, 18 Jan 2012 17:06:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.christianschenk.org/?page_id=702#comment-54251</guid>
		<description>Hi,

I&#039;ve been using this plugin and seems like its very nice to adapt. I have 1 problem in terms of using having.

If I only use having it will be error:
No custom field found. Add it to the shortcode.

[lp having=cp_state,&quot;Kuala Lumpur&quot; orderby=&quot;post_title&quot; order=&quot;desc&quot;]

But if I use:
[lp field=cp_city having=cp_state,&quot;Kuala Lumpur&quot; orderby=&quot;post_title&quot; order=&quot;desc&quot;]

It will show me all the post with field cp_state but not only Kuala Lumpur.

What I need is, I need to create pages for every state in the country, and I would like to list all the post that related from the state based on the custom field cp_state.

How to do that ?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;ve been using this plugin and seems like its very nice to adapt. I have 1 problem in terms of using having.</p>
<p>If I only use having it will be error:<br />
No custom field found. Add it to the shortcode.</p>
<p>[lp having=cp_state,"Kuala Lumpur" orderby="post_title" order="desc"]</p>
<p>But if I use:<br />
[lp field=cp_city having=cp_state,"Kuala Lumpur" orderby="post_title" order="desc"]</p>
<p>It will show me all the post with field cp_state but not only Kuala Lumpur.</p>
<p>What I need is, I need to create pages for every state in the country, and I would like to list all the post that related from the state based on the custom field cp_state.</p>
<p>How to do that ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian Schenk</title>
		<link>http://www.christianschenk.org/projects/wordpress-list-posts-custom-field-plugin/comment-page-2/#comment-52593</link>
		<dc:creator>Christian Schenk</dc:creator>
		<pubDate>Mon, 09 Jan 2012 23:59:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.christianschenk.org/?page_id=702#comment-52593</guid>
		<description>Hi Phillip, Kathryn and Usama,
@Phillip: the behavior you&#039;re describing seems to be really anoying although I couldn&#039;t reproduce it on my end. Answering your question: sure it would be possible to add a certain method that would allow us to compare a custom field and some other value and maybe I can add this in a future version.

@Kathryn: this was in fact a bug in the plugin and version 1.9.1 should fix this. The &lt;code&gt;split&lt;/code&gt; attribute is used in another context, simply leave it out and the above code should be working for you just as expected.

@Usama: you can use &lt;code&gt;orderby&lt;/code&gt; and &lt;code&gt;order&lt;/code&gt; to alter the order of the posts.</description>
		<content:encoded><![CDATA[<p>Hi Phillip, Kathryn and Usama,<br />
@Phillip: the behavior you&#8217;re describing seems to be really anoying although I couldn&#8217;t reproduce it on my end. Answering your question: sure it would be possible to add a certain method that would allow us to compare a custom field and some other value and maybe I can add this in a future version.</p>
<p>@Kathryn: this was in fact a bug in the plugin and version 1.9.1 should fix this. The <code>split</code> attribute is used in another context, simply leave it out and the above code should be working for you just as expected.</p>
<p>@Usama: you can use <code>orderby</code> and <code>order</code> to alter the order of the posts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Usama</title>
		<link>http://www.christianschenk.org/projects/wordpress-list-posts-custom-field-plugin/comment-page-2/#comment-45949</link>
		<dc:creator>Usama</dc:creator>
		<pubDate>Wed, 30 Nov 2011 22:29:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.christianschenk.org/?page_id=702#comment-45949</guid>
		<description>Is it possible to sort the post according to custom field like display with custom field?</description>
		<content:encoded><![CDATA[<p>Is it possible to sort the post according to custom field like display with custom field?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kathryn</title>
		<link>http://www.christianschenk.org/projects/wordpress-list-posts-custom-field-plugin/comment-page-2/#comment-42823</link>
		<dc:creator>Kathryn</dc:creator>
		<pubDate>Fri, 28 Oct 2011 15:24:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.christianschenk.org/?page_id=702#comment-42823</guid>
		<description>Thanks for this useful plug-in. For the most part it works great, but when I try to give a post more than one custom field so it appears in more than one section, I can&#039;t get it displaying correctly, even when using split=1.

For example, the following does *not* display a post in both sections - it actually suppresses display of all posts. Let&#039;s say a post has the custom field &quot;overview&quot; with the value of &quot;another-theme&quot; *and* &quot;great-work&quot; and I want the post to appear in both of the lists:

[lp field=overview orderby=&quot;post_title&quot; having=overview,another-theme split=1]

[lp field=overview orderby=&quot;post_title&quot; having=overview,great-work split=1]

Is this the correct implementation? Removing split=1 causes the posts to be displayed correctly, except that a post in multiple sections is only displayed in a single section, not both.

Any assistance appreciated. Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Thanks for this useful plug-in. For the most part it works great, but when I try to give a post more than one custom field so it appears in more than one section, I can&#8217;t get it displaying correctly, even when using split=1.</p>
<p>For example, the following does *not* display a post in both sections &#8211; it actually suppresses display of all posts. Let&#8217;s say a post has the custom field &#8220;overview&#8221; with the value of &#8220;another-theme&#8221; *and* &#8220;great-work&#8221; and I want the post to appear in both of the lists:</p>
<p>[lp field=overview orderby="post_title" having=overview,another-theme split=1]</p>
<p>[lp field=overview orderby="post_title" having=overview,great-work split=1]</p>
<p>Is this the correct implementation? Removing split=1 causes the posts to be displayed correctly, except that a post in multiple sections is only displayed in a single section, not both.</p>
<p>Any assistance appreciated. Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phillip Benson</title>
		<link>http://www.christianschenk.org/projects/wordpress-list-posts-custom-field-plugin/comment-page-2/#comment-40909</link>
		<dc:creator>Phillip Benson</dc:creator>
		<pubDate>Wed, 19 Oct 2011 13:09:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.christianschenk.org/?page_id=702#comment-40909</guid>
		<description>The standard way that WP works - showing items in the order that they were posted to the system - meant that they were displayed in the wrong order on a page of events which I wanted listed in the order that the events would occur.  Editing the posted date - which was a solution suggested by some - did not change the display order.

To overcome this problem, I added a custom field for the dates of events. Your plugin now tests if the field is used and, if it is, creates the correct output showing a list of upcoming events in the date order as entered in the custom field.

Once the event is over and I do not want to display it any longer, I delete the data in the custom field.  Unfortunately, the plugin still shows the entry even though the field is now blank.

Is there a way to test the value of the data in the custom field and only display posts where the tested value meets certain criteria?  For example, only show items that have a date after today&#039;s date?</description>
		<content:encoded><![CDATA[<p>The standard way that WP works &#8211; showing items in the order that they were posted to the system &#8211; meant that they were displayed in the wrong order on a page of events which I wanted listed in the order that the events would occur.  Editing the posted date &#8211; which was a solution suggested by some &#8211; did not change the display order.</p>
<p>To overcome this problem, I added a custom field for the dates of events. Your plugin now tests if the field is used and, if it is, creates the correct output showing a list of upcoming events in the date order as entered in the custom field.</p>
<p>Once the event is over and I do not want to display it any longer, I delete the data in the custom field.  Unfortunately, the plugin still shows the entry even though the field is now blank.</p>
<p>Is there a way to test the value of the data in the custom field and only display posts where the tested value meets certain criteria?  For example, only show items that have a date after today&#8217;s date?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian Schenk</title>
		<link>http://www.christianschenk.org/projects/wordpress-list-posts-custom-field-plugin/comment-page-2/#comment-40045</link>
		<dc:creator>Christian Schenk</dc:creator>
		<pubDate>Fri, 07 Oct 2011 21:37:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.christianschenk.org/?page_id=702#comment-40045</guid>
		<description>Hi Nathan,
this message says that you should add a custom field to the shortcode like so:
&lt;pre lang=&quot;plain&quot;&gt;
[lp field=test having=blah,123]
&lt;/pre&gt;
This would retrieve all posts with the field &lt;code&gt;test&lt;/code&gt; &lt;em&gt;having&lt;/em&gt; another field called &lt;code&gt;blah&lt;/code&gt; which is set to the value &lt;code&gt;123&lt;/code&gt;.</description>
		<content:encoded><![CDATA[<p>Hi Nathan,<br />
this message says that you should add a custom field to the shortcode like so:</p>

<div class="wp_syntax"><div class="code"><pre class="plain" style="font-family:monospace;">[lp field=test having=blah,123]</pre></div></div>

<p>This would retrieve all posts with the field <code>test</code> <em>having</em> another field called <code>blah</code> which is set to the value <code>123</code>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan Little</title>
		<link>http://www.christianschenk.org/projects/wordpress-list-posts-custom-field-plugin/comment-page-2/#comment-40021</link>
		<dc:creator>Nathan Little</dc:creator>
		<pubDate>Fri, 07 Oct 2011 13:14:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.christianschenk.org/?page_id=702#comment-40021</guid>
		<description>Hi there,
Can you please write an example of a full line of code showing the &quot;having&quot; function being used? I keep getting &quot;No custom field found. Add it to the shortcode. &quot;

Thank you!</description>
		<content:encoded><![CDATA[<p>Hi there,<br />
Can you please write an example of a full line of code showing the &#8220;having&#8221; function being used? I keep getting &#8220;No custom field found. Add it to the shortcode. &#8221;</p>
<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian Schenk</title>
		<link>http://www.christianschenk.org/projects/wordpress-list-posts-custom-field-plugin/comment-page-2/#comment-38605</link>
		<dc:creator>Christian Schenk</dc:creator>
		<pubDate>Tue, 20 Sep 2011 06:58:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.christianschenk.org/?page_id=702#comment-38605</guid>
		<description>Hello Coolpix,
by default the plugin doesn&#039;t have a feature that allows you to show thumbnails in front of each result. In case you know PHP please adapt the output of the plugin to include the desired images which should be pretty straight forward. If you would like to contribute this change to the original plugin simply &lt;a href=&quot;/contact/&quot; rel=&quot;nofollow&quot;&gt;get in touch&lt;/a&gt; with me.</description>
		<content:encoded><![CDATA[<p>Hello Coolpix,<br />
by default the plugin doesn&#8217;t have a feature that allows you to show thumbnails in front of each result. In case you know PHP please adapt the output of the plugin to include the desired images which should be pretty straight forward. If you would like to contribute this change to the original plugin simply <a href="/contact/" rel="nofollow">get in touch</a> with me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Coolpix</title>
		<link>http://www.christianschenk.org/projects/wordpress-list-posts-custom-field-plugin/comment-page-2/#comment-38585</link>
		<dc:creator>Coolpix</dc:creator>
		<pubDate>Tue, 20 Sep 2011 02:12:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.christianschenk.org/?page_id=702#comment-38585</guid>
		<description>Can we have thumbnails on the post lists? I found this plug-in very interesting, but I don&#039;t see how we can have thumbnails showing. Please let me know if I am doing something wrong.</description>
		<content:encoded><![CDATA[<p>Can we have thumbnails on the post lists? I found this plug-in very interesting, but I don&#8217;t see how we can have thumbnails showing. Please let me know if I am doing something wrong.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

