<?xml version="1.0"?><!-- 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>Urban Giraffe Support Topic: Help in Adding Custom "After Feed" Placement</title>
<link>http://urbangiraffe.com/support/</link>
<description>Urban Giraffe Support Topic: Help in Adding Custom "After Feed" Placement</description>
<language>en</language>
<pubDate>Fri, 05 Dec 2008 03:26:00 +0000</pubDate>

<item>
<title>John on "Help in Adding Custom "After Feed" Placement"</title>
<link>http://urbangiraffe.com/support/topic/help-in-adding-custom-after-feed-placement#post-147</link>
<pubDate>Sun, 06 Apr 2008 11:26:02 +0000</pubDate>
<dc:creator>John</dc:creator>
<guid isPermaLink="false">147@http://urbangiraffe.com/support/</guid>
<description>&#60;p&#62;This feature is going into the next version of Sniplets, as well as placing sniplets on archives and the home page.
&#60;/p&#62;</description>
</item>
<item>
<title>lucianop on "Help in Adding Custom "After Feed" Placement"</title>
<link>http://urbangiraffe.com/support/topic/help-in-adding-custom-after-feed-placement#post-111</link>
<pubDate>Mon, 24 Mar 2008 09:20:00 +0000</pubDate>
<dc:creator>lucianop</dc:creator>
<guid isPermaLink="false">111@http://urbangiraffe.com/support/</guid>
<description>&#60;p&#62;Hi John,&#60;/p&#62;
&#60;p&#62;I'm trying to add a custom placement that appears after the post content, only when I'm looking at the item's feed. I am trying not to edit the default feed templates. My best try so far is: In my functions.php I added the following:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
add_filter('the_content', 'add_after_feed_placement');&#60;/p&#62;
&#60;p&#62;function add_after_feed_placement($content)&#60;br /&#62;
{&#60;br /&#62;
  if (!is_feed()) return $content;&#60;br /&#62;
  $content = $content . the_sniplet_place('afterfeed');&#60;br /&#62;
  // $content .= '[sniplet afterfeed]';&#60;/p&#62;
&#60;p&#62;  return $content;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;&#60;/code&#62;&#60;br /&#62;
The sniplets for that place get inserted BEFORE the content (it seems that it is inserted exactly when the 'the_sniplet_place' is called, being that BEFORE returning the $content). If I try to add the sniplet tag instead (see commented line), it goes as is and is not processed by the plug-in.&#60;br /&#62;
Maybe I could do this with stuff like do_action, add_action but I am not well-versed in it and all my attempts have failed.&#60;/p&#62;
&#60;p&#62;Any advice to help me fix this is welcome!&#60;br /&#62;
Thanks!
&#60;/p&#62;</description>
</item>

</channel>
</rss>
