<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>

		<title>Yet Another Related Posts Plugin (YARPP) Template for X Theme &#8211; Themeco Community</title>
		<atom:link href="https://theme.co/archive/forums/topic/yet-another-related-posts-plugin-yarpp-template-for-x-theme/feed/" rel="self" type="application/rss+xml" />
		<link>https://theme.co/archive/forums/topic/yet-another-related-posts-plugin-yarpp-template-for-x-theme/feed/</link>
		<description></description>
		<lastBuildDate>Sun, 12 Oct 2025 01:05:54 +0000</lastBuildDate>
		<generator>https://bbpress.org/?v=2.6.14</generator>
		<language>en-US</language>

		
														
					
				<item>
					<guid>https://theme.co/archive/forums/topic/yet-another-related-posts-plugin-yarpp-template-for-x-theme/#post-312335</guid>
					<title><![CDATA[Yet Another Related Posts Plugin (YARPP) Template for X Theme]]></title>
					<link>https://theme.co/archive/forums/topic/yet-another-related-posts-plugin-yarpp-template-for-x-theme/#post-312335</link>
					<pubDate>Thu, 25 Jun 2015 06:19:19 +0000</pubDate>
					<dc:creator>Roman</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,</p>
<p>I am using YARPP for my site so I modified the default YARPP template to make it look more like the &#8220;Recent Posts&#8221; shortcode.</p>
<p>1. Use this code to replace the content of &#8220;yarpp-template-example.php&#8221;<br />
2. Select &#8220;X Theme&#8221; as your YARPP template file.<br />
3. Enjoy 🙂</p>
<pre><code>&lt;?php 
/*
YARPP Template: X Theme
Author: Roman Lifshits
Description: X Theme YARPP template.
*/
?&gt;&lt;h3&gt;Related Posts&lt;/h3&gt;
&lt;?php
$yarpp = &quot;&lt;div class=\&quot;x-recent-posts cf man\&quot; style=\&quot;text-align: right;\&quot; data-x-element=\&quot;recent_posts\&quot; data-x-params=\&quot;{&amp;quot;fade&amp;quot;:false}\&quot; data-fade=\&quot;false\&quot;&gt;&quot;;

if (have_posts()) : while (have_posts()) : the_post();

	$image			= wp_get_attachment_image_src( get_post_thumbnail_id(), &#039;entry-cropped&#039; );
	$bg_image		= ( $image[0] != &#039;&#039; ) ? &#039; style=&quot;background-image: url(&#039; . $image[0] . &#039;);&quot;&#039; : &#039;&#039;;
	$image_yarpp		= &#039;&lt;div class=&quot;x-recent-posts-img&quot;&#039; . $bg_image . &#039;&gt;&lt;/div&gt;&#039;;
	$image_yarpp_class	= &#039;with-image&#039;;
	  
	$yarpp .= &#039;&lt;a class=&quot;x-recent-post4 &#039; . $image_yarpp_class . &#039;&quot; href=&quot;&#039; . get_permalink( get_the_ID() ) . &#039;&quot; title=&quot;&#039; . esc_attr( sprintf( __( &#039;Permalink: &quot;%s&quot;&#039;, csl18n() ), the_title_attribute( &#039;echo=0&#039; ) ) ) . &#039;&quot;&gt;&#039;
			. &#039;&lt;article id=&quot;post-&#039; . get_the_ID() . &#039;&quot; class=&quot;&#039; . implode( &#039; &#039;, get_post_class() ) . &#039;&quot;&gt;&#039;
			 . &#039;&lt;div class=&quot;entry-wrap&quot;&gt;&#039;
			   . $image_yarpp
			   . &#039;&lt;div class=&quot;x-recent-posts-content&quot;&gt;&#039;
				. &#039;&lt;h3 class=&quot;h-recent-posts&quot;&gt;&#039; . get_the_title() . &#039;&lt;/h3&gt;&#039;
				. &#039;&lt;span class=&quot;x-recent-posts-date&quot;&gt;&#039; . get_the_date() . &#039;&lt;/span&gt;&#039;
			   . &#039;&lt;/div&gt;&#039;
			 . &#039;&lt;/div&gt;&#039;
			. &#039;&lt;/article&gt;&#039;
		   . &#039;&lt;/a&gt;&#039;;

endwhile; endif;

$yarpp .= &#039;&lt;/div&gt;&#039;;
echo $yarpp;
?&gt;</code></pre>
<p>This was a public service announcement. Enjoy 🙂</p>
<p>&#8211; Roman</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/yet-another-related-posts-plugin-yarpp-template-for-x-theme/#post-312365</guid>
					<title><![CDATA[Reply To: Yet Another Related Posts Plugin (YARPP) Template for X Theme]]></title>
					<link>https://theme.co/archive/forums/topic/yet-another-related-posts-plugin-yarpp-template-for-x-theme/#post-312365</link>
					<pubDate>Thu, 25 Jun 2015 06:56:34 +0000</pubDate>
					<dc:creator>Nico</dc:creator>

					<description>
						<![CDATA[
						<p>WOW amazing! Thanks for sharing to us Roman. Not only, other members will benefit from this but we learn and make use of it. We really appreciate it 🙂</p>
<p>Thank you so much. Have a wonderful day!.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/yet-another-related-posts-plugin-yarpp-template-for-x-theme/#post-636085</guid>
					<title><![CDATA[Reply To: Yet Another Related Posts Plugin (YARPP) Template for X Theme]]></title>
					<link>https://theme.co/archive/forums/topic/yet-another-related-posts-plugin-yarpp-template-for-x-theme/#post-636085</link>
					<pubDate>Thu, 22 Oct 2015 20:48:07 +0000</pubDate>
					<dc:creator>Tyler L</dc:creator>

					<description>
						<![CDATA[
						<p>Thank you sir!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>https://theme.co/archive/forums/topic/yet-another-related-posts-plugin-yarpp-template-for-x-theme/#post-636208</guid>
					<title><![CDATA[Reply To: Yet Another Related Posts Plugin (YARPP) Template for X Theme]]></title>
					<link>https://theme.co/archive/forums/topic/yet-another-related-posts-plugin-yarpp-template-for-x-theme/#post-636208</link>
					<pubDate>Thu, 22 Oct 2015 22:59:11 +0000</pubDate>
					<dc:creator>Friech</dc:creator>

					<description>
						<![CDATA[
						<p>Glad it helps, Cheers!</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

