<?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 User Favorites: LeaseahB</title>
<link>http://wordpress.org/support/</link>
<description>WordPress &#8250; Support User Favorites: LeaseahB</description>
<language>en</language>
<pubDate>Tue, 24 Nov 2009 03:11:40 +0000</pubDate>

<item>
<title>LeaseahB on "List post titles in a certain category"</title>
<link>http://wordpress.org/support/topic/69799#post-537956</link>
<pubDate>Wed, 28 Mar 2007 18:14:54 +0000</pubDate>
<dc:creator>LeaseahB</dc:creator>
<guid isPermaLink="false">537956@http://wordpress.org/support/</guid>
<description>&#60;pre&#62;&#60;code&#62;&#38;lt;?php
$photog_posts = get_posts(&#38;quot;category=24&#38;#38;numberposts=-1&#38;quot;); foreach($photog_posts as $post) : setup_postdata($post);
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I think it should be single quotes around the category and numberposts statement like this:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
$photog_posts = get_posts(&#38;#39;category=24&#38;#38;numberposts=-1&#38;#39;); foreach($photog_posts as $post) : setup_postdata($post);
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Try that. That's what is working for me. &#60;/p&#62;
&#60;p&#62;On another note, is there a way to reverse the order of the list? from oldest to newest?&#60;/p&#62;
&#60;p&#62;Lisa B.
&#60;/p&#62;</description>
</item>
<item>
<title>archasek on "List post titles in a certain category"</title>
<link>http://wordpress.org/support/topic/69799#post-537208</link>
<pubDate>Tue, 27 Mar 2007 08:25:49 +0000</pubDate>
<dc:creator>archasek</dc:creator>
<guid isPermaLink="false">537208@http://wordpress.org/support/</guid>
<description>&#60;p&#62;help i need that too ;) im beggin, please :)
&#60;/p&#62;</description>
</item>
<item>
<title>maciek773 on "List post titles in a certain category"</title>
<link>http://wordpress.org/support/topic/69799#post-536877</link>
<pubDate>Mon, 26 Mar 2007 15:48:44 +0000</pubDate>
<dc:creator>maciek773</dc:creator>
<guid isPermaLink="false">536877@http://wordpress.org/support/</guid>
<description>&#60;p&#62;any1?
&#60;/p&#62;</description>
</item>
<item>
<title>maciek773 on "List post titles in a certain category"</title>
<link>http://wordpress.org/support/topic/69799#post-536759</link>
<pubDate>Mon, 26 Mar 2007 07:29:06 +0000</pubDate>
<dc:creator>maciek773</dc:creator>
<guid isPermaLink="false">536759@http://wordpress.org/support/</guid>
<description>&#60;p&#62;$cat doesnt work for me. when i add id works well. code (category.php):&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;ul&#38;gt;

&#38;lt;?php
$photog_posts = get_posts(&#38;quot;category=24&#38;#38;numberposts=-1&#38;quot;); foreach($photog_posts as $post) : setup_postdata($post);
?&#38;gt;
	&#38;lt;li&#38;gt;

		&#38;lt;h1&#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;&#38;lt;?php the_title(); ?&#38;gt;&#38;quot;&#38;gt;&#38;lt;?php the_title(); ?&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;/h1&#38;gt;

		&#38;lt;?php the_excerpt_reloaded(60, &#38;#39;&#38;lt;a&#38;gt;&#38;lt;img&#38;gt;&#38;lt;p/&#38;gt;&#38;#39;, &#38;#39;excerpt&#38;#39;, TRUE, &#38;#39;Czytaj dalej...
&#38;#39;, FALSE, 1, TRUE); ?&#38;gt;

	&#38;lt;/li&#38;gt;

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

&#38;lt;/ul&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>syncbox on "List post titles in a certain category"</title>
<link>http://wordpress.org/support/topic/69799#post-536539</link>
<pubDate>Sun, 25 Mar 2007 19:41:50 +0000</pubDate>
<dc:creator>syncbox</dc:creator>
<guid isPermaLink="false">536539@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Is there any way to use the code samples (to list a specific category's titles or titles and content) above but have it generate only 1 or 2 posts randomly?&#60;/p&#62;
&#60;p&#62;I've tried using the custom query plugin but it doesn't seem to actually limit to a specific category, despite what the plugin author says.&#60;/p&#62;
&#60;p&#62;I basically would like to show 2 or 3 posts (title and content) from a specific category on my homepage.&#60;/p&#62;
&#60;p&#62;I've also looked at various randomizing plugins, but they don't allow me to choose the specific category.&#60;/p&#62;
&#60;p&#62;help greatly appreciated!
&#60;/p&#62;</description>
</item>
<item>
<title>LeaseahB on "List post titles in a certain category"</title>
<link>http://wordpress.org/support/topic/69799#post-535296</link>
<pubDate>Thu, 22 Mar 2007 22:25:04 +0000</pubDate>
<dc:creator>LeaseahB</dc:creator>
<guid isPermaLink="false">535296@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Kafkaesqui,&#60;/p&#62;
&#60;p&#62;Just wanted to say many, many thanks! I did what you listed here and it works perfectly. I was banging my head trying to go through the documentation trying to figure out what I was doing wrong. I'm so thankful I came across your answer here!&#60;/p&#62;
&#60;p&#62;Thank you! Thank you! Thank you!&#60;br /&#62;
Lisa B.
&#60;/p&#62;</description>
</item>
<item>
<title>minter on "List post titles in a certain category"</title>
<link>http://wordpress.org/support/topic/69799#post-533930</link>
<pubDate>Tue, 20 Mar 2007 01:54:46 +0000</pubDate>
<dc:creator>minter</dc:creator>
<guid isPermaLink="false">533930@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I've used this code in a sidebar, and am getting odd results.  While I'm getting an li entry for each post in the category I've chosen, the title and link are for the most recent post on the front page.  It seems like the setup_postdata isn't taking the variable defined in the foreach, instead getting the other post.  Thoughts?&#60;/p&#62;
&#60;p&#62;Here's the code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;ul&#38;gt;&#38;lt;li&#38;gt;&#38;lt;h2&#38;gt;IE Missions&#38;lt;/h2&#38;gt;
&#38;lt;ul&#38;gt;
&#38;lt;?php
$mission_posts = get_posts(&#38;#39;category=6&#38;#38;numberposts=-1&#38;#39;); foreach($mission_posts as $mypost) : setup_postdata($mypost);
?&#38;gt;
&#38;lt;li&#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;Permalink to &#38;lt;?php the_title(); ?&#38;gt;&#38;quot;&#38;gt;&#38;lt;?php the_title(); ?&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;/li&#38;gt;
&#38;lt;?php endforeach; ?&#38;gt;
&#38;lt;/ul&#38;gt;
&#38;lt;/li&#38;gt;&#38;lt;/ul&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>thopunk on "List post titles in a certain category"</title>
<link>http://wordpress.org/support/topic/69799#post-526042</link>
<pubDate>Sun, 04 Mar 2007 01:26:26 +0000</pubDate>
<dc:creator>thopunk</dc:creator>
<guid isPermaLink="false">526042@http://wordpress.org/support/</guid>
<description>&#60;p&#62;how can i sort this code from OLDEST to NEWEST.
&#60;/p&#62;</description>
</item>
<item>
<title>Dash on "List post titles in a certain category"</title>
<link>http://wordpress.org/support/topic/69799#post-467019</link>
<pubDate>Wed, 01 Nov 2006 23:13:28 +0000</pubDate>
<dc:creator>Dash</dc:creator>
<guid isPermaLink="false">467019@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Federico &#38;#38; Kafka,&#60;/p&#62;
&#60;p&#62;I tried to do the same thing, using&#60;br /&#62;
get_posts(&#34;category=$cat&#38;#38;numberposts=-1&#34;);&#60;/p&#62;
&#60;p&#62;but I got a wordpress database error that read &#34;Unknown column '$cat' in 'where clause'&#34;&#60;/p&#62;
&#60;p&#62;Any ideas on why this is the case? Thanks a bunch.&#60;br /&#62;
Dan
&#60;/p&#62;</description>
</item>
<item>
<title>chinaski on "List post titles in a certain category"</title>
<link>http://wordpress.org/support/topic/69799#post-453644</link>
<pubDate>Tue, 03 Oct 2006 02:57:46 +0000</pubDate>
<dc:creator>chinaski</dc:creator>
<guid isPermaLink="false">453644@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Yes, that works! ;)&#60;br /&#62;
Thanks x 1000.&#60;/p&#62;
&#60;p&#62;Federico.
&#60;/p&#62;</description>
</item>
<item>
<title>Kafkaesqui on "List post titles in a certain category"</title>
<link>http://wordpress.org/support/topic/69799#post-453638</link>
<pubDate>Tue, 03 Oct 2006 02:35:55 +0000</pubDate>
<dc:creator>Kafkaesqui</dc:creator>
<guid isPermaLink="false">453638@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Federico, &#60;code&#62;$cat&#60;/code&#62; is a global variable in WordPress which holds the current category ID -- on a category query/page. So:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;get_posts(&#38;quot;category=$cat&#38;#38;numberposts=-1&#38;quot;);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;should do what you're after.
&#60;/p&#62;</description>
</item>
<item>
<title>chinaski on "List post titles in a certain category"</title>
<link>http://wordpress.org/support/topic/69799#post-453635</link>
<pubDate>Tue, 03 Oct 2006 02:25:06 +0000</pubDate>
<dc:creator>chinaski</dc:creator>
<guid isPermaLink="false">453635@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I was searching in the WP support for help in listing post titles in a category and found this wonderfull tip.&#60;/p&#62;
&#60;p&#62;Tested and works like a charm. However, my only question is, how to replace &#34;a particular category&#34; for &#34;the current category&#34;?&#60;/p&#62;
&#60;p&#62;get_posts('category=10&#38;#38;numberposts=-1'); foreach($photog_posts as $post) : setup_postdata($post);&#60;/p&#62;
&#60;p&#62;this line gets post for the category #10, but what I need is to get posts for the &#60;strong&#62;current category&#60;/strong&#62;, because i'm using it in the archive.php general template.&#60;/p&#62;
&#60;p&#62;thanx in advance.&#60;/p&#62;
&#60;p&#62;Federico.
&#60;/p&#62;</description>
</item>
<item>
<title>katiebird on "List post titles in a certain category"</title>
<link>http://wordpress.org/support/topic/69799#post-375546</link>
<pubDate>Mon, 08 May 2006 02:29:19 +0000</pubDate>
<dc:creator>katiebird</dc:creator>
<guid isPermaLink="false">375546@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Oh, I guess you're saying that the code should be working for me.  So, I must just be doing something wrong.  &#60;/p&#62;
&#60;p&#62;And I guess I'll have to keep poking at it.  &#60;/p&#62;
&#60;p&#62;I do appreciate your help.
&#60;/p&#62;</description>
</item>
<item>
<title>katiebird on "List post titles in a certain category"</title>
<link>http://wordpress.org/support/topic/69799#post-375545</link>
<pubDate>Mon, 08 May 2006 02:27:54 +0000</pubDate>
<dc:creator>katiebird</dc:creator>
<guid isPermaLink="false">375545@http://wordpress.org/support/</guid>
<description>&#60;p&#62;&#34;Which means, you should use the code above, and before posting theoretical questions you can always test it ;)&#34;&#60;/p&#62;
&#60;p&#62;I did.  I tested all 3 examples and poked around for a couple of hours trying to get them to work before posting my question.  And also tried a couple of alternative samples too.&#60;/p&#62;
&#60;p&#62;I guess I should have said that explicitly.  But the fact is I've never asked a question without trying to solve the problem myself.&#60;/p&#62;
&#60;p&#62;;)
&#60;/p&#62;</description>
</item>
<item>
<title>moshu on "List post titles in a certain category"</title>
<link>http://wordpress.org/support/topic/69799#post-375380</link>
<pubDate>Sun, 07 May 2006 18:56:30 +0000</pubDate>
<dc:creator>moshu</dc:creator>
<guid isPermaLink="false">375380@http://wordpress.org/support/</guid>
<description>&#60;p&#62;You are mixing two very different things...&#60;/p&#62;
&#60;p&#62;What is commonly known as &#34;permalinks&#34; - more exactly the &#34;nice permalinks&#34; - has nothing to do with the template tag called &#60;em&#62;the_permalink&#60;/em&#62;.&#60;br /&#62;
Using the template tag (see details here: &#60;a href=&#34;http://codex.wordpress.org/Template_Tags/the_permalink&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Template_Tags/the_permalink&#60;/a&#62; ) is just a way to tell the WP engine to take you to the &#34;single post view&#34; of that post.&#60;/p&#62;
&#60;p&#62;Whether the 'visible' permanent link to that single post has a form in your address bar like:&#60;br /&#62;
example.com/?p=123&#60;br /&#62;
or&#60;br /&#62;
example.com/archive/this-is-my-post&#60;br /&#62;
..is completely irrelevant.&#60;/p&#62;
&#60;p&#62;Which means, you should use the code above, and before posting theoretical questions you can always test it ;)
&#60;/p&#62;</description>
</item>
<item>
<title>katiebird on "List post titles in a certain category"</title>
<link>http://wordpress.org/support/topic/69799#post-375341</link>
<pubDate>Sun, 07 May 2006 16:37:00 +0000</pubDate>
<dc:creator>katiebird</dc:creator>
<guid isPermaLink="false">375341@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I'm interested in something very similar to this.  I am currently maintaining pages that list links to each article in a particular category.&#60;/p&#62;
&#60;p&#62;These are 'special categories' that lots of my visitors like to check regularly.  And I don't want the whole post listed on the page -- just the title with a link to the article.&#60;/p&#62;
&#60;p&#62;But, I don't have permalinks enabled (I'm afraid of destroying my site by attempting it.)&#60;/p&#62;
&#60;p&#62;So, I don't think these solutions work for me (or I'm doing something else wrong?)&#60;/p&#62;
&#60;p&#62;Is there a way to implement a list like this by using something besides the permalink?&#60;/p&#62;
&#60;p&#62;Or possibly a permalinks for dummies instruction sheet :)  If they are absolutely required??&#60;/p&#62;
&#60;p&#62;Any help would be wildly appreciated.
&#60;/p&#62;</description>
</item>
<item>
<title>wynderlon on "List post titles in a certain category"</title>
<link>http://wordpress.org/support/topic/69799#post-367321</link>
<pubDate>Sat, 22 Apr 2006 04:36:43 +0000</pubDate>
<dc:creator>wynderlon</dc:creator>
<guid isPermaLink="false">367321@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Perfect, thanks! I was just missing a few odds and ends in the code. :)
&#60;/p&#62;</description>
</item>
<item>
<title>Kafkaesqui on "List post titles in a certain category"</title>
<link>http://wordpress.org/support/topic/69799#post-367175</link>
<pubDate>Fri, 21 Apr 2006 19:59:50 +0000</pubDate>
<dc:creator>Kafkaesqui</dc:creator>
<guid isPermaLink="false">367175@http://wordpress.org/support/</guid>
<description>&#60;p&#62;In a list:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;ul&#38;gt;&#38;lt;li&#38;gt;&#38;lt;h2&#38;gt;Photography&#38;lt;/h2&#38;gt;&#60;br /&#62;
&#38;lt;ul&#38;gt;&#60;br /&#62;
&#38;lt;?php &#60;br /&#62;
query_posts(&#38;#39;category_name=Photography&#38;#38;showposts=-1&#38;#39;); while(have_posts()) : the_post(); &#60;br /&#62;
?&#38;gt;&#60;br /&#62;
&#38;lt;li&#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;Permalink to &#38;lt;?php the_title(); ?&#38;gt;&#38;quot;&#38;gt;&#38;lt;?php the_title(); ?&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;/li&#38;gt;&#60;br /&#62;
&#38;lt;?php endwhile; ?&#38;gt;&#60;br /&#62;
&#38;lt;/ul&#38;gt;&#60;br /&#62;
&#38;lt;/li&#38;gt;&#38;lt;/ul&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Reference:&#60;br /&#62;
&#60;a href=&#34;http://codex.wordpress.org/Template_Tags/query_posts&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Template_Tags/query_posts&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;It's possible this might cause conflicts with an existing post loop on the page, so this is an alternative:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;ul&#38;gt;&#38;lt;li&#38;gt;&#38;lt;h2&#38;gt;Photography&#38;lt;/h2&#38;gt;&#60;br /&#62;
&#38;lt;ul&#38;gt;&#60;br /&#62;
&#38;lt;?php &#60;br /&#62;
$photog_posts = new WP_Query(&#38;#39;category_name=Photography&#38;#38;showposts=-1&#38;#39;); while($photog_posts-&#38;gt;have_posts()) : $photog_posts-&#38;gt;the_post(); &#60;br /&#62;
?&#38;gt;&#60;br /&#62;
&#38;lt;li&#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;Permalink to &#38;lt;?php the_title(); ?&#38;gt;&#38;quot;&#38;gt;&#38;lt;?php the_title(); ?&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;/li&#38;gt;&#60;br /&#62;
&#38;lt;?php endwhile; ?&#38;gt;&#60;br /&#62;
&#38;lt;/ul&#38;gt;&#60;br /&#62;
&#38;lt;/li&#38;gt;&#38;lt;/ul&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Reference:&#60;br /&#62;
&#60;a href=&#34;http://codex.wordpress.org/Function_Reference/WP_Query&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/WP_Query&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;And one more option (assumes &#34;Photography&#34; has the category ID &#60;code&#62;10&#60;/code&#62;):&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#38;lt;ul&#38;gt;&#38;lt;li&#38;gt;&#38;lt;h2&#38;gt;Photography&#38;lt;/h2&#38;gt;&#60;br /&#62;
&#38;lt;ul&#38;gt;&#60;br /&#62;
&#38;lt;?php&#60;br /&#62;
$photog_posts = get_posts(&#38;#39;category=10&#38;#38;numberposts=-1&#38;#39;); foreach($photog_posts as $post) : setup_postdata($post);&#60;br /&#62;
?&#38;gt;&#60;br /&#62;
&#38;lt;li&#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;Permalink to &#38;lt;?php the_title(); ?&#38;gt;&#38;quot;&#38;gt;&#38;lt;?php the_title(); ?&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;/li&#38;gt;&#60;br /&#62;
&#38;lt;?php endforeach; ?&#38;gt;&#60;br /&#62;
&#38;lt;/ul&#38;gt;&#60;br /&#62;
&#38;lt;/li&#38;gt;&#38;lt;/ul&#38;gt;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Reference:&#60;br /&#62;
&#60;a href=&#34;http://codex.wordpress.org/Template_Tags/get_posts&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Template_Tags/get_posts&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Options, baby...
&#60;/p&#62;</description>
</item>
<item>
<title>wynderlon on "List post titles in a certain category"</title>
<link>http://wordpress.org/support/topic/69799#post-367161</link>
<pubDate>Fri, 21 Apr 2006 19:35:52 +0000</pubDate>
<dc:creator>wynderlon</dc:creator>
<guid isPermaLink="false">367161@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I think I'm going blind, because I cannot find the answer to this and yet it seems fairly simple. In my sidebar, I want to make a &#34;Photography&#34; sub-header, then underneath it list all the titles of the posts within the &#34;Photography&#34; category. Is there a way to do this? Thanks. :)
&#60;/p&#62;</description>
</item>

</channel>
</rss>
