<?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: How to showcase TWO different posts using &#62; query_posts</title>
<link>http://wordpress.org/support/</link>
<description>WordPress &#8250; Support Topic: How to showcase TWO different posts using &#62; query_posts</description>
<language>en</language>
<pubDate>Mon, 06 Jul 2009 00:22:39 +0000</pubDate>

<item>
<title>amylooo on "How to showcase TWO different posts using &#62; query_posts"</title>
<link>http://wordpress.org/support/topic/85423#post-501145</link>
<pubDate>Sat, 20 Jan 2007 00:23:25 +0000</pubDate>
<dc:creator>amylooo</dc:creator>
<guid isPermaLink="false">501145@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I have the same error on the index page at &#60;a href=&#34;http://www.amyloo.com/clipoftheweek&#34; rel=&#34;nofollow&#34;&#62;http://www.amyloo.com/clipoftheweek&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Like one of the first posters in this thread, it happened after I added a query_post -- in my case to exclude a particular category of posts from the index. &#60;/p&#62;
&#60;p&#62;Like the just-previous poster, I isolated the troublemaker. It's the theme; when I revert to the basic theme, the error goes away. Problem is the thememaker says my question is beyond his scope of support &#60;a href=&#34;http://forums.wpthemes.info/comments.php?DiscussionID=126/&#34; rel=&#34;nofollow&#34;&#62;http://forums.wpthemes.info/comments.php?DiscussionID=126/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;So now what? I'll likely end up starting over with a new theme based on the default rather than modifying a theme that doesn't look anything like what I ended up with anyway! But for a quick fix, I thought it might be worth asking if anybody has any ideas. Thanks. &#60;/p&#62;
&#60;p&#62;/amyloo
&#60;/p&#62;</description>
</item>
<item>
<title>giles on "How to showcase TWO different posts using &#62; query_posts"</title>
<link>http://wordpress.org/support/topic/85423#post-454833</link>
<pubDate>Thu, 05 Oct 2006 21:15:31 +0000</pubDate>
<dc:creator>giles</dc:creator>
<guid isPermaLink="false">454833@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I had this very same problem ... it was fixed very easily ... i went through disabling all my plugins one by one .. the 3rd plugin i disabled fixed it .. it was my Adhesive plugin that was messing it up.&#60;br /&#62;
&#60;a href=&#34;http://www.redalt.com/downloads/&#34; rel=&#34;nofollow&#34;&#62;http://www.redalt.com/downloads/&#60;/a&#62; was where it was from .. and now doesn't seem to be kept up to date .. so if i need sticky posts i won't be using it any more !
&#60;/p&#62;</description>
</item>
<item>
<title>gs06 on "How to showcase TWO different posts using &#62; query_posts"</title>
<link>http://wordpress.org/support/topic/85423#post-438996</link>
<pubDate>Mon, 04 Sep 2006 19:45:14 +0000</pubDate>
<dc:creator>gs06</dc:creator>
<guid isPermaLink="false">438996@http://wordpress.org/support/</guid>
<description>&#60;p&#62;anyone ?
&#60;/p&#62;</description>
</item>
<item>
<title>gs06 on "How to showcase TWO different posts using &#62; query_posts"</title>
<link>http://wordpress.org/support/topic/85423#post-438249</link>
<pubDate>Sun, 03 Sep 2006 14:59:48 +0000</pubDate>
<dc:creator>gs06</dc:creator>
<guid isPermaLink="false">438249@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Thanks Viper007Bond.&#60;br /&#62;
i tried it&#60;br /&#62;
but this line &#38;gt;&#38;gt;&#60;br /&#62;
&#38;lt;?php else : ?&#38;gt;&#60;br /&#62;
keeps coming as error  &#38;gt; &#38;gt;  parse error, unexpected $&#60;br /&#62;
i tried to delete the line&#60;br /&#62;
no good &#60;/p&#62;
&#60;p&#62;tried to delete&#60;/p&#62;
&#60;p&#62;&#38;lt;?php else : ?&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;?php _e('Sorry, no posts matched your criteria.'); ?&#38;gt;&#60;/p&#62;
&#60;p&#62;&#38;lt;?php endif ?&#38;gt;&#60;/p&#62;
&#60;p&#62;no good&#60;/p&#62;
&#60;p&#62;suggestions ?
&#60;/p&#62;</description>
</item>
<item>
<title>Viper007Bond on "How to showcase TWO different posts using &#62; query_posts"</title>
<link>http://wordpress.org/support/topic/85423#post-436976</link>
<pubDate>Fri, 01 Sep 2006 05:08:18 +0000</pubDate>
<dc:creator>Viper007Bond</dc:creator>
<guid isPermaLink="false">436976@http://wordpress.org/support/</guid>
<description>&#60;p&#62;You need to add the code as I mentioned above. ;)&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastecode.com/4030&#34; rel=&#34;nofollow&#34;&#62;http://pastecode.com/4030&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>gs06 on "How to showcase TWO different posts using &#62; query_posts"</title>
<link>http://wordpress.org/support/topic/85423#post-436525</link>
<pubDate>Thu, 31 Aug 2006 14:04:07 +0000</pubDate>
<dc:creator>gs06</dc:creator>
<guid isPermaLink="false">436525@http://wordpress.org/support/</guid>
<description>&#60;p&#62;sure&#60;/p&#62;
&#60;p&#62;here you go :&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastecode.com/3993&#34; rel=&#34;nofollow&#34;&#62;http://pastecode.com/3993&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>Viper007Bond on "How to showcase TWO different posts using &#62; query_posts"</title>
<link>http://wordpress.org/support/topic/85423#post-436430</link>
<pubDate>Thu, 31 Aug 2006 08:46:21 +0000</pubDate>
<dc:creator>Viper007Bond</dc:creator>
<guid isPermaLink="false">436430@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Please post the contents of your entire home.php or whatever: &#60;a href=&#34;http://pastecode.com&#34; rel=&#34;nofollow&#34;&#62;http://pastecode.com&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>gs06 on "How to showcase TWO different posts using &#62; query_posts"</title>
<link>http://wordpress.org/support/topic/85423#post-436327</link>
<pubDate>Thu, 31 Aug 2006 01:09:46 +0000</pubDate>
<dc:creator>gs06</dc:creator>
<guid isPermaLink="false">436327@http://wordpress.org/support/</guid>
<description>&#60;p&#62;the 2 posts are there but then&#60;br /&#62;
i get a bunch of strange error-posts :&#60;/p&#62;
&#60;p&#62;Category: Uncategorized&#60;/p&#62;
&#60;p&#62;WordPress database error: [You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND comment_approved = '1'' at line 1]&#60;br /&#62;
SELECT COUNT(comment_ID) FROM wp_comments WHERE comment_post_ID = AND comment_approved = '1';&#60;br /&#62;
0 Comments&#60;/p&#62;
&#60;p&#62;, Edit This&#60;/p&#62;
&#60;p&#62;Category: Uncategorized&#60;/p&#62;
&#60;p&#62;WordPress database error: [You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND comment_approved = '1'' at line 1]&#60;br /&#62;
SELECT COUNT(comment_ID) FROM wp_comments WHERE comment_post_ID = AND comment_approved = '1';&#60;br /&#62;
0 Comments&#60;/p&#62;
&#60;p&#62;, Edit This&#60;/p&#62;
&#60;p&#62;Category: Uncategorized&#60;/p&#62;
&#60;p&#62;WordPress database error: [You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND comment_approved = '1'' at line 1]&#60;br /&#62;
SELECT COUNT(comment_ID) FROM wp_comments WHERE comment_post_ID = AND comment_approved = '1';&#60;br /&#62;
0 Comments&#60;/p&#62;
&#60;p&#62;, Edit This&#60;/p&#62;
&#60;p&#62;Category: Uncategorized&#60;/p&#62;
&#60;p&#62;WordPress database error: [You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND comment_approved = '1'' at line 1]&#60;br /&#62;
SELECT COUNT(comment_ID) FROM wp_comments WHERE comment_post_ID = AND comment_approved = '1';
&#60;/p&#62;</description>
</item>
<item>
<title>miklb on "How to showcase TWO different posts using &#62; query_posts"</title>
<link>http://wordpress.org/support/topic/85423#post-436312</link>
<pubDate>Thu, 31 Aug 2006 00:45:56 +0000</pubDate>
<dc:creator>miklb</dc:creator>
<guid isPermaLink="false">436312@http://wordpress.org/support/</guid>
<description>&#60;p&#62;He means what was the jibrish exactly?
&#60;/p&#62;</description>
</item>
<item>
<title>gs06 on "How to showcase TWO different posts using &#62; query_posts"</title>
<link>http://wordpress.org/support/topic/85423#post-436311</link>
<pubDate>Thu, 31 Aug 2006 00:42:56 +0000</pubDate>
<dc:creator>gs06</dc:creator>
<guid isPermaLink="false">436311@http://wordpress.org/support/</guid>
<description>&#60;p&#62;yea exactlly&#60;br /&#62;
got jibrish as well&#60;br /&#62;
how do i incoperate your code&#60;br /&#62;
to my home.php page ?
&#60;/p&#62;</description>
</item>
<item>
<title>Viper007Bond on "How to showcase TWO different posts using &#62; query_posts"</title>
<link>http://wordpress.org/support/topic/85423#post-436303</link>
<pubDate>Thu, 31 Aug 2006 00:28:32 +0000</pubDate>
<dc:creator>Viper007Bond</dc:creator>
<guid isPermaLink="false">436303@http://wordpress.org/support/</guid>
<description>&#60;blockquote&#62;&#60;p&#62;tried, but got jibrish&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;Okay, what was it?
&#60;/p&#62;</description>
</item>
<item>
<title>gs06 on "How to showcase TWO different posts using &#62; query_posts"</title>
<link>http://wordpress.org/support/topic/85423#post-436285</link>
<pubDate>Wed, 30 Aug 2006 22:50:58 +0000</pubDate>
<dc:creator>gs06</dc:creator>
<guid isPermaLink="false">436285@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Thanks&#60;/p&#62;
&#60;p&#62;tried, but got jibrish&#60;/p&#62;
&#60;p&#62;i used the code as follows:&#60;/p&#62;
&#60;p&#62;&#38;lt;?php get_header(); ?&#38;gt;&#60;br /&#62;
&#38;lt;?php get_sidebar(); ?&#38;gt;&#60;br /&#62;
&#38;lt;?php&#60;br /&#62;
$posts = $wpdb-&#38;gt;get_results(&#34;SELECT * FROM $wpdb-&#38;gt;posts WHERE ID='21' OR ID='43'&#34;);&#60;br /&#62;
?&#38;gt;&#60;/p&#62;
&#60;p&#62;this is not on my index page but home.php&#60;br /&#62;
what am i doing wrong ?
&#60;/p&#62;</description>
</item>
<item>
<title>Viper007Bond on "How to showcase TWO different posts using &#62; query_posts"</title>
<link>http://wordpress.org/support/topic/85423#post-436282</link>
<pubDate>Wed, 30 Aug 2006 22:41:49 +0000</pubDate>
<dc:creator>Viper007Bond</dc:creator>
<guid isPermaLink="false">436282@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I don't believe you can use &#60;code&#62;query_posts()&#60;/code&#62; for that (mutliple posts), but I'm not sure.&#60;/p&#62;
&#60;p&#62;Just use this instead:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$posts = $wpdb-&#38;gt;get_results(&#38;quot;SELECT * FROM $wpdb-&#38;gt;posts WHERE ID=&#38;#39;21&#38;#39; OR ID=&#38;#39;43&#38;#39;&#38;quot;);&#60;/code&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>gs06 on "How to showcase TWO different posts using &#62; query_posts"</title>
<link>http://wordpress.org/support/topic/85423#post-436275</link>
<pubDate>Wed, 30 Aug 2006 22:27:14 +0000</pubDate>
<dc:creator>gs06</dc:creator>
<guid isPermaLink="false">436275@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Hi guys,&#60;/p&#62;
&#60;p&#62;sorry for the multiple questions :)&#60;/p&#62;
&#60;p&#62;I would like to showcase TWO different posts on my welcome page&#60;/p&#62;
&#60;p&#62;in my home.php I placed the query_posts tag&#60;br /&#62;
but i get only ONE post&#60;br /&#62;
here is the tag i am using:&#60;/p&#62;
&#60;p&#62;&#38;lt;?php&#60;br /&#62;
query_posts('p=21,43');&#60;br /&#62;
?&#38;gt;&#60;/p&#62;
&#60;p&#62;any suggestions how i get both post id=21, and below it post id=43 ?&#60;/p&#62;
&#60;p&#62;Thank you !
&#60;/p&#62;</description>
</item>

</channel>
</rss>
