<?xml version="1.0" ?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>Ajaxed WordPress - Topic: Using Inline Comments Outside "The Loop"</title>
	<link>http://ajaxedwp.com/forum/general-support/using-inline-comments-outside-the-loop</link>
	<description><![CDATA[Most popular AJAX plugin for WordPress]]></description>
	<generator>Simple:Press Forum Version 4.0.0</generator>
	<atom:link href="http://ajaxedwp.com/forum?general-support&#038;using-inline-comments-outside-the-loop&#038;xfeed=topic" rel="self" type="application/rss+xml" />
<item>
	<title>tombyrnes on Using Inline Comments Outside "The Loop"</title>
	<link>http://ajaxedwp.com/forum/general-support/using-inline-comments-outside-the-loop/#p387</link>
	<category>General Support</category>
	<guid isPermaLink="true">http://ajaxedwp.com/forum/general-support/using-inline-comments-outside-the-loop/#p387</guid>
	<description><![CDATA[<p>Aaron,</p>
<br />
<p>Wow thats really useful! You are a prince, Aaron, for taking the time to steer me in the right direction. Much appreciated.</p>
<br />
<p>tom</p>
]]></description>
	<pubDate>Wed, 29 Jul 2009 20:02:17 +0000</pubDate>
</item>
<item>
	<title>Aaron on Using Inline Comments Outside "The Loop"</title>
	<link>http://ajaxedwp.com/forum/general-support/using-inline-comments-outside-the-loop/#p385</link>
	<category>General Support</category>
	<guid isPermaLink="true">http://ajaxedwp.com/forum/general-support/using-inline-comments-outside-the-loop/#p385</guid>
	<description><![CDATA[Sorry for the short answer, but the easiest way is to use the wordpress functions. If you use the function setup_postdata() on any post query, it will act as the loop and you can use normal loop functions.

EG:


<ol class='code_child' style='overflow:none' ><li class="alt"><code> &#60;?php</code></li><li ><code> $lastposts = get_posts(&#039;numberposts=3&#039;);</code></li><li class="alt"><code> foreach($lastposts as $post) {</code></li><li ><code>    setup_postdata($post);</code></li><li class="alt"><code> ?&#62;</code></li><li ><code> &#60;h2&#62;&#60;a href=&#34;&#60;?php the_permalink(); ?&#62;&#34; id=&#34;post-&#60;?php the_ID(); ?&#62;&#34;&#62;&#60;?php the_title(); ?&#62;&#60;/a&#62;&#60;/h2&#62;</code></li><li class="alt"><code> &#60;?php the_content(); ?&#62;</code></li><li ><code> &#60;?php } ?&#62;</code></li></ol>




Many of the CSS classes AWP uses can be found <a href="http://ajaxedwp.com/forum/awp-documentation/what-css-classes-does-awp-use/" rel="nofollow" target="_blank">here</a>. The one you want is: post_content_link_hide
]]></description>
	<pubDate>Wed, 29 Jul 2009 14:56:29 +0000</pubDate>
</item>
<item>
	<title>tombyrnes on Using Inline Comments Outside "The Loop"</title>
	<link>http://ajaxedwp.com/forum/general-support/using-inline-comments-outside-the-loop/#p379</link>
	<category>General Support</category>
	<guid isPermaLink="true">http://ajaxedwp.com/forum/general-support/using-inline-comments-outside-the-loop/#p379</guid>
	<description><![CDATA[<p>Aaron,</p>
<p>Love your work! Really useful stuff and I will be a donor shortly. I have 2 quickish questions:</p>
<p>1. I wish to use the inline comments feature outside of the loop. I am using the "Inline Posts" plugin to generate one or so pages that are essentially "pages of posts". (ie the page consits of some introduction and then some directives to include post n, post m, post x etc). The code for this executes outside the loop. I have actually got your inline comments working by adding code to that plugin&#39;s main function to generate the html just as you do within the loop. The lines of PHP below build up the requisite html in the variable $showcomments and then that variable gets inserted in the appropriate place in the output. ($postId has been set up beforehand):</p>
<p>-------------------------------------------------------------------------------------------------------------</p>
<p>&#160;&#160;&#160;&#160;&#160;&#160; $showcomments = &#39;&#60;a href="&#39;.get_permalink($postId).&#39;#comments" id="awpcomments_link_&#39;.$postId.&#39;" class="comments_link" onclick="aWP.doit({\&#39;id\&#39;: \&#39;&#39;.$postId.&#39;\&#39;, \&#39;type\&#39;: \&#39;comments\&#39;});&#160; return false;" rel="nofollow"&#62;Show Comments (&#39;.get_comments_number($postId).&#39;)&#60;/a&#62;&#39;;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $showcomments = $showcomments.&#39;&#60;div id="awpcomments_&#39;.$postId.&#39;" class="awpcomments" style="display:none;"&#62;&#60;/div&#62;&#39;&#160; ;<br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $showcomments = $showcomments.&#39;&#60;div id="awpcommentform_&#39;.$postId.&#39;" class="commentform" style="display:none;"&#62;&#60;/div&#62;&#39;&#160; ;</p>
<p>------------------------------------------------------------------------------------------------------------------------------</p>
<p>(a) So it is working but I would prefer not to have to hack it like this. Is there a better way?</p>
<p>(b) Maybe there&#39;s a better approach to getting a page of posts than the above plugin? Any suggestions appreciated.</p>
<br />
<p>2. With the inline posts feature, I cannot see the html for the "hide &#39;postname&#39;" link. I just wish to apply some CSS to it. Can you tell me the ID or class of this link?</p>
<br />
<p>Thanks heaps.</p>
<br />
<p>Tom</p>
]]></description>
	<pubDate>Mon, 27 Jul 2009 23:07:57 +0000</pubDate>
</item>
</channel>
</rss>