<?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>
									How to manually insert a rating into a template via PHP? - How-to and Troubleshooting				            </title>
            <link>https://wpdiscuz.com/community/troubleshooting/how-to-manually-insert-a-rating-into-a-template-via-php/</link>
            <description>wpDiscuz WordPress Comment Plugin Community. Support and Resources.</description>
            <language>en-US</language>
            <lastBuildDate>Sun, 15 Nov 2026 06:49:11 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: How to manually insert a rating into a template via PHP?</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/how-to-manually-insert-a-rating-into-a-template-via-php/#post-6713</link>
                        <pubDate>Tue, 02 Feb 2021 18:11:30 +0000</pubDate>
                        <description><![CDATA[@asti, hello. Could you please help me out with what needs to be done to get the rating values for each post from the DB?
cheers, 
Mihai]]></description>
                        <content:encoded><![CDATA[<p>@asti, hello. Could you please help me out with what needs to be done to get the rating values for each post from the DB?</p>
<p>cheers, </p>
<p>Mihai</p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>mihaisandman</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/how-to-manually-insert-a-rating-into-a-template-via-php/#post-6713</guid>
                    </item>
				                    <item>
                        <title>RE: How to manually insert a rating into a template via PHP?</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/how-to-manually-insert-a-rating-into-a-template-via-php/#post-6472</link>
                        <pubDate>Tue, 19 Jan 2021 13:33:52 +0000</pubDate>
                        <description><![CDATA[Hello, could you help us with the function for :

#1 – Stand-alone Post Rating 

we would like to display the rating in the article preview
Thank you for your feedback]]></description>
                        <content:encoded><![CDATA[<p>Hello, could you help us with the function for :</p>
<ul>
<li><a href="https://wpdiscuz.com/docs/wpdiscuz-7/plugin-settings/article-and-comment-rating/#1-%E2%80%93-stand-alone-post-rating" target="true">#1 – Stand-alone Post Rating</a> </li>
</ul>
<p>we would like to display the rating in the article preview</p>
<p>Thank you for your feedback</p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>fred</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/how-to-manually-insert-a-rating-into-a-template-via-php/#post-6472</guid>
                    </item>
				                    <item>
                        <title>RE: How to manually insert a rating into a template via PHP?</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/how-to-manually-insert-a-rating-into-a-template-via-php/#post-5972</link>
                        <pubDate>Fri, 18 Dec 2020 09:21:00 +0000</pubDate>
                        <description><![CDATA[@nexan,
Could you please clarify a bit? What type of rating do you mean? 
Thre are two types of ratings: 

#1 – Stand-alone Post Rating
#2 – Post Rating Based on Comment Rating Field
...]]></description>
                        <content:encoded><![CDATA[<p><span>@nexan,</span></p>
<p>Could you please clarify a bit? What type of rating do you mean? </p>
<p>Thre are two types of ratings: </p>
<ul>
<li><a href="https://wpdiscuz.com/docs/wpdiscuz-7/plugin-settings/article-and-comment-rating/#1-%E2%80%93-stand-alone-post-rating" target="true">#1 – Stand-alone Post Rating</a></li>
<li><a href="https://wpdiscuz.com/docs/wpdiscuz-7/plugin-settings/article-and-comment-rating/#2-%E2%80%93-post-rating-based-on-comment-rating-field" target="true">#2 – Post Rating Based on Comment Rating Field</a></li>
</ul>
<p>In the case of the last one, you can use the <a href="https://wpdiscuz.com/community/postid/1303/" target="true"></a> shortcode.</p>
<p>In the case of the first one, you'll need to do some manipulations and get the data from the DB tables. If you're familiar with DB structure let us know. We'll tell you where the data are stored. </p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>Asti</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/how-to-manually-insert-a-rating-into-a-template-via-php/#post-5972</guid>
                    </item>
				                    <item>
                        <title>How to manually insert a rating into a template via PHP?</title>
                        <link>https://wpdiscuz.com/community/troubleshooting/how-to-manually-insert-a-rating-into-a-template-via-php/#post-5965</link>
                        <pubDate>Fri, 18 Dec 2020 04:59:27 +0000</pubDate>
                        <description><![CDATA[Hello, I want to insert a rating in the header next to the title in the template. Tell me, is there a PHP function for inserting a rating? For example:
&lt;header&gt;&lt;h1&gt;   &lt;?php t...]]></description>
                        <content:encoded><![CDATA[<p>Hello, I want to insert a rating in the header next to the title in the template. Tell me, is there a PHP function for inserting a rating? For example:</p>
<pre>&lt;header&gt;<br />&lt;h1&gt;<br />   &lt;?php the_title(); ?&gt;<br />&lt;/h1&gt;<br />&lt;div id="placeratings"&gt;<br />   &lt;?php getPostRatingHtml(); ?&gt;<br />&lt;/div&gt;<br />&lt;/header&gt;</pre>
<p>This function does not work.</p>]]></content:encoded>
						                            <category domain="https://wpdiscuz.com/community/troubleshooting/">How-to and Troubleshooting</category>                        <dc:creator>NeXan</dc:creator>
                        <guid isPermaLink="true">https://wpdiscuz.com/community/troubleshooting/how-to-manually-insert-a-rating-into-a-template-via-php/#post-5965</guid>
                    </item>
							        </channel>
        </rss>
		