<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<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">
	<channel>
		<title>Support Forum - Topic: Latest Posts In Specific Category</title>
		<link>http://www.kriesi.at/support/topic/latest-posts-in-specific-category</link>
		<description>Support Forum - Topic: Latest Posts In Specific Category</description>
		<language>en-US</language>
		<pubDate>Thu, 23 May 2013 16:47:08 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/topic/latest-posts-in-specific-category" rel="self" type="application/rss+xml" />

		<item>
			<title>ptvguy on "Latest Posts In Specific Category"</title>
			<link>http://www.kriesi.at/support/topic/latest-posts-in-specific-category#post-36303</link>
			<pubDate>Mon, 02 Jan 2012 01:20:34 +0000</pubDate>
			<dc:creator>ptvguy</dc:creator>
			<guid isPermaLink="false">36303@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;One other thing I forgot about. You have to add the following code to the functions.php file to make use of WordPress thumbnail images.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;/* Activate native WordPress Post Thumbnails */

if ( function_exists( &#38;#39;add_theme_support&#38;#39; ) ) {
  add_theme_support( &#38;#39;post-thumbnails&#38;#39; );
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Dude on "Latest Posts In Specific Category"</title>
			<link>http://www.kriesi.at/support/topic/latest-posts-in-specific-category#post-35668</link>
			<pubDate>Wed, 21 Dec 2011 16:49:22 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">35668@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Glad that Chris could help you :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ptvguy on "Latest Posts In Specific Category"</title>
			<link>http://www.kriesi.at/support/topic/latest-posts-in-specific-category#post-35622</link>
			<pubDate>Wed, 21 Dec 2011 05:19:25 +0000</pubDate>
			<dc:creator>ptvguy</dc:creator>
			<guid isPermaLink="false">35622@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thanks, I always forget about backticks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Beard on "Latest Posts In Specific Category"</title>
			<link>http://www.kriesi.at/support/topic/latest-posts-in-specific-category#post-35613</link>
			<pubDate>Wed, 21 Dec 2011 01:31:41 +0000</pubDate>
			<dc:creator>Chris Beard</dc:creator>
			<guid isPermaLink="false">35613@http://www.kriesi.at/support/</guid>
			<description>&#60;pre&#62;&#60;code&#62;&#38;lt;?php
global $post;
$args = array( &#38;#39;numberposts&#38;#39; =&#38;gt; 1, &#38;#39;offset&#38;#39; =&#38;gt; 0, &#38;#39;category&#38;#39; =&#38;gt; 4 );
$myposts = get_posts( $args );
foreach( $myposts as $post ) :	setup_postdata($post); ?&#38;gt;
&#38;lt;h3&#38;gt;&#38;lt;a href=&#38;quot;&#38;lt;?php the_permalink(); ?&#38;gt;&#38;quot;&#38;gt;&#38;lt;?php the_title(); ?&#38;gt;&#38;lt;/a&#38;gt;&#38;lt;/h3&#38;gt;
&#38;lt;?php if ( has_post_thumbnail()) : ?&#38;gt;
   &#38;lt;a href=&#38;quot;&#38;lt;?php the_permalink(); ?&#38;gt;&#38;quot; title=&#38;quot;&#38;lt;?php the_title_attribute(); ?&#38;gt;&#38;quot; &#38;gt;
   &#38;lt;?php the_post_thumbnail(&#38;#39;thumbnail&#38;#39;, array(&#38;#39;class&#38;#39; =&#38;gt; &#38;#39;alignleft&#38;#39;)); ?&#38;gt;
   &#38;lt;/a&#38;gt;
&#38;lt;?php endif; ?&#38;gt;
&#38;lt;?php the_excerpt(); ?&#38;gt;
&#38;lt;?php endforeach; ?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You can post code between backticks.&#60;br /&#62;
Thanks for sharing, I'll tell Kriesi about this :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ptvguy on "Latest Posts In Specific Category"</title>
			<link>http://www.kriesi.at/support/topic/latest-posts-in-specific-category#post-35468</link>
			<pubDate>Tue, 20 Dec 2011 02:11:26 +0000</pubDate>
			<dc:creator>ptvguy</dc:creator>
			<guid isPermaLink="false">35468@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Apparently, that code just won't display here.  I've uploaded it to &#60;a href=&#34;http://wwwtest.soptv.org/code.txt&#34;&#62;here&#60;/a&#62;.  Maybe some admin can get it to post correctly.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ptvguy on "Latest Posts In Specific Category"</title>
			<link>http://www.kriesi.at/support/topic/latest-posts-in-specific-category#post-35466</link>
			<pubDate>Tue, 20 Dec 2011 01:38:38 +0000</pubDate>
			<dc:creator>ptvguy</dc:creator>
			<guid isPermaLink="false">35466@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;For some reason, part of the code was stripped from that comment.  I'll try it again.&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
&#38;lt;?php&#60;br /&#62;
global $post;&#60;br /&#62;
$args = array( 'numberposts' =&#38;gt; 1, 'offset' =&#38;gt; 0, 'category' =&#38;gt; 4 );&#60;br /&#62;
$myposts = get_posts( $args );&#60;br /&#62;
foreach( $myposts as $post ) :	setup_postdata($post); ?&#38;gt;&#60;br /&#62;
[box type=&#34;alert&#34;]&#60;a&#62;&#34;&#38;gt;&#38;lt;?php the_title(); ?&#38;gt;&#60;/a&#62;[/box]&#60;br /&#62;
&#38;lt;?php if ( has_post_thumbnail()) : ?&#38;gt;&#60;br /&#62;
&#60;a&#62;&#34; title=&#34;&#38;lt;?php the_title_attribute(); ?&#38;gt;&#34; &#38;gt;&#60;br /&#62;
&#38;lt;?php the_post_thumbnail('thumbnail', array('class' =&#38;gt; 'alignleft')); ?&#38;gt;&#60;br /&#62;
&#60;/a&#62;&#60;br /&#62;
&#38;lt;?php endif; ?&#38;gt;&#60;br /&#62;
&#38;lt;?php the_excerpt(); ?&#38;gt;&#60;br /&#62;
&#38;lt;?php endforeach; ?&#38;gt;&#60;br /&#62;
&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>ptvguy on "Latest Posts In Specific Category"</title>
			<link>http://www.kriesi.at/support/topic/latest-posts-in-specific-category#post-35464</link>
			<pubDate>Tue, 20 Dec 2011 01:32:48 +0000</pubDate>
			<dc:creator>ptvguy</dc:creator>
			<guid isPermaLink="false">35464@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I'm using the following code to pull the latest posts from the &#34;Announcements&#34; category into a slider on &#60;a href=&#34;http://wwwtest.soptv.org/&#34;&#62;the homepage I'm setting up&#60;/a&#62;.  A zero offset gets the latest post and a one gets the second latest and so on.&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
&#38;lt;?php&#60;br /&#62;
global $post;&#60;br /&#62;
$args = array( 'numberposts' =&#38;gt; 1, 'offset' =&#38;gt; 0, 'category' =&#38;gt; 4 );&#60;br /&#62;
$myposts = get_posts( $args );&#60;br /&#62;
foreach( $myposts as $post ) :	setup_postdata($post); ?&#38;gt;&#60;br /&#62;
&#38;lt;h3&#38;gt;&#60;a&#62;&#34;&#38;gt;&#38;lt;?php the_title(); ?&#38;gt;&#60;/a&#62;&#38;lt;/h3&#38;gt;&#60;br /&#62;
&#38;lt;?php if ( has_post_thumbnail()) : ?&#38;gt;&#60;br /&#62;
   &#60;a&#62;&#34; title=&#34;&#38;lt;?php the_title_attribute(); ?&#38;gt;&#34; &#38;gt;&#60;br /&#62;
   &#38;lt;?php the_post_thumbnail('thumbnail', array('class' =&#38;gt; 'alignleft')); ?&#38;gt;&#60;br /&#62;
   &#60;/a&#62;&#60;br /&#62;
&#38;lt;?php endif; ?&#38;gt;&#60;br /&#62;
&#38;lt;?php the_excerpt(); ?&#38;gt;&#60;br /&#62;
&#38;lt;?php endforeach; ?&#38;gt;&#60;br /&#62;
&#60;/code&#62;&#60;br /&#62;
The problem is that doing it this way requires the EXEC-PHP plugin.  It seems to me that something this basic would make a great shortcode to add to the Avia Framework.  Just a thought.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
