<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Add snippet of first post into forum list - General Discussions				            </title>
            <link>https://wpforo.com/community/general-discussions/add-snippet-of-first-post-into-forum-list/</link>
            <description>Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Wed, 13 May 2026 00:45:57 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Add snippet of first post into forum list</title>
                        <link>https://wpforo.com/community/general-discussions/add-snippet-of-first-post-into-forum-list/paged/2/#post-26208</link>
                        <pubDate>Mon, 22 Apr 2019 12:13:01 +0000</pubDate>
                        <description><![CDATA[@anonymous3542,
I&#039;m sorry but this is out of the threaded layout idea. You&#039;re asking change the threaded layout to extended layout. The result will be close to the extended layout. So this ...]]></description>
                        <content:encoded><![CDATA[<p>@anonymous3542,</p>
<p>I'm sorry but this is out of the threaded layout idea. You're asking change the threaded layout to extended layout. The result will be close to the extended layout. So this can only be done individually, I'm sorry but we'll not add it in core.</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-discussions/">General Discussions</category>                        <dc:creator>Robert</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-discussions/add-snippet-of-first-post-into-forum-list/paged/2/#post-26208</guid>
                    </item>
				                    <item>
                        <title>RE: Add snippet of first post into forum list</title>
                        <link>https://wpforo.com/community/general-discussions/add-snippet-of-first-post-into-forum-list/paged/2/#post-26114</link>
                        <pubDate>Fri, 19 Apr 2019 08:05:11 +0000</pubDate>
                        <description><![CDATA[Hi @anonymous3542,

I think this should be in the core, but that&#039;s just me

We&#039;ll discuss with our team to add this in plugin core.&nbsp;]]></description>
                        <content:encoded><![CDATA[<p>Hi @anonymous3542,</p>
<blockquote>
<p>I think this should be in the core, but that's just me</p>
</blockquote>
<p>We'll discuss with our team to add this in plugin core.&nbsp;</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-discussions/">General Discussions</category>                        <dc:creator>Sofy</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-discussions/add-snippet-of-first-post-into-forum-list/paged/2/#post-26114</guid>
                    </item>
				                    <item>
                        <title>RE: Add snippet of first post into forum list</title>
                        <link>https://wpforo.com/community/general-discussions/add-snippet-of-first-post-into-forum-list/paged/2/#post-26084</link>
                        <pubDate>Thu, 18 Apr 2019 09:43:59 +0000</pubDate>
                        <description><![CDATA[@sofy thanks very much for this. I&#039;ve revamped this slightly to give it a more &quot;native&quot; feel - personally, I think this should be in the core, but that&#039;s just me
 &lt;div class=&quot;custom-wpf-...]]></description>
                        <content:encoded><![CDATA[<p>@sofy thanks very much for this. I've revamped this slightly to give it a more "native" feel - personally, I think this should be in the core, but that's just me</p>
<pre> &lt;div class="custom-wpf-thread-first-post-body"&gt;<br />&lt;?php<br /><br />$topic = wpforo_topic($topicid);<br />$first_post_body = wpforo_post($topic, 'body');<br />// strip tags to avoid breaking any html<br />$string = strip_tags($first_post_body);<br />if (strlen($string) &gt; 500) {<br /><br />// truncate string<br />$stringCut = substr($string, 0, 500);<br />$endPoint = strrpos($stringCut, ' ');<br /><br />//if the string doesn't contain any space then it will cut without word basis.<br />$string = $endPoint? substr($stringCut, 0, $endPoint) : substr($stringCut, 0);<br />$theurl = esc_url($thread);<br />$string .= '...... &lt;a href="' . $theurl . '"&gt;&lt;span class="green"&gt;&lt;b&gt;Read More&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;';<br />}<br />echo "&lt;div class='excerpt'&gt;" . $string . "&lt;/div&gt;";<br />?&gt;<br />&lt;/div&gt;</pre>
<p>The CSS is simple enough - the excerpt doesn't show if in mobile view for obvious reasons</p>
<p>&nbsp;</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-discussions/">General Discussions</category>                        <dc:creator>Anonymous3542</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-discussions/add-snippet-of-first-post-into-forum-list/paged/2/#post-26084</guid>
                    </item>
				                    <item>
                        <title>RE: Add snippet of first post into forum list</title>
                        <link>https://wpforo.com/community/general-discussions/add-snippet-of-first-post-into-forum-list/paged/2/#post-26069</link>
                        <pubDate>Thu, 18 Apr 2019 07:36:43 +0000</pubDate>
                        <description><![CDATA[Hi @anonymous3542,I&#039;ve asked deveolpers and the best way to do it I&#039;ll describe below. You should customize the forum-thread.php file in the wp-content/plugins/wpforo/wpf-themes/classic/layo...]]></description>
                        <content:encoded><![CDATA[<p>Hi @anonymous3542,</p><p>I've asked deveolpers and the best way to do it I'll describe below. </p><p>You should customize the <span style="color: #008000"><em><strong>forum-thread.php</strong></em></span> file in the <span style="color: #ff0000"><em><strong>wp-content/plugins/wpforo/wpf-themes/classic/layouts/4/</strong></em></span> folder.</p><p>Add the following code in the file.  The code will show the body of the first post. I've attached the image below, please check it. On the screenshot, you'll see the row you should add the code.</p><pre>&lt;div class="custom-wpf-thread-first-post-body"&gt;<br />    &lt;?php<br />    $topic = wpforo_topic($topicid);<br />    $first_post_body = wpforo_post($topic, 'body');<br />    wpforo_text($first_post_body, 250);<br />    ?&gt;<br />&lt;/div&gt;</pre><p>As I've mentioned the code will just show the body of the first post. You'll need to add some CSS code, to display as it should be.</p>
<div id="wpfa-" class="wpforo-attached-file"><a class="wpforo-default-attachment" href="//wpforo.com/wp-content/uploads/wpforo/default_attachments/1555573003-correct-place.png" target="_blank"><i class="fas fa-paperclip"></i>correct-place.png</a></div>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-discussions/">General Discussions</category>                        <dc:creator>Sofy</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-discussions/add-snippet-of-first-post-into-forum-list/paged/2/#post-26069</guid>
                    </item>
				                    <item>
                        <title>RE: Add snippet of first post into forum list</title>
                        <link>https://wpforo.com/community/general-discussions/add-snippet-of-first-post-into-forum-list/paged/2/#post-26057</link>
                        <pubDate>Wed, 17 Apr 2019 13:48:00 +0000</pubDate>
                        <description><![CDATA[@sofy that&#039;s correct. I&#039;m just looking for the body of the first post in each topic to be displayed underneath]]></description>
                        <content:encoded><![CDATA[<p>@sofy that's correct. I'm just looking for the body of the first post in each topic to be displayed underneath</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-discussions/">General Discussions</category>                        <dc:creator>Anonymous3542</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-discussions/add-snippet-of-first-post-into-forum-list/paged/2/#post-26057</guid>
                    </item>
				                    <item>
                        <title>RE: Add snippet of first post into forum list</title>
                        <link>https://wpforo.com/community/general-discussions/add-snippet-of-first-post-into-forum-list/paged/2/#post-26056</link>
                        <pubDate>Wed, 17 Apr 2019 13:32:05 +0000</pubDate>
                        <description><![CDATA[@anonymous3542,
As far as I understand you&#039;d like to mix the wpForo first Extended layout with the Threaded layouts, am I right?&nbsp;
As you may see the wpForo Threaded layout includes on...]]></description>
                        <content:encoded><![CDATA[<p><a title="anonymous3542" href="../../../../profile/anonymous3542/">@anonymous3542</a>,</p>
<p>As far as I understand you'd like to mix the wpForo first Extended layout with the Threaded layouts, am I right?&nbsp;</p>
<p>As you may see the wpForo Threaded layout includes only the titles.&nbsp;</p>
<p><!-- copy and paste. Modify height and width if desired. --> <a href="https://content.screencast.com/users/gvectors-support/folders/Jing/media/cea6e9dc-7be3-4e75-ac4b-160a617e7ac9/Topic%20title.png"><img class="embeddedObject" src="https://content.screencast.com/users/gvectors-support/folders/Jing/media/cea6e9dc-7be3-4e75-ac4b-160a617e7ac9/Topic%20title.png" width="1216" height="585" border="0" /></a></p>
<p>So what content you'll need to add here? Would you like to add some content from the first post or something else?&nbsp;</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-discussions/">General Discussions</category>                        <dc:creator>Sofy</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-discussions/add-snippet-of-first-post-into-forum-list/paged/2/#post-26056</guid>
                    </item>
				                    <item>
                        <title>RE: Add snippet of first post into forum list</title>
                        <link>https://wpforo.com/community/general-discussions/add-snippet-of-first-post-into-forum-list/paged/2/#post-26044</link>
                        <pubDate>Wed, 17 Apr 2019 09:17:03 +0000</pubDate>
                        <description><![CDATA[@sofy thanks very much.]]></description>
                        <content:encoded><![CDATA[<p>@sofy thanks very much.</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-discussions/">General Discussions</category>                        <dc:creator>Anonymous3542</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-discussions/add-snippet-of-first-post-into-forum-list/paged/2/#post-26044</guid>
                    </item>
				                    <item>
                        <title>RE: Add snippet of first post into forum list</title>
                        <link>https://wpforo.com/community/general-discussions/add-snippet-of-first-post-into-forum-list/paged/2/#post-26039</link>
                        <pubDate>Wed, 17 Apr 2019 08:50:49 +0000</pubDate>
                        <description><![CDATA[Hi @anonymous3542,I&#039;ll ask developers and let you know asap.]]></description>
                        <content:encoded><![CDATA[<p>Hi @anonymous3542,</p><p>I'll ask developers and let you know asap. </p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-discussions/">General Discussions</category>                        <dc:creator>Sofy</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-discussions/add-snippet-of-first-post-into-forum-list/paged/2/#post-26039</guid>
                    </item>
				                    <item>
                        <title>RE: Add snippet of first post into forum list</title>
                        <link>https://wpforo.com/community/general-discussions/add-snippet-of-first-post-into-forum-list/#post-26029</link>
                        <pubDate>Tue, 16 Apr 2019 17:43:04 +0000</pubDate>
                        <description><![CDATA[Any thoughts, anyone ? @robert @sofy ?Thanks]]></description>
                        <content:encoded><![CDATA[<p>Any thoughts, anyone ? @robert @sofy ?</p><p>Thanks</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-discussions/">General Discussions</category>                        <dc:creator>Anonymous3542</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-discussions/add-snippet-of-first-post-into-forum-list/#post-26029</guid>
                    </item>
				                    <item>
                        <title>RE: Add snippet of first post into forum list</title>
                        <link>https://wpforo.com/community/general-discussions/add-snippet-of-first-post-into-forum-list/#post-25986</link>
                        <pubDate>Tue, 16 Apr 2019 12:06:41 +0000</pubDate>
                        <description><![CDATA[Recent topics, yes, but only the title ? I need the body]]></description>
                        <content:encoded><![CDATA[<p>Recent topics, yes, but only the title ? I need the body</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-discussions/">General Discussions</category>                        <dc:creator>Anonymous3542</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-discussions/add-snippet-of-first-post-into-forum-list/#post-25986</guid>
                    </item>
							        </channel>
        </rss>
		