<?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>
									is there a hook to add content before comments area? - How-to and Troubleshooting - wpForo 2.0				            </title>
            <link>https://wpforo.com/community/how-to-and-troubleshooting-2/is-there-a-hook-to-add-content-before-comments-area/</link>
            <description>Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Tue, 19 May 2026 10:40:11 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: is there a hook to add content before comments area?</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/is-there-a-hook-to-add-content-before-comments-area/#post-58766</link>
                        <pubDate>Sun, 03 Oct 2021 13:46:58 +0000</pubDate>
                        <description><![CDATA[@newuser20,
Here is the code provided by @chris and modified to work only on the posts page:
add_action(&#039;wpforo_loop_hook&#039;, function($key){    if( function_exists(&#039;WPF&#039;) &amp;&amp; WPF()-&amp;...]]></description>
                        <content:encoded><![CDATA[<p>@newuser20,</p>
<p>Here is the code provided by @chris and modified to work only on the posts page:</p>
<pre style="background-color: #ffffff;color: #000000;font-size: 12.0pt" contenteditable="false"><span style="color: #0000e5;font-style: italic">add_action</span>(<span style="color: #c64741">'wpforo_loop_hook'</span><span style="color: #000080">, </span><span style="color: #008d00;font-weight: bold">function</span>(<span style="color: #4985c9;font-weight: bold">$key</span>)<span style="color: #5163ac">{<br /></span><span style="color: #5163ac">    </span><span style="color: #008d00;font-weight: bold">if</span>( <span style="color: #0000e5;font-style: italic">function_exists</span>(<span style="color: #c64741">'WPF'</span>) <span style="color: #000080">&amp;&amp; </span><span style="color: #0000e5;font-style: italic">WPF</span>()<span style="color: #000080">-&gt;</span><span style="color: #0000e5;font-style: italic">current_object</span><span style="color: #000080"> === </span><span style="color: #c64741">'post' </span><span style="color: #000080">&amp;&amp; </span><span style="color: #4985c9;font-weight: bold">$key </span><span style="color: #000080">=== 0 </span>)<span style="color: #5163ac">{<br /></span><span style="color: #5163ac">        </span><span style="color: #008d00;font-weight: bold">echo </span><span style="color: #c64741">'Your text Here'</span><span style="color: #313131">;<br /></span><span style="color: #313131">    </span><span style="color: #5163ac">}<br /></span><span style="color: #5163ac">}</span>)<span style="color: #313131">;</span></pre>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Robert</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/is-there-a-hook-to-add-content-before-comments-area/#post-58766</guid>
                    </item>
				                    <item>
                        <title>RE: is there a hook to add content before comments area?</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/is-there-a-hook-to-add-content-before-comments-area/#post-58742</link>
                        <pubDate>Sat, 02 Oct 2021 11:03:15 +0000</pubDate>
                        <description><![CDATA[how to detect if current page is a post page and how to get all post information?]]></description>
                        <content:encoded><![CDATA[<p>how to detect if current page is a post page and how to get all post information?</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>newuser20</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/is-there-a-hook-to-add-content-before-comments-area/#post-58742</guid>
                    </item>
				                    <item>
                        <title>RE: is there a hook to add content before comments area?</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/is-there-a-hook-to-add-content-before-comments-area/#post-58745</link>
                        <pubDate>Sat, 02 Oct 2021 11:01:42 +0000</pubDate>
                        <description><![CDATA[@newuser20,
Remove the Hook I gave you, Read this doc about theme customization:
You need to customize wpForo theme to get the result you want.]]></description>
                        <content:encoded><![CDATA[<p>@newuser20,</p>
<p>Remove the Hook I gave you, Read this doc about theme customization:</p>
<p>https://wpforo.com/docs/root/forum-themes/theme-customization/</p>
<p>You need to customize wpForo theme to get the result you want.</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Chris</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/is-there-a-hook-to-add-content-before-comments-area/#post-58745</guid>
                    </item>
				                    <item>
                        <title>RE: is there a hook to add content before comments area?</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/is-there-a-hook-to-add-content-before-comments-area/#post-58736</link>
                        <pubDate>Fri, 01 Oct 2021 14:03:39 +0000</pubDate>
                        <description><![CDATA[@chris 
it working but the content appear in every page 
is there a way to show the content in post pages only?]]></description>
                        <content:encoded><![CDATA[<p>@chris </p>
<p>it working but the content appear in every page </p>
<p>is there a way to show the content in post pages only?</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>newuser20</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/is-there-a-hook-to-add-content-before-comments-area/#post-58736</guid>
                    </item>
				                    <item>
                        <title>RE: is there a hook to add content before comments area?</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/is-there-a-hook-to-add-content-before-comments-area/#post-58733</link>
                        <pubDate>Fri, 01 Oct 2021 13:35:18 +0000</pubDate>
                        <description><![CDATA[@newuser20,
Insert the bellow code in \wp-content\themes\ActiveTheme\functions.php file
add_action(&#039;wpforo_loop_hook&#039;, function($key){
    if( $key === 0 ){
        echo &#039;Your text Here&#039;...]]></description>
                        <content:encoded><![CDATA[<p>@newuser20,</p>
<p>Insert the bellow code in \wp-content\themes\ActiveTheme\functions.php file</p>
<pre contenteditable="false">add_action('wpforo_loop_hook', function($key){
    if( $key === 0 ){
        echo 'Your text Here';
    }
});</pre>
<p> </p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Chris</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/is-there-a-hook-to-add-content-before-comments-area/#post-58733</guid>
                    </item>
				                    <item>
                        <title>RE: is there a hook to add content before comments area?</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/is-there-a-hook-to-add-content-before-comments-area/#post-58732</link>
                        <pubDate>Fri, 01 Oct 2021 13:21:36 +0000</pubDate>
                        <description><![CDATA[Posted by: @newuser20 
i want a hook under the first post

You can use the Code Snippets plugin
create a new snippet with this code
add_action( &#039;wp_head&#039;, function () { ?&gt;
&lt;scrip...]]></description>
                        <content:encoded><![CDATA[<blockquote data-userid="38325" data-postid="58728" data-mention="newuser20">
<div class="wpforo-post-quote-author"><strong> Posted by: @newuser20 </strong></div>
<p>i want a hook <span>under the first post</span></p>
</blockquote>
<p>You can use the <a title="Code Snippets" href="https://wordpress.org/plugins/code-snippets/" target="_blank" rel="noopener">Code Snippets</a> plugin</p>
<p>create a new snippet with this code</p>
<pre contenteditable="false">add_action( 'wp_head', function () { ?&gt;
&lt;script&gt;
jQuery(document).ready(function(){
jQuery( '&lt;div class="content-after-first-post"&gt;Insert here the content to be displayed after the first post&lt;/div&gt;' ).insertAfter( "#wpforo #wpforo-wrap .post-wrap.wpfp-first" );
});
&lt;/script&gt;
&lt;?php } );</pre>
<p><br />add this to custom css (is only an example)</p>
<pre contenteditable="false">.content-after-first-post {
background: #f00;
color: #fff !important;
padding: 10px !important;
margin: 10px auto !important;
font-size: 18px !important;
}</pre>
<p>Dashboard &gt; Forums &gt; Settings &gt; Style (custom css)</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Tutrix</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/is-there-a-hook-to-add-content-before-comments-area/#post-58732</guid>
                    </item>
				                    <item>
                        <title>RE: is there a hook to add content before comments area?</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/is-there-a-hook-to-add-content-before-comments-area/#post-58728</link>
                        <pubDate>Fri, 01 Oct 2021 10:14:53 +0000</pubDate>
                        <description><![CDATA[Hello @Chris
thank you for reply
i want a hook under the first post]]></description>
                        <content:encoded><![CDATA[<p>Hello @Chris</p>
<p>thank you for reply</p>
<p>i want a hook <span>under the first post</span></p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>newuser20</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/is-there-a-hook-to-add-content-before-comments-area/#post-58728</guid>
                    </item>
				                    <item>
                        <title>RE: is there a hook to add content before comments area?</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/is-there-a-hook-to-add-content-before-comments-area/#post-58726</link>
                        <pubDate>Fri, 01 Oct 2021 09:54:12 +0000</pubDate>
                        <description><![CDATA[Hi @newuser20,
You want a hook under the first post or under all replies?]]></description>
                        <content:encoded><![CDATA[<p>Hi <span>@newuser20,</span></p>
<p>You want a hook under the first post or under all replies?</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Chris</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/is-there-a-hook-to-add-content-before-comments-area/#post-58726</guid>
                    </item>
				                    <item>
                        <title>is there a hook to add content before comments area?</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/is-there-a-hook-to-add-content-before-comments-area/#post-58724</link>
                        <pubDate>Fri, 01 Oct 2021 09:41:32 +0000</pubDate>
                        <description><![CDATA[is there a hook to add content before comments area?
 photo_2021-09-27_18-57-35.jpg]]></description>
                        <content:encoded><![CDATA[<p>is there a hook to add content before comments area?</p>
<div id="wpfa-0" class="wpforo-attached-file"><a class="wpforo-default-attachment" title="photo_2021-09-27_18-57-35.jpg" href="//wpforo.com/wp-content/uploads/wpforo/default_attachments/1633081292-photo_2021-09-27_18-57-35.jpg" target="_blank" rel="noopener"><i class="fas fa-paperclip"></i> photo_2021-09-27_18-57-35.jpg</a></div>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>newuser20</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/is-there-a-hook-to-add-content-before-comments-area/#post-58724</guid>
                    </item>
							        </channel>
        </rss>
		