<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>WordPress &#8250; Support Topic: List pages based on tags?</title>
<link>http://wordpress.org/support/</link>
<description>WordPress &#8250; Support Topic: List pages based on tags?</description>
<language>en</language>
<pubDate>Thu, 26 Nov 2009 14:15:49 +0000</pubDate>

<item>
<title>t31os_ on "List pages based on tags?"</title>
<link>http://wordpress.org/support/topic/265957#post-1127816</link>
<pubDate>Mon, 06 Jul 2009 14:20:09 +0000</pubDate>
<dc:creator>t31os_</dc:creator>
<guid isPermaLink="false">1127816@http://wordpress.org/support/</guid>
<description>&#60;p&#62;That's because the plugin you mentioned before sets post_type to any, see the plugin code (it's only a single file, very little code), and you'll find a line that refers to the post_type..&#60;/p&#62;
&#60;p&#62;That would be my guess anyway... assuming you're still using the plugin..
&#60;/p&#62;</description>
</item>
<item>
<title>betadog on "List pages based on tags?"</title>
<link>http://wordpress.org/support/topic/265957#post-1127696</link>
<pubDate>Mon, 06 Jul 2009 11:41:50 +0000</pubDate>
<dc:creator>betadog</dc:creator>
<guid isPermaLink="false">1127696@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Thank you @randomanic and @t31os_,&#60;/p&#62;
&#60;p&#62;I have tried MichaelH's code, but it still ignores the page type. Here is what I've used:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;&#60;code&#62;&#38;lt;?php&#60;br /&#62;
			$params=array(&#60;br /&#62;
			'showposts'=&#38;gt;5,&#60;br /&#62;
			'post_type' =&#38;gt; 'page',&#60;br /&#62;
			'post_status' =&#38;gt; 'publish,pending',&#60;br /&#62;
			'tag'=&#38;gt;'blue'&#60;br /&#62;
			);&#60;br /&#62;
			$query = new WP_Query;&#60;br /&#62;
			$results = $query-&#38;gt;query($params); ?&#38;gt;&#60;/p&#62;
&#60;p&#62;&#60;/code&#62;&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;It does not matter whether I set the post_type to page, post or any. It always gives me any post or page.
&#60;/p&#62;</description>
</item>
<item>
<title>t31os_ on "List pages based on tags?"</title>
<link>http://wordpress.org/support/topic/265957#post-1125993</link>
<pubDate>Sat, 04 Jul 2009 16:22:39 +0000</pubDate>
<dc:creator>t31os_</dc:creator>
<guid isPermaLink="false">1125993@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Try the method illustrated by michael here, it should still apply for a regular loop...&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://wordpress.org/support/topic/285939?replies=7#post-1123971&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/support/topic/285939?replies=7#post-1123971&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Does the post type then act correctly?
&#60;/p&#62;</description>
</item>
<item>
<title>randomaniac on "List pages based on tags?"</title>
<link>http://wordpress.org/support/topic/265957#post-1125947</link>
<pubDate>Sat, 04 Jul 2009 15:26:09 +0000</pubDate>
<dc:creator>randomaniac</dc:creator>
<guid isPermaLink="false">1125947@http://wordpress.org/support/</guid>
<description>&#60;p&#62;This seems to be a bug in the Wordpress code. The post_type parameter gets ignored when you specify a tag parameter.
&#60;/p&#62;</description>
</item>
<item>
<title>randomaniac on "List pages based on tags?"</title>
<link>http://wordpress.org/support/topic/265957#post-1125939</link>
<pubDate>Sat, 04 Jul 2009 15:00:27 +0000</pubDate>
<dc:creator>randomaniac</dc:creator>
<guid isPermaLink="false">1125939@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Hey, I've had a go at doing what you mentioned using the same plugin and I'm also seeing this issue, i.e. it seems to ignore the post_type option you pass in.
&#60;/p&#62;</description>
</item>
<item>
<title>betadog on "List pages based on tags?"</title>
<link>http://wordpress.org/support/topic/265957#post-1089726</link>
<pubDate>Tue, 02 Jun 2009 16:45:51 +0000</pubDate>
<dc:creator>betadog</dc:creator>
<guid isPermaLink="false">1089726@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Okay, I am back at it and I found a plugin called &#34;&#60;a href=&#34;http://www.hiddentao.com/code/wordpress-page-tags-plugin/&#34;&#62;Page-Tags&#60;/a&#62;&#34; which allows me to assign tags to pages. Great.&#60;/p&#62;
&#60;p&#62;I've looked at &#60;a href=&#34;http://codex.wordpress.org/Template_Tags/query_posts#Category_Parameters&#34;&#62;query_posts&#60;/a&#62; and lo and behold, it allows me to list everything with that tag, including the pages I've tagged with the above mentioned plugin. Awesome.&#60;/p&#62;
&#60;p&#62;The query I've put before the loop is as follows:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;query_posts('tag=blue&#38;amp;orderby=title&#38;amp;order=ASC');&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;I am almost there but now I want to limit the output to PAGES and exclude posts. I've tried the following:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;query_posts('tag=blue&#38;amp;post_type=page&#38;amp;orderby=title&#38;amp;order=ASC');&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;But it still lists pages AND posts, apparently the 'post_type=page' is ignored.&#60;/p&#62;
&#60;p&#62;I am way out of my depth here, can anybody help me? Again: is there a better way to list pages based on tags? Will there be a better way in WP 2.8? Will Wordpress ever include a decent tagging feature for pages?
&#60;/p&#62;</description>
</item>
<item>
<title>betadog on "List pages based on tags?"</title>
<link>http://wordpress.org/support/topic/265957#post-1058741</link>
<pubDate>Tue, 28 Apr 2009 09:26:50 +0000</pubDate>
<dc:creator>betadog</dc:creator>
<guid isPermaLink="false">1058741@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I would like to list all pages that contain a certain custom field value. I am no PHP hack but I've come up with the following code snippet:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;&#38;lt;?php wp_list_pages('meta_key=tags&#38;amp;meta_value=blue'); ?&#38;gt;&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;This works fine, it lists all pages that have EXACTLY the value &#34;blue&#34; in the custom field &#34;tags&#34;. But how can I modify the snippet to list all pages that CONTAIN the value &#34;blue&#34;? That way I could assign multiple tags (e.g. &#34;blue, big, tasty&#34;) to one page.&#60;/p&#62;
&#60;p&#62;Or is there any better way to list pages based on tags?
&#60;/p&#62;</description>
</item>

</channel>
</rss>
