<?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 Tag: query</title>
<link>http://wordpress.org/support/</link>
<description>WordPress &#8250; Support Tag: query</description>
<language>en</language>
<pubDate>Thu, 26 Nov 2009 06:11:11 +0000</pubDate>

<item>
<title>gbaka on "ignore unmodified post"</title>
<link>http://wordpress.org/support/topic/334105#post-1294110</link>
<pubDate>Thu, 26 Nov 2009 02:40:36 +0000</pubDate>
<dc:creator>gbaka</dc:creator>
<guid isPermaLink="false">1294110@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I'm putting it in the index code and I'm seeing the problem in the order it doesn't seem to be in modified order.
&#60;/p&#62;</description>
</item>
<item>
<title>MichaelH on "ignore unmodified post"</title>
<link>http://wordpress.org/support/topic/334105#post-1293898</link>
<pubDate>Wed, 25 Nov 2009 21:46:26 +0000</pubDate>
<dc:creator>MichaelH</dc:creator>
<guid isPermaLink="false">1293898@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Just so I can test this, what &#60;a href=&#34;http://codex.wordpress.org/Templates&#34;&#62;template&#60;/a&#62; (e.g. index.php, archives.php} are you putting the code in and where are you seeing the problem?  I'll be using the WordPress Default theme.
&#60;/p&#62;</description>
</item>
<item>
<title>gbaka on "ignore unmodified post"</title>
<link>http://wordpress.org/support/topic/334105#post-1293855</link>
<pubDate>Wed, 25 Nov 2009 21:11:37 +0000</pubDate>
<dc:creator>gbaka</dc:creator>
<guid isPermaLink="false">1293855@http://wordpress.org/support/</guid>
<description>&#60;p&#62;okay it didn't change it, all the modified post seem to go by the original date and not the modified date and its messing up the updated order. So older post don't show up on the modified page.
&#60;/p&#62;</description>
</item>
<item>
<title>MichaelH on "ignore unmodified post"</title>
<link>http://wordpress.org/support/topic/334105#post-1293337</link>
<pubDate>Wed, 25 Nov 2009 14:40:01 +0000</pubDate>
<dc:creator>MichaelH</dc:creator>
<guid isPermaLink="false">1293337@http://wordpress.org/support/</guid>
<description>&#60;p&#62;May need to put &#60;code&#62;remove_filter(&#38;#39;posts_where&#38;#39;, &#38;#39;filter_where&#38;#39;);&#60;/code&#62; after the query.
&#60;/p&#62;</description>
</item>
<item>
<title>gbaka on "ignore unmodified post"</title>
<link>http://wordpress.org/support/topic/334105#post-1293220</link>
<pubDate>Wed, 25 Nov 2009 11:58:10 +0000</pubDate>
<dc:creator>gbaka</dc:creator>
<guid isPermaLink="false">1293220@http://wordpress.org/support/</guid>
<description>&#60;p&#62;this seems to only show updated post that are still on the frontpage and doesn't show any updated post that aren't on the front page.
&#60;/p&#62;</description>
</item>
<item>
<title>MichaelH on "Feature Request: Search &#38; Replace"</title>
<link>http://wordpress.org/support/topic/335288#post-1292841</link>
<pubDate>Wed, 25 Nov 2009 01:05:09 +0000</pubDate>
<dc:creator>MichaelH</dc:creator>
<guid isPermaLink="false">1292841@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Or use &#60;a href=&#34;http://wordpress.org/extend/plugins/search-and-replace/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/search-and-replace/&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>SS_Minnow on "Feature Request: Search &#38; Replace"</title>
<link>http://wordpress.org/support/topic/335288#post-1292677</link>
<pubDate>Tue, 24 Nov 2009 22:07:44 +0000</pubDate>
<dc:creator>SS_Minnow</dc:creator>
<guid isPermaLink="false">1292677@http://wordpress.org/support/</guid>
<description>&#60;p&#62;It has come up for me recently that I have to change every occurrence of a client's company name or acronym. I don't know if it's possible but it would be great if WP had a Search &#38;amp; Replace feature, perhaps with options like &#34;this post or page only&#34;, &#34;all posts&#34;, &#34;all pages&#34;, &#34;all posts and pages&#34;.&#60;/p&#62;
&#60;p&#62;I was able to find them all w/ WPs search feature, which helped, but I had to change them all one by one, which took a lot of time.&#60;/p&#62;
&#60;p&#62;In the meantime, I'm going to look into doing this w/ MySQL.&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
</item>
<item>
<title>MichaelH on "ignore unmodified post"</title>
<link>http://wordpress.org/support/topic/334105#post-1291111</link>
<pubDate>Mon, 23 Nov 2009 16:11:01 +0000</pubDate>
<dc:creator>MichaelH</dc:creator>
<guid isPermaLink="false">1291111@http://wordpress.org/support/</guid>
<description>&#60;p&#62;That would be true.  To make pagination work, you'd have to do something like this:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
  function filter_where($where = &#38;#39;&#38;#39;) {
    $where .= &#38;quot; AND post_date != post_modified &#38;quot;;
    return $where;
  }
add_filter(&#38;#39;posts_where&#38;#39;, &#38;#39;filter_where&#38;#39;);
query_posts($query_string);
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Didn't test this though.  May need a remove_filter also.
&#60;/p&#62;</description>
</item>
<item>
<title>riri23 on "A-Z index list of tags"</title>
<link>http://wordpress.org/support/topic/288774#post-1290376</link>
<pubDate>Sun, 22 Nov 2009 22:03:30 +0000</pubDate>
<dc:creator>riri23</dc:creator>
<guid isPermaLink="false">1290376@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Nice code, do you have a way to display result on two colums?
&#60;/p&#62;</description>
</item>
<item>
<title>gbaka on "ignore unmodified post"</title>
<link>http://wordpress.org/support/topic/334105#post-1290140</link>
<pubDate>Sun, 22 Nov 2009 16:54:49 +0000</pubDate>
<dc:creator>gbaka</dc:creator>
<guid isPermaLink="false">1290140@http://wordpress.org/support/</guid>
<description>&#60;p&#62;well it works for the most part except i can't control the amount of post that show up in the page because it seems to be counting non editted post as well any to control that show ignores the noneditted post from the post count?
&#60;/p&#62;</description>
</item>
<item>
<title>MichaelH on "ignore unmodified post"</title>
<link>http://wordpress.org/support/topic/334105#post-1289143</link>
<pubDate>Sat, 21 Nov 2009 14:05:16 +0000</pubDate>
<dc:creator>MichaelH</dc:creator>
<guid isPermaLink="false">1289143@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Something like this in a 'normal' &#60;a href=&#34;http://codex.wordpress.org/The_Loop&#34;&#62;loop&#60;/a&#62;:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if ($post-&#38;gt;post_date != $post-&#38;gt;post_modified) {
//display your modified posts
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;[edit]
&#60;/p&#62;</description>
</item>
<item>
<title>gbaka on "ignore unmodified post"</title>
<link>http://wordpress.org/support/topic/334105#post-1289131</link>
<pubDate>Sat, 21 Nov 2009 13:46:50 +0000</pubDate>
<dc:creator>gbaka</dc:creator>
<guid isPermaLink="false">1289131@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I'm using the query_post modified code to display modified post I'm just wondering is there a way to ignore or hide unmodified post?
&#60;/p&#62;</description>
</item>
<item>
<title>styzer on "A-Z index list of tags"</title>
<link>http://wordpress.org/support/topic/288774#post-1289038</link>
<pubDate>Sat, 21 Nov 2009 09:35:07 +0000</pubDate>
<dc:creator>styzer</dc:creator>
<guid isPermaLink="false">1289038@http://wordpress.org/support/</guid>
<description>&#60;p&#62;This sounds like what I need...&#60;/p&#62;
&#60;p&#62;I use a template called Arclite 2.02, on WP 2.8.6.&#60;/p&#62;
&#60;p&#62;I am creating a website that would give artists their own page, and blog, with a media player for their music. I want the artists pages to automatically be ordered alphabetically for search and browsing convenience. &#60;/p&#62;
&#60;p&#62;So far, I've not been able to visualize any of the process of creating a tag.php page or any other such codes/plugin. It would be great to find step by step instructions, I'm a bit limited in that area.&#60;/p&#62;
&#60;p&#62;I thought if I could tag pages (mydomain.com/lastname-firstname), then it could sort alphabetically. But tags seem to only apply to posts. Same with categories. &#60;/p&#62;
&#60;p&#62;I copy/pasted the code by design-dolphin and created a t-tag.php file. I uploaded it in my template folder via FTP. I went to create a page but could not find any &#34;tags&#34; template. &#60;/p&#62;
&#60;p&#62;What am I missing?&#60;/p&#62;
&#60;p&#62;Cheers!&#60;/p&#62;
&#60;p&#62;Andre&#60;/p&#62;
&#60;p&#62;p.s. The site is: &#60;a href=&#34;http://www.soakingplanet.com&#34; rel=&#34;nofollow&#34;&#62;http://www.soakingplanet.com&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;All content on the first page here is basically copy/pasted from another of my sites. I want this new site to be the artists site instead.&#60;/p&#62;
&#60;p&#62;If you look on the menu, my name is there. That would be an artist name, leading to an artist page. But that would make it impossible for a menu to make sense with over 50 artists. Help!
&#60;/p&#62;</description>
</item>
<item>
<title>freshifreshy on "Search Page with Multiple Loops"</title>
<link>http://wordpress.org/support/topic/333582#post-1287632</link>
<pubDate>Fri, 20 Nov 2009 01:56:25 +0000</pubDate>
<dc:creator>freshifreshy</dc:creator>
<guid isPermaLink="false">1287632@http://wordpress.org/support/</guid>
<description>&#60;blockquote&#62;&#60;p&#62;Can only guess might need to add wp_reset_query(); after your query loop.&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;That didn't work, but I realized that I had the Search Unleashed plugin activated. I deactivated it and now the search is working.&#60;/p&#62;
&#60;p&#62;Thanks for your help!
&#60;/p&#62;</description>
</item>
<item>
<title>design_dolphin on "A-Z index list of tags"</title>
<link>http://wordpress.org/support/topic/288774#post-1287411</link>
<pubDate>Thu, 19 Nov 2009 22:18:43 +0000</pubDate>
<dc:creator>design_dolphin</dc:creator>
<guid isPermaLink="false">1287411@http://wordpress.org/support/</guid>
<description>&#60;p&#62;My bad. Just noticed that in the previous code snippet I posted the following line has the variable $custom_taxonomy_parent which is not being used:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$list .= &#38;#39;&#38;lt;li class=&#38;quot;cat-item&#38;quot;&#38;gt;&#38;lt;a rel=&#38;quot;nofollow&#38;quot; title=&#38;quot;&#38;#39; . $name . &#38;#39; folder&#38;quot; href=&#38;quot;&#38;#39; . $custom_taxonomy_parent . $url . &#38;#39;&#38;quot;&#38;gt;&#38;#39; . $name . &#38;#39;&#38;lt;/a&#38;gt;&#38;lt;/li&#38;gt;&#38;#39;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This is the corrected code snippet:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
	$list = &#38;#39;&#38;#39;;
	$tags = get_terms(&#38;#39;your_custom_taxonomy&#38;#39;);
	$groups = array();

	if( $tags &#38;amp;&#38;amp; is_array( $tags ) ) {
		foreach( $tags as $tag ) {
			$first_letter = strtoupper( $tag-&#38;gt;name[0] );
			$groups[ $first_letter ][] = $tag;
		}

		if( !empty( $groups ) ) {
				{
				$index_row .=&#38;#39;&#38;lt;ul class=&#38;quot;topindex&#38;quot;&#38;gt;&#38;#39;;
				foreach ($groups as $letter =&#38;gt; $tags) {
					$index_row .= &#38;#39;&#38;lt;li&#38;gt;&#38;lt;h4&#38;gt;&#38;lt;a              rel=&#38;quot;nofollow&#38;quot; href=&#38;quot;#&#38;#39; . $letter . &#38;#39;-folder&#38;quot; title=&#38;quot;&#38;#39; . $letter . &#38;#39; folder&#38;quot;&#38;gt;&#38;#39; . apply_filters( &#38;#39;the_title&#38;#39;, $letter ) . &#38;#39;&#38;lt;/a&#38;gt;&#38;lt;/h4&#38;gt;&#38;lt;/li&#38;gt;&#38;#39;;
				}

				$index_row .=&#38;#39;&#38;lt;/ul&#38;gt;&#38;lt;br class=&#38;quot;clear&#38;quot;&#38;gt;&#38;#39;;
			}

			$list .= &#38;#39;&#38;lt;ul class=&#38;quot;index&#38;quot;&#38;gt;&#38;#39;;
			foreach( $groups as $letter =&#38;gt; $tags ) {
				$list .= &#38;#39;&#38;lt;li&#38;gt;&#38;lt;a name=&#38;quot;&#38;#39; . $letter . &#38;#39;-folder&#38;quot;&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;h5&#38;gt;&#38;lt;a rel=&#38;quot;nofollow&#38;quot; href=&#38;quot;#tags_top&#38;quot; title=&#38;quot;Back to index&#38;quot;&#38;gt;&#38;#39; . apply_filters( &#38;#39;the_title&#38;#39;, $letter ) . &#38;#39;&#38;lt;/a&#38;gt;&#38;lt;/h5&#38;gt;&#38;#39;;
				$list .= &#38;#39;&#38;lt;ul class=&#38;quot;links&#38;quot;&#38;gt;&#38;#39;;
				foreach( $tags as $tag ) {
					$url = attribute_escape(get_bloginfo(&#38;#39;url&#38;#39;) . &#38;#39;/&#38;#39; . $tag-&#38;gt;taxonomy . &#38;#39;/&#38;#39; . $tag-&#38;gt;slug);
					$name = apply_filters( &#38;#39;the_title&#38;#39;, $tag-&#38;gt;name );
					$list .= &#38;#39;&#38;lt;li class=&#38;quot;cat-item&#38;quot;&#38;gt;&#38;lt;a rel=&#38;quot;nofollow&#38;quot; title=&#38;quot;&#38;#39; . $name . &#38;#39; folder&#38;quot; href=&#38;quot;&#38;#39; . $url . &#38;#39;&#38;quot;&#38;gt;&#38;#39; . $name . &#38;#39;&#38;lt;/a&#38;gt;&#38;lt;/li&#38;gt;&#38;#39;;
				}

				$list .= &#38;#39;&#38;lt;/ul&#38;gt;&#38;lt;/li&#38;gt;&#38;#39;;
			}

			$list .= &#38;#39;&#38;lt;/ul&#38;gt;&#38;#39;;
		}

	} else $list .= &#38;#39;&#38;lt;p&#38;gt;Sorry, but no tags were found&#38;lt;/p&#38;gt;&#38;#39;;
	?&#38;gt;
&#38;lt;a name=&#38;quot;tags_top&#38;quot;&#38;gt;&#38;lt;/a&#38;gt;
&#38;lt;?php  print $index_row; ?&#38;gt;
&#38;lt;?php  print $list; ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Please note that this is still a beta code snippet.
&#60;/p&#62;</description>
</item>
<item>
<title>MichaelH on "Search Page with Multiple Loops"</title>
<link>http://wordpress.org/support/topic/333582#post-1287405</link>
<pubDate>Thu, 19 Nov 2009 22:11:38 +0000</pubDate>
<dc:creator>MichaelH</dc:creator>
<guid isPermaLink="false">1287405@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Can only guess might need to add &#60;code&#62;wp_reset_query();&#60;/code&#62; after your query loop.&#60;/p&#62;
&#60;p&#62;If that doesn't work for you, please paste all the code from the theme template file that exhibits the problem into a pastebin such as &#60;a href=&#34;http://wordpress.pastebin.ca&#34;&#62;wordpress.pastebin.ca&#60;/a&#62;, and report the link back here.  Maybe someone can spot your problem.  Thanks.
&#60;/p&#62;</description>
</item>
<item>
<title>tugbucket on "A-Z index list of tags"</title>
<link>http://wordpress.org/support/topic/288774#post-1287377</link>
<pubDate>Thu, 19 Nov 2009 21:38:57 +0000</pubDate>
<dc:creator>tugbucket</dc:creator>
<guid isPermaLink="false">1287377@http://wordpress.org/support/</guid>
<description>&#60;p&#62;&#60;a href=&#34;http://wordpress.org/extend/plugins/multi-column-tag-map/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/multi-column-tag-map/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;you might take a look at that as well. It might fit your needs.
&#60;/p&#62;</description>
</item>
<item>
<title>design_dolphin on "A-Z index list of tags"</title>
<link>http://wordpress.org/support/topic/288774#post-1287346</link>
<pubDate>Thu, 19 Nov 2009 21:16:11 +0000</pubDate>
<dc:creator>design_dolphin</dc:creator>
<guid isPermaLink="false">1287346@http://wordpress.org/support/</guid>
<description>&#60;p&#62;@hifa&#60;br /&#62;
Thank you for pointing me to that new feature. :-) Looks great. Lots of potential.&#60;/p&#62;
&#60;p&#62;@mfields&#60;br /&#62;
From what I can figure out you are correct. Although it should be possible to fill the custom taxonomy name in automatically, haven't figured that out, yet.&#60;/p&#62;
&#60;p&#62;In order to direct the tag link in the TOC (Table of Contents) to taxonomy.php I had to rewrite the code. Otherwise the link will link to the tag.php template. This means in theory that if you have two custom taxonomies with two tags with the same name they would point to the same url. &#60;/p&#62;
&#60;p&#62;&#60;strong&#62;Code:&#60;/strong&#62;&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
	$list = &#38;#39;&#38;#39;;
	$tags = get_terms(&#38;#39;your_custom_taxonomy&#38;#39;);
	$groups = array();

	if( $tags &#38;amp;&#38;amp; is_array( $tags ) ) {
		foreach( $tags as $tag ) {
			$first_letter = strtoupper( $tag-&#38;gt;name[0] );
			$groups[ $first_letter ][] = $tag;
		}

		if( !empty( $groups ) ) {
				{
				$index_row .=&#38;#39;&#38;lt;ul class=&#38;quot;topindex&#38;quot;&#38;gt;&#38;#39;;
				foreach ($groups as $letter =&#38;gt; $tags) {
					$index_row .= &#38;#39;&#38;lt;li&#38;gt;&#38;lt;h4&#38;gt;&#38;lt;a              rel=&#38;quot;nofollow&#38;quot; href=&#38;quot;#&#38;#39; . $letter . &#38;#39;-folder&#38;quot; title=&#38;quot;&#38;#39; . $letter . &#38;#39; folder&#38;quot;&#38;gt;&#38;#39; . apply_filters( &#38;#39;the_title&#38;#39;, $letter ) . &#38;#39;&#38;lt;/a&#38;gt;&#38;lt;/h4&#38;gt;&#38;lt;/li&#38;gt;&#38;#39;;
				}

				$index_row .=&#38;#39;&#38;lt;/ul&#38;gt;&#38;lt;br class=&#38;quot;clear&#38;quot;&#38;gt;&#38;#39;;
			}

			$list .= &#38;#39;&#38;lt;ul class=&#38;quot;index&#38;quot;&#38;gt;&#38;#39;;
			foreach( $groups as $letter =&#38;gt; $tags ) {
				$list .= &#38;#39;&#38;lt;li&#38;gt;&#38;lt;a name=&#38;quot;&#38;#39; . $letter . &#38;#39;-folder&#38;quot;&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;h5&#38;gt;&#38;lt;a rel=&#38;quot;nofollow&#38;quot; href=&#38;quot;#tags_top&#38;quot; title=&#38;quot;Back to index&#38;quot;&#38;gt;&#38;#39; . apply_filters( &#38;#39;the_title&#38;#39;, $letter ) . &#38;#39;&#38;lt;/a&#38;gt;&#38;lt;/h5&#38;gt;&#38;#39;;
				$list .= &#38;#39;&#38;lt;ul class=&#38;quot;links&#38;quot;&#38;gt;&#38;#39;;
				foreach( $tags as $tag ) {
					$url = attribute_escape(get_bloginfo(&#38;#39;url&#38;#39;) . &#38;#39;/&#38;#39; . $tag-&#38;gt;taxonomy . &#38;#39;/&#38;#39; . $tag-&#38;gt;slug);
					$name = apply_filters( &#38;#39;the_title&#38;#39;, $tag-&#38;gt;name );
					$list .= &#38;#39;&#38;lt;li class=&#38;quot;cat-item&#38;quot;&#38;gt;&#38;lt;a rel=&#38;quot;nofollow&#38;quot; title=&#38;quot;&#38;#39; . $name . &#38;#39; folder&#38;quot; href=&#38;quot;&#38;#39; . $custom_taxonomy_parent . $url . &#38;#39;&#38;quot;&#38;gt;&#38;#39; . $name . &#38;#39;&#38;lt;/a&#38;gt;&#38;lt;/li&#38;gt;&#38;#39;;
				}

				$list .= &#38;#39;&#38;lt;/ul&#38;gt;&#38;lt;/li&#38;gt;&#38;#39;;
			}

			$list .= &#38;#39;&#38;lt;/ul&#38;gt;&#38;#39;;
		}

	} else $list .= &#38;#39;&#38;lt;p&#38;gt;Sorry, but no tags were found&#38;lt;/p&#38;gt;&#38;#39;;
	?&#38;gt;
&#38;lt;a name=&#38;quot;tags_top&#38;quot;&#38;gt;&#38;lt;/a&#38;gt;
&#38;lt;?php  print $index_row; ?&#38;gt;
&#38;lt;?php  print $list; ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Also ran the code since the previous code snippet through automatic WCAG 2.0 and section 507 tests. And the code passes. It should still pass, but please check to be sure. Improvements are definitely welcome&#60;/p&#62;
&#60;p&#62;This is a beta code snippet, as I am still trying to understand the whole custom taxonomies, so there might be better ways to do it.
&#60;/p&#62;</description>
</item>
<item>
<title>freshifreshy on "Search Page with Multiple Loops"</title>
<link>http://wordpress.org/support/topic/333582#post-1287181</link>
<pubDate>Thu, 19 Nov 2009 19:21:14 +0000</pubDate>
<dc:creator>freshifreshy</dc:creator>
<guid isPermaLink="false">1287181@http://wordpress.org/support/</guid>
<description>&#60;p&#62;When I run a search on my site, the &#34;recent posts&#34; and other new WP_Query loops all display only posts related to my search terms.&#60;/p&#62;
&#60;p&#62;Essentially, the search term seems to override any other queries that I have going on.&#60;/p&#62;
&#60;p&#62;Any thoughts on what might be happening?
&#60;/p&#62;</description>
</item>
<item>
<title>MichaelH on "Show specific IDs with query_posts()"</title>
<link>http://wordpress.org/support/topic/333504#post-1286995</link>
<pubDate>Thu, 19 Nov 2009 16:41:29 +0000</pubDate>
<dc:creator>MichaelH</dc:creator>
<guid isPermaLink="false">1286995@http://wordpress.org/support/</guid>
<description>&#60;pre&#62;&#60;code&#62;&#38;lt;?php
$type=&#38;#39;post&#38;#39;; //or $type=&#38;#39;page&#38;#39;
    $args=array(
      &#38;#39;post_type&#38;#39; =&#38;gt; $type,
      &#38;#39;post__in&#38;#39; =&#38;gt; array(5,143,145),
      &#38;#39;caller_get_posts&#38;#39;=&#38;gt;1
    );
    $my_query = new WP_Query($args);
    if( $my_query-&#38;gt;have_posts() ) {
      echo &#38;#39;List of &#38;#39;. $type . &#38;#39;(s)&#38;#39;;
      while ($my_query-&#38;gt;have_posts()) : $my_query-&#38;gt;the_post(); ?&#38;gt;
      &#38;lt;p&#38;gt; &#38;lt;?php the_category(&#38;#39;, &#38;#39;); ?&#38;gt; -
      &#38;lt;a href=&#38;quot;&#38;lt;?php the_permalink() ?&#38;gt;&#38;quot; rel=&#38;quot;bookmark&#38;quot; title=&#38;quot;Permanent Link to &#38;lt;?php the_title_attribute(); ?&#38;gt;&#38;quot;&#38;gt;&#38;lt;?php the_title(); ?&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;/p&#38;gt;
       &#38;lt;?php
      endwhile;
    } //if ($my_query)
  wp_reset_query();  // Restore global post data stomped by the_post().
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>devaleur on "Show specific IDs with query_posts()"</title>
<link>http://wordpress.org/support/topic/333504#post-1286940</link>
<pubDate>Thu, 19 Nov 2009 15:56:22 +0000</pubDate>
<dc:creator>devaleur</dc:creator>
<guid isPermaLink="false">1286940@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Hi&#60;br /&#62;
Please there are someone who can tell me how can I select with query_posts() just the pages with ID 5, 143 and 145.&#60;br /&#62;
Thanks..
&#60;/p&#62;</description>
</item>
<item>
<title>boonesimpson on "Question about returning posts less then 24 hours old?"</title>
<link>http://wordpress.org/support/topic/332377#post-1283480</link>
<pubDate>Mon, 16 Nov 2009 19:28:14 +0000</pubDate>
<dc:creator>boonesimpson</dc:creator>
<guid isPermaLink="false">1283480@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Thanks, I had to modify it some, but it works.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
$count = 0;
$result = &#38;#39;&#38;#39;;
$catposts = get_posts(&#38;#39;cat=1&#38;amp;&#38;amp;numberposts=0&#38;#39;);
if ( $catposts ) { //if there are any posts
  foreach($catposts as $single):
    setup_postdata($single);
	$mylimit=1 * 86400; //days * seconds per day
	$post_age = date(&#38;#39;U&#38;#39;) - mysql2date(&#38;#39;U&#38;#39;, $single-&#38;gt;post_date_gmt);
	if ($post_age &#38;lt; $mylimit) {
      $count++;
      if ( $count &#38;lt; 6 ) {  // only process 5

        $result .= &#38;#39;&#38;lt;li&#38;gt;&#38;lt;a href=&#38;#39;;
        $result .=get_permalink($single-&#38;gt;ID).&#38;#39;&#38;gt;&#38;#39;.$single-&#38;gt;post_title.&#38;#39;&#38;lt;/a&#38;gt;&#38;lt;/li&#38;gt;&#38;#39;;
      }
    }
  endforeach;
if ($result ==&#38;#39;&#38;#39;){}
else{
echo &#38;quot;&#38;lt;h2 id=&#38;#39;latesth2&#38;#39; class=&#38;#39;sectionhead&#38;#39;&#38;gt;&#38;lt;a href=&#38;#39;/category/breaking/&#38;#39;&#38;gt;The Latest&#38;lt;/a&#38;gt;&#38;lt;/h2&#38;gt;&#38;lt;ul&#38;gt;&#38;quot;;
echo $result.&#38;quot;&#38;lt;/ul&#38;gt;&#38;quot;;
}
}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>MichaelH on "Question about returning posts less then 24 hours old?"</title>
<link>http://wordpress.org/support/topic/332377#post-1283436</link>
<pubDate>Mon, 16 Nov 2009 18:41:24 +0000</pubDate>
<dc:creator>MichaelH</dc:creator>
<guid isPermaLink="false">1283436@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Test for posts that are so many days old date (in this case 1 day)&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
$mylimit=1 * 86400; //days * seconds per day
//$post_age = date(&#38;#39;U&#38;#39;) - get_post_time(&#38;#39;U&#38;#39;);
$post_age = date(&#38;#39;U&#38;#39;) - mysql2date(&#38;#39;U&#38;#39;, $post-&#38;gt;post_date_gmt);
if ($post_age &#38;lt; $mylimit) {
echo &#38;#39;this post is within my date limit &#38;#39;;
}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>boonesimpson on "Question about returning posts less then 24 hours old?"</title>
<link>http://wordpress.org/support/topic/332377#post-1283380</link>
<pubDate>Mon, 16 Nov 2009 17:50:59 +0000</pubDate>
<dc:creator>boonesimpson</dc:creator>
<guid isPermaLink="false">1283380@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I am working on a post query that shows posts made within the past 24 hours. I have one currently that compared against the date, but if a post is made at 23:00 hours, it dies in 1 hour.&#60;br /&#62;
My current code is below:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
$count = 0;
$result = &#38;#39;&#38;#39;;
$catposts = get_posts(&#38;#39;cat=1&#38;amp;&#38;amp;numberposts=0&#38;#39;);
if ( $catposts ) { //if there are any posts

  foreach($catposts as $single):
    setup_postdata($single);
    $post_date = mysql2date(&#38;quot;Ymd&#38;quot;, $single-&#38;gt;post_date);
    if ( $post_date == date(&#38;#39;Ymd&#38;#39;) ) {  // if post is from today, display
      $count++;
      if ( $count &#38;lt; 6 ) {  // only process 5

        $result .= &#38;#39;&#38;lt;li&#38;gt;&#38;lt;a href=&#38;#39;;
        $result .=get_permalink($single-&#38;gt;ID).&#38;#39;&#38;gt;&#38;#39;.$single-&#38;gt;post_title.&#38;#39;&#38;lt;/a&#38;gt;&#38;lt;/li&#38;gt;&#38;#39;;
      }
    }
  endforeach;
if ($result ==&#38;#39;&#38;#39;){}
else{
echo &#38;quot;&#38;lt;h2 id=&#38;#39;latesth2&#38;#39; class=&#38;#39;sectionhead&#38;#39;&#38;gt;&#38;lt;a href=&#38;#39;/category/breaking/&#38;#39;&#38;gt;The Latest&#38;lt;/a&#38;gt;&#38;lt;/h2&#38;gt;&#38;lt;ul&#38;gt;&#38;quot;;
echo $result.&#38;quot;&#38;lt;/ul&#38;gt;&#38;quot;;
}
}
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This has it where the section heading of &#34;breaking&#34; only shows when posts meet the requirement category and date / time requirement.&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
</item>
<item>
<title>newkind on "Query Crash ?"</title>
<link>http://wordpress.org/support/topic/332116#post-1282506</link>
<pubDate>Sun, 15 Nov 2009 23:56:02 +0000</pubDate>
<dc:creator>newkind</dc:creator>
<guid isPermaLink="false">1282506@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I'm using query_posts on my archive, category, tags etc. pages for controlling more parameters like number of displayed posts for different things. I noticed lately something weird. When for an example i set category page to show 1 post per page and go to the page 3 (sometimes 4 or 5) the query seems to crash. No posts are displayed, category title (or month - depends on what page I am) dissappear ... I tried to echo $query_string for debugging and for the first pages it displays everything fine but when query crashes it dissappears with everything else. Any ideas or similar issues ?&#60;/p&#62;
&#60;p&#62;I'm using standard loop :&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php query_posts($query_string.&#38;#39;&#38;amp;posts_per_page=&#38;#39;.$archive_postnum.&#38;#39;&#38;amp;paged=&#38;#39;.$paged); ?&#38;gt;
&#38;lt;?php if (have_posts()) : ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Thanks&#60;/p&#62;
&#60;p&#62;P.S this happens on all wordpress versions including 2.8.6
&#60;/p&#62;</description>
</item>
<item>
<title>katmassive on "dyanmic landing page template based on custom field"</title>
<link>http://wordpress.org/support/topic/326520#post-1282437</link>
<pubDate>Sun, 15 Nov 2009 22:56:58 +0000</pubDate>
<dc:creator>katmassive</dc:creator>
<guid isPermaLink="false">1282437@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Never mind used this instead...&#60;br /&#62;
&#60;a href=&#34;http://wordpress.org/support/topic/306790&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/support/topic/306790&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Just in case anyones tryna do the same thing ...
&#60;/p&#62;</description>
</item>
<item>
<title>katmassive on "dyanmic landing page template based on custom field"</title>
<link>http://wordpress.org/support/topic/326520#post-1282021</link>
<pubDate>Sun, 15 Nov 2009 12:50:01 +0000</pubDate>
<dc:creator>katmassive</dc:creator>
<guid isPermaLink="false">1282021@http://wordpress.org/support/</guid>
<description>&#60;p&#62;k one minor hiccup how do i get it to show the loop a minimum of 4 times...&#60;/p&#62;
&#60;p&#62;thanks in advance.
&#60;/p&#62;</description>
</item>
<item>
<title>katmassive on "dyanmic landing page template based on custom field"</title>
<link>http://wordpress.org/support/topic/326520#post-1281984</link>
<pubDate>Sun, 15 Nov 2009 11:09:30 +0000</pubDate>
<dc:creator>katmassive</dc:creator>
<guid isPermaLink="false">1281984@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Thanks guys this helped me alot after hours of tryna get it done myself.
&#60;/p&#62;</description>
</item>
<item>
<title>cinemadiving on "How to Display 4 Posts on Home Page Except From Featured Category"</title>
<link>http://wordpress.org/support/topic/331159#post-1279331</link>
<pubDate>Thu, 12 Nov 2009 22:39:23 +0000</pubDate>
<dc:creator>cinemadiving</dc:creator>
<guid isPermaLink="false">1279331@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Hi MichaelH&#60;/p&#62;
&#60;p&#62;You're a star! Thanks so much for your help ... I really appreciate it.&#60;/p&#62;
&#60;p&#62;Cheers,&#60;br /&#62;
Gregg
&#60;/p&#62;</description>
</item>
<item>
<title>MichaelH on "How to Display 4 Posts on Home Page Except From Featured Category"</title>
<link>http://wordpress.org/support/topic/331159#post-1279281</link>
<pubDate>Thu, 12 Nov 2009 22:04:02 +0000</pubDate>
<dc:creator>MichaelH</dc:creator>
<guid isPermaLink="false">1279281@http://wordpress.org/support/</guid>
<description>&#60;p&#62;For the section beginning with endwhle, ending with wp_reset_query try:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php endwhile;

} else {

&#38;lt;p class=&#38;quot;no-data&#38;quot;&#38;gt;&#38;lt;?php _e(&#38;#39;Sorry, no posts matched your criteria.&#38;#39;, &#38;#39;hybrid&#38;#39;); ?&#38;gt;&#38;lt;/p&#38;gt;

&#38;lt;?php } ?&#38;gt;  

wp_reset_query();  // Restore global post data stomped by the_post().
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>

</channel>
</rss>
