<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WP Realty 3.0</title>
	<atom:link href="http://livedemowebsite.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://livedemowebsite.com</link>
	<description></description>
	<lastBuildDate>Thu, 19 Jan 2012 05:07:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Permission Tags</title>
		<link>http://livedemowebsite.com/permission-tags/</link>
		<comments>http://livedemowebsite.com/permission-tags/#comments</comments>
		<pubDate>Mon, 07 Nov 2011 20:59:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://livedemowebsite.com/?p=109</guid>
		<description><![CDATA[The template tags for conditionals should work by having the defining field, ie address for example and an else tag and closing end if tag. Lets look at some examples. This displays content if member is logged in. {if_member} Address: &#8230; <a href="http://livedemowebsite.com/permission-tags/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>The template tags for conditionals should work by having the defining field, ie address for example and an else tag and closing end if tag. Lets look at some examples.</p>
<h4>This displays content if member is logged in.</h4>
<p>{if_member}<br />
Address: {listing field=&#8217;address&#8217;}<br />
{endif}</p>
<p>So if the member is logged in, show the address.
</p>
<h4>This displays content if logged in member and if not displays something else.</h4>
<p>{if_member}<br />
Address: {listing field=&#8217;address&#8217;}<br />
{else}<br />
You must be registered to see the address.<br />
{endif}</p>
<p>So if the member is logged in, show the address, else, show something different.
</p>
<h4>Here is one using the listing fields.</h4>
<p>{if listing field=&#8217;address&#8217;}<br />
&lt;img src=&quot;house.jpg&quot; /&gt; Address: {listing field=&#8217;address&#8217;}<br />
{endif}</p>
<p>So in this situation, if the listing field address &#8220;has a value&#8221; show the address with a little house icon.</p>
<h4>Here is another one using the listing fields.</h4>
<p>{if listing field=&#8217;address&#8217;}<br />
&lt;img src=&quot;house.jpg&quot; /&gt; Address: {listing field=&#8217;address&#8217;}<br />
{else}<br />
&lt;img src=&quot;grey-house.jpg&quot; /&gt; Address: Not available<br />
{endif}</p>
<p>So in this situation, if the listing field address &#8220;has a value&#8221; show the address with a little house icon or show a grayed out icon and some wording.</p>
<p>There are situations where we need to display information if a condition is NOT met. Above, if a condition is met then do something right? well what if a condition isn&#8217;t met, here is an example. I have encountered situations where I need to show something to everyone except the admin so I&#8217;ll add an ! before the IF</p>
<p>
{!if_admin}<br />
Everyone gets to see this unless you are an admin.<br />
{endif}</p>
<p>The Following tags should be made available for use in all of the template files such as search results, details, etc. Including those above for the listing fields.</p>
<table border="1" cellpadding="1" cellspacing="1" width="500">
<tbody>
<tr>
<td width="300">
<p>Tag</p>
</td>
<td width="706">
<p>Description:</p>
</td>
</tr>
<tr>
<td width="300">
<p>if_active_agent</p>
</td>
<td width="706">
<p>Displays content to agents if they are set to &quot;yes&quot;. The field in the wp_realty_agents table is agent_active</p>
</td>
</tr>
<tr>
<td width="300">
<p>if_visitor</p>
</td>
<td width="706">
<p>Displays content to visitors not logged. Logged in members/agents will not see this info.</p>
</td>
</tr>
<tr>
<td width="300">
<p>if_member</p>
</td>
<td width="706">
<p>Displays content to members that are logged in for example.</p>
</td>
</tr>
<tr>
<td width="300">
<p>if_admin</p>
</td>
<td width="706">
<p>Displays content to someone with a WordPress Admin Permissions</p>
</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://livedemowebsite.com/permission-tags/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Example Post</title>
		<link>http://livedemowebsite.com/hello-world/</link>
		<comments>http://livedemowebsite.com/hello-world/#comments</comments>
		<pubDate>Fri, 10 Jun 2011 17:48:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://livedemowebsite.com/?p=1</guid>
		<description><![CDATA[Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus quis mauris erat. Aliquam id metus ligula, vel hendrerit dolor. Ut id libero enim. Pellentesque gravida convallis leo a suscipit. Nunc aliquet, sapien in scelerisque lacinia, enim neque vehicula justo, id &#8230; <a href="http://livedemowebsite.com/hello-world/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>
<a href='http://livedemowebsite.com/hello-world/chrysanthemum/' title='Chrysanthemum'><img width="150" height="150" src="http://livedemowebsite.com/wp-content/uploads/2011/06/Chrysanthemum-150x150.jpg" class="attachment-thumbnail" alt="Chrysanthemum" title="Chrysanthemum" /></a>
<a href='http://livedemowebsite.com/hello-world/penguins/' title='Penguins'><img width="150" height="150" src="http://livedemowebsite.com/wp-content/uploads/2011/06/Penguins-150x150.jpg" class="attachment-thumbnail" alt="Penguins" title="Penguins" /></a>

<p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus quis   mauris erat. Aliquam id metus ligula, vel hendrerit dolor. Ut id libero   enim. Pellentesque gravida convallis leo a suscipit. Nunc aliquet,   sapien in scelerisque lacinia, enim neque vehicula justo, id   sollicitudin ipsum velit sodales ante. Duis mattis augue vel quam   bibendum consequat. Sed convallis augue sit amet massa posuere sit amet   tempor est molestie. Nam vulputate fermentum est vel laoreet.   Suspendisse pharetra eros vel massa viverra malesuada. Vestibulum ante   ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae;   Ut ut rutrum orci. Sed quis urna dapibus tortor pretium euismod et non   augue. Nam at tortor magna, et mollis mi. </p>
<p> Aenean in nisl arcu, et fringilla nunc. Proin tortor enim, blandit quis   tempor sagittis, gravida a sapien. Maecenas rhoncus sollicitudin arcu   eget malesuada. Nam eu massa justo. Vestibulum ante ipsum primis in   faucibus orci luctus et ultrices posuere cubilia Curae; Donec tortor   orci, eleifend quis lobortis vitae, ornare in erat. Cras eget neque   nunc, at sagittis est. Aliquam feugiat porta nisl, at tristique metus   convallis vitae. </p>
<p> Donec ultrices, risus quis iaculis tincidunt, lorem nibh porttitor   tellus, eget rhoncus augue lorem ut neque. Nunc ac feugiat lorem.   Suspendisse ultricies condimentum turpis, non dapibus urna convallis at.   Curabitur a nulla et neque luctus sollicitudin vel sit amet augue.   Fusce dolor turpis, varius sit amet semper id, feugiat eget sapien.   Phasellus in blandit orci. Maecenas feugiat augue ut elit eleifend sit   amet venenatis turpis imperdiet. Etiam in vehicula dui. Etiam ut commodo   dui. In commodo mi id ante dictum lacinia. </p>
<p> Duis sem tellus, molestie at iaculis sit amet, sagittis quis nisl.   Aliquam erat volutpat. Suspendisse tellus purus, elementum nec bibendum   nec, varius non justo. Nunc vitae sagittis nisl. Maecenas volutpat   dictum elit ut pharetra. In euismod, felis id ultricies laoreet, libero   erat elementum purus, at porttitor eros sem at quam. Vestibulum nisl   eros, viverra vitae facilisis quis, lacinia tincidunt libero. Cras   vehicula volutpat iaculis. In at leo eget nulla faucibus tempor id ac   erat. Suspendisse tempor nibh et velit tincidunt a facilisis enim   tincidunt. Mauris adipiscing, nulla nec pretium vulputate, dui velit   aliquam nibh, ut lobortis nunc nunc nec urna. </p>
<p> Etiam quis euismod sem. Nunc vel est quis diam aliquam ullamcorper. Ut   lectus est, pulvinar eget consequat vel, sollicitudin nec turpis. Mauris   urna ipsum, facilisis ac sodales posuere, porttitor vitae ipsum. In   quis pellentesque nulla. Cras commodo ornare ligula, ut rutrum tellus   pharetra nec. Nulla elit sapien, convallis eget semper et, ultrices a   nisl. Cras ut purus sagittis est vehicula ullamcorper sit amet sit amet   nunc. Curabitur pellentesque egestas hendrerit. Sed vel leo a tellus   volutpat placerat. Aliquam tristique sagittis ullamcorper. Vestibulum   posuere lectus ut nunc sagittis eu elementum massa vulputate. Ut   elementum fringilla felis, quis egestas ligula adipiscing non. Nulla   facilisi. </p>
]]></content:encoded>
			<wfw:commentRss>http://livedemowebsite.com/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

