<?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>bbPress support forums Topic: Set Topic ID</title>
<link>http://bbpress.org/forums/</link>
<description>bbPress support forums Topic: Set Topic ID</description>
<language>en</language>
<pubDate>Thu, 24 Jul 2008 05:12:43 +0000</pubDate>

<item>
<title>_ck_ on "Set Topic ID"</title>
<link>http://bbpress.org/forums/topic/set-topic-id#post-16064</link>
<pubDate>Thu, 08 May 2008 18:21:42 +0000</pubDate>
<dc:creator>_ck_</dc:creator>
<guid isPermaLink="false">16064@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Not quite sure what you are asking/doing buy try adding &#60;code&#62;global  $topic;&#60;/code&#62; before your code if you find the function don't know which topic is active.
&#60;/p&#62;</description>
</item>
<item>
<title>patrace on "Set Topic ID"</title>
<link>http://bbpress.org/forums/topic/set-topic-id#post-15297</link>
<pubDate>Sat, 12 Apr 2008 04:33:27 +0000</pubDate>
<dc:creator>patrace</dc:creator>
<guid isPermaLink="false">15297@http://bbpress.org/forums/</guid>
<description>&#60;p&#62;Hi, I'm experimenting with embedding some of the bbPress commenting features into an existing website and I was wondering how to set a topic ID.&#60;/p&#62;
&#60;p&#62;If I do something like this it will return the topic title just fine:&#60;br /&#62;
$topic = get_topic( 162 );&#60;br /&#62;
$topic_id = $topic-&#38;gt;topic_id;&#60;br /&#62;
echo $topic-&#38;gt;topic_title;&#60;/p&#62;
&#60;p&#62;But as soon as I try something like this I realize that I don't have an active topic because it no longer returns the information:&#60;/p&#62;
&#60;p&#62;$topic = get_topic( 162 );&#60;br /&#62;
$topic_id = $topic-&#38;gt;topic_id;&#60;br /&#62;
if (is_topic()) echo $topic-&#38;gt;topic_title;&#60;/p&#62;
&#60;p&#62;Hope that was clear,&#60;br /&#62;
Thanks!
&#60;/p&#62;</description>
</item>

</channel>
</rss>
