<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Ajax WordPress post popup with SimpleModal and jQuery</title>
	<atom:link href="http://wordpressthemescollection.com/ajax-wordpress-post-popup-with-simplemodal-and-jquery-488.html/feed" rel="self" type="application/rss+xml" />
	<link>http://wordpressthemescollection.com/ajax-wordpress-post-popup-with-simplemodal-and-jquery-488.html</link>
	<description>All the best Premium WordPress themes available online</description>
	<lastBuildDate>Tue, 07 Sep 2010 12:37:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: admin</title>
		<link>http://wordpressthemescollection.com/ajax-wordpress-post-popup-with-simplemodal-and-jquery-488.html#comment-666</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 07 Sep 2010 12:37:34 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressthemescollection.com/?p=488#comment-666</guid>
		<description>@bava Without a link to look at it, it is a bit complex for me to answer. I see you are using jQuery from the jQuery site. Did you replace every instances of &quot;jQuery&quot; by &quot;$&quot; in the your_ajax_function.js file? (see note2 in my post)</description>
		<content:encoded><![CDATA[<p>@bava Without a link to look at it, it is a bit complex for me to answer. I see you are using jQuery from the jQuery site. Did you replace every instances of &#8220;jQuery&#8221; by &#8220;$&#8221; in the your_ajax_function.js file? (see note2 in my post)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bava</title>
		<link>http://wordpressthemescollection.com/ajax-wordpress-post-popup-with-simplemodal-and-jquery-488.html#comment-665</link>
		<dc:creator>bava</dc:creator>
		<pubDate>Sun, 05 Sep 2010 15:46:08 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressthemescollection.com/?p=488#comment-665</guid>
		<description>Sorry popup link not displaed correct
here is it
 &lt;strong&gt;&lt;a href=&lt;/strong&gt;&lt;strong&gt;&quot;&lt;?php the_permalink() &lt;/strong&gt;?&gt;&quot; rel=&quot;postid&quot; class=&quot;postpopup&quot;&gt;&lt;&lt;strong&gt;?php the_title(); ?&gt;&lt;/strong&gt;</description>
		<content:encoded><![CDATA[<p>Sorry popup link not displaed correct<br />
here is it<br />
 <strong>&lt;a href=</strong><strong>&#8220;&lt;?php the_permalink() </strong>?&gt;&#8221; rel=&#8221;postid&#8221; class=&#8221;postpopup&#8221;&gt;&lt;<strong>?php the_title(); ?&gt;</strong></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bava</title>
		<link>http://wordpressthemescollection.com/ajax-wordpress-post-popup-with-simplemodal-and-jquery-488.html#comment-664</link>
		<dc:creator>bava</dc:creator>
		<pubDate>Sun, 05 Sep 2010 15:40:29 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressthemescollection.com/?p=488#comment-664</guid>
		<description>But it&#039;s not working for me at all.

let me explain what i did.

I&#039;ve made 
ajax-handler.php (as template file)
your_ajax_function.js (link altered)
&lt;a href=&quot;http://code.jquery.com/jquery-1.4.2.min.js&quot; rel=&quot;nofollow&quot;&gt;jquery-1.4.2.min.js&lt;/a&gt;
&lt;a href=&quot;http://code.google.com/p/simplemodal/downloads/detail?name=jquery.simplemodal-1.3.5.min.js&amp;can=2&amp;q=&quot; rel=&quot;nofollow&quot;&gt;simplemodal-1.3.5.min.js&lt;/a&gt;

all .js are added in header file

and my popup link was &lt;strong&gt;&lt;a href=&quot;&quot; rel=&quot;postid&quot; class=&quot;postpopup&quot;&gt;&lt;/strong&gt;

please anyone help me to work it out.

thanks in advance.</description>
		<content:encoded><![CDATA[<p>But it&#8217;s not working for me at all.</p>
<p>let me explain what i did.</p>
<p>I&#8217;ve made<br />
ajax-handler.php (as template file)<br />
your_ajax_function.js (link altered)<br />
<a href="http://code.jquery.com/jquery-1.4.2.min.js" rel="nofollow">jquery-1.4.2.min.js</a><br />
<a href="http://code.google.com/p/simplemodal/downloads/detail?name=jquery.simplemodal-1.3.5.min.js&amp;can=2&amp;q=" rel="nofollow">simplemodal-1.3.5.min.js</a></p>
<p>all .js are added in header file</p>
<p>and my popup link was <strong>&lt;a href=&quot;&#8221; rel=&#8221;postid&#8221; class=&#8221;postpopup&#8221;&gt;</strong></p>
<p>please anyone help me to work it out.</p>
<p>thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://wordpressthemescollection.com/ajax-wordpress-post-popup-with-simplemodal-and-jquery-488.html#comment-649</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 10 Aug 2010 08:47:08 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressthemescollection.com/?p=488#comment-649</guid>
		<description>Hi Kumar, I can see the normal modal box on that page but can&#039;t see any ajax one. You seem to have created the ajax-handler fine and I can see it works so you shouldn&#039;t be far off.</description>
		<content:encoded><![CDATA[<p>Hi Kumar, I can see the normal modal box on that page but can&#8217;t see any ajax one. You seem to have created the ajax-handler fine and I can see it works so you shouldn&#8217;t be far off.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kumar</title>
		<link>http://wordpressthemescollection.com/ajax-wordpress-post-popup-with-simplemodal-and-jquery-488.html#comment-647</link>
		<dc:creator>kumar</dc:creator>
		<pubDate>Mon, 09 Aug 2010 19:14:01 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressthemescollection.com/?p=488#comment-647</guid>
		<description>can you create a video tutorial for this article please, its totally confusing, i read all comments, article but nothing worked.
here is the test url:
http://malepati.in/testing/</description>
		<content:encoded><![CDATA[<p>can you create a video tutorial for this article please, its totally confusing, i read all comments, article but nothing worked.<br />
here is the test url:<br />
<a href="http://malepati.in/testing/" rel="nofollow">http://malepati.in/testing/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Terry</title>
		<link>http://wordpressthemescollection.com/ajax-wordpress-post-popup-with-simplemodal-and-jquery-488.html#comment-630</link>
		<dc:creator>Terry</dc:creator>
		<pubDate>Thu, 29 Jul 2010 14:40:44 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressthemescollection.com/?p=488#comment-630</guid>
		<description>Thanks for your answer!
It works, I just have to delete the .hide() to.
But now  the posts are displayed one after the other.
And I don&#039;t know how to test if a post is already loaded...
Probably something like : 
if (a post is loaded) {
hide the loaded post and load the new one
} else {
load the post 
}
Any tips?
Thanks, Terry</description>
		<content:encoded><![CDATA[<p>Thanks for your answer!<br />
It works, I just have to delete the .hide() to.<br />
But now  the posts are displayed one after the other.<br />
And I don&#8217;t know how to test if a post is already loaded&#8230;<br />
Probably something like :<br />
if (a post is loaded) {<br />
hide the loaded post and load the new one<br />
} else {<br />
load the post<br />
}<br />
Any tips?<br />
Thanks, Terry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://wordpressthemescollection.com/ajax-wordpress-post-popup-with-simplemodal-and-jquery-488.html#comment-629</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 29 Jul 2010 11:51:37 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressthemescollection.com/?p=488#comment-629</guid>
		<description>Hi Terry, yeah absolutly, I don&#039;t see why not. You can just remove the &quot;.modal()&quot; at the end of the javascript call and the content should be added to your body.</description>
		<content:encoded><![CDATA[<p>Hi Terry, yeah absolutly, I don&#8217;t see why not. You can just remove the &#8220;.modal()&#8221; at the end of the javascript call and the content should be added to your body.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Terry</title>
		<link>http://wordpressthemescollection.com/ajax-wordpress-post-popup-with-simplemodal-and-jquery-488.html#comment-621</link>
		<dc:creator>Terry</dc:creator>
		<pubDate>Tue, 27 Jul 2010 17:47:51 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressthemescollection.com/?p=488#comment-621</guid>
		<description>Hey,
Great article.
Just one litle question : Is it possible to load the posts in an iframe or a div  inside the theme?
I mean, not in a modal box, but directly in the content.
Terry.</description>
		<content:encoded><![CDATA[<p>Hey,<br />
Great article.<br />
Just one litle question : Is it possible to load the posts in an iframe or a div  inside the theme?<br />
I mean, not in a modal box, but directly in the content.<br />
Terry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://wordpressthemescollection.com/ajax-wordpress-post-popup-with-simplemodal-and-jquery-488.html#comment-600</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 21 Jul 2010 08:17:09 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressthemescollection.com/?p=488#comment-600</guid>
		<description>Hi Grant, I&#039;ve not tried it in multisite mode but I think it could work. You will need to change the way you get the post in the ajax handler though, because in mu mode I think you need to specify which blog you want the post from.</description>
		<content:encoded><![CDATA[<p>Hi Grant, I&#8217;ve not tried it in multisite mode but I think it could work. You will need to change the way you get the post in the ajax handler though, because in mu mode I think you need to specify which blog you want the post from.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carol</title>
		<link>http://wordpressthemescollection.com/ajax-wordpress-post-popup-with-simplemodal-and-jquery-488.html#comment-596</link>
		<dc:creator>Carol</dc:creator>
		<pubDate>Tue, 20 Jul 2010 09:35:43 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressthemescollection.com/?p=488#comment-596</guid>
		<description>Thank you very much for yet another  first-rate  article. I am always searching for original WordPress themes to suggest  to my readers. Thanks for creating this article.  It&#039;s  exactly  what I was  searching for. Truly  great post.</description>
		<content:encoded><![CDATA[<p>Thank you very much for yet another  first-rate  article. I am always searching for original WordPress themes to suggest  to my readers. Thanks for creating this article.  It&#8217;s  exactly  what I was  searching for. Truly  great post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Grant</title>
		<link>http://wordpressthemescollection.com/ajax-wordpress-post-popup-with-simplemodal-and-jquery-488.html#comment-586</link>
		<dc:creator>Grant</dc:creator>
		<pubDate>Sat, 17 Jul 2010 05:04:04 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressthemescollection.com/?p=488#comment-586</guid>
		<description>Hey,

Has anyone tried this with WordPress 3.0 MU?  Looks like some great code though.  I&#039;m going to give it a try now, I have posts on my homepage from several sub blogs and I&#039;d like to be able to pop up an excerpt of the post.

Grant</description>
		<content:encoded><![CDATA[<p>Hey,</p>
<p>Has anyone tried this with WordPress 3.0 MU?  Looks like some great code though.  I&#8217;m going to give it a try now, I have posts on my homepage from several sub blogs and I&#8217;d like to be able to pop up an excerpt of the post.</p>
<p>Grant</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://wordpressthemescollection.com/ajax-wordpress-post-popup-with-simplemodal-and-jquery-488.html#comment-565</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 09 Jul 2010 09:06:15 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressthemescollection.com/?p=488#comment-565</guid>
		<description>Hi Matt, looks like you&#039;ve managed to fix it? What was it in the end? it seems many people are having problems with this tutorial and I would like to make it clearer in some ways so your feedback could help me a lot, thanks.

Also your javascript seems to call the actual template file when it should call the page using that template file i.e. use the permalink of the page using the ajax-handler template file instead of the path to the file in your theme folder.

@peter below, I think you are making the same mistake, that would explain why WordPress functions are not working</description>
		<content:encoded><![CDATA[<p>Hi Matt, looks like you&#8217;ve managed to fix it? What was it in the end? it seems many people are having problems with this tutorial and I would like to make it clearer in some ways so your feedback could help me a lot, thanks.</p>
<p>Also your javascript seems to call the actual template file when it should call the page using that template file i.e. use the permalink of the page using the ajax-handler template file instead of the path to the file in your theme folder.</p>
<p>@peter below, I think you are making the same mistake, that would explain why WordPress functions are not working</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://wordpressthemescollection.com/ajax-wordpress-post-popup-with-simplemodal-and-jquery-488.html#comment-564</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Thu, 08 Jul 2010 18:50:01 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressthemescollection.com/?p=488#comment-564</guid>
		<description>See the &quot;Privacy Policy&quot; link below the form on the home page: The popup works, but no content from the page loads.  I&#039;ve confirmed it is the right page ID, and the template is &quot;ajax handler&quot;.  Paths to these files are correct, and js files are all included.  Any thoughts on a next step?</description>
		<content:encoded><![CDATA[<p>See the &#8220;Privacy Policy&#8221; link below the form on the home page: The popup works, but no content from the page loads.  I&#8217;ve confirmed it is the right page ID, and the template is &#8220;ajax handler&#8221;.  Paths to these files are correct, and js files are all included.  Any thoughts on a next step?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://wordpressthemescollection.com/ajax-wordpress-post-popup-with-simplemodal-and-jquery-488.html#comment-527</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Sun, 23 May 2010 21:32:32 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressthemescollection.com/?p=488#comment-527</guid>
		<description>After some trial and error I&#039;ve managed to get a Wordpress template page to show in the popup box - with the correct post info passed along. However, I cannot get any Wordpress functions, such as have_posts(), apply_filters(), query_posts(), to work in the template page. I can&#039;t figure out what I&#039;m doing wrong.

Fatal error: Call to undefined function have_posts() in /Volumes/iMacWS/ws/wp2/wp-content/themes/linquist/ajax-handler.php on line 9

I&#039;ve sort of got around it by using mySQL to query wp_posts directly, but would appreciate any advice.</description>
		<content:encoded><![CDATA[<p>After some trial and error I&#8217;ve managed to get a WordPress template page to show in the popup box &#8211; with the correct post info passed along. However, I cannot get any WordPress functions, such as have_posts(), apply_filters(), query_posts(), to work in the template page. I can&#8217;t figure out what I&#8217;m doing wrong.</p>
<p>Fatal error: Call to undefined function have_posts() in /Volumes/iMacWS/ws/wp2/wp-content/themes/linquist/ajax-handler.php on line 9</p>
<p>I&#8217;ve sort of got around it by using mySQL to query wp_posts directly, but would appreciate any advice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://wordpressthemescollection.com/ajax-wordpress-post-popup-with-simplemodal-and-jquery-488.html#comment-526</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 21 May 2010 08:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressthemescollection.com/?p=488#comment-526</guid>
		<description>Hi Joanson, adding a &#039;overflow:auto&#039; to the css of the simplemodal box should do the trick.</description>
		<content:encoded><![CDATA[<p>Hi Joanson, adding a &#8216;overflow:auto&#8217; to the css of the simplemodal box should do the trick.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joanson</title>
		<link>http://wordpressthemescollection.com/ajax-wordpress-post-popup-with-simplemodal-and-jquery-488.html#comment-525</link>
		<dc:creator>Joanson</dc:creator>
		<pubDate>Fri, 21 May 2010 07:16:27 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressthemescollection.com/?p=488#comment-525</guid>
		<description>Hi, 
Who could kindly point out the way how to add vertical and horizontal scrollbars into the simplemodal-container (div) for the case that post content overflows the border of its container? Thanks,</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Who could kindly point out the way how to add vertical and horizontal scrollbars into the simplemodal-container (div) for the case that post content overflows the border of its container? Thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://wordpressthemescollection.com/ajax-wordpress-post-popup-with-simplemodal-and-jquery-488.html#comment-523</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 11 May 2010 11:26:40 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressthemescollection.com/?p=488#comment-523</guid>
		<description>@SPnova If you are using the not minified version of simplemodal you can try replacing all the &#039;$&#039; by &#039;jQuery&#039;. But the last time I tried, WordPress was still using jQuery 1.3, which is not compatible with the latest version of SimpleModal I believe.</description>
		<content:encoded><![CDATA[<p>@SPnova If you are using the not minified version of simplemodal you can try replacing all the &#8216;$&#8217; by &#8216;jQuery&#8217;. But the last time I tried, WordPress was still using jQuery 1.3, which is not compatible with the latest version of SimpleModal I believe.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://wordpressthemescollection.com/ajax-wordpress-post-popup-with-simplemodal-and-jquery-488.html#comment-522</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 11 May 2010 11:24:37 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressthemescollection.com/?p=488#comment-522</guid>
		<description>@vincent 1. Check that you include jQuery and SimpleModal before including the rest of the javascript.

2. The path to the page seems correct. Have you published a page in WordPress called &quot;Ajax Handler&quot; and is &quot;ajax-handler&quot; the right permalink for that page? Most problems come from people either using a different permalink structure or not publishing the page in the first place.</description>
		<content:encoded><![CDATA[<p>@vincent 1. Check that you include jQuery and SimpleModal before including the rest of the javascript.</p>
<p>2. The path to the page seems correct. Have you published a page in WordPress called &#8220;Ajax Handler&#8221; and is &#8220;ajax-handler&#8221; the right permalink for that page? Most problems come from people either using a different permalink structure or not publishing the page in the first place.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SPnova</title>
		<link>http://wordpressthemescollection.com/ajax-wordpress-post-popup-with-simplemodal-and-jquery-488.html#comment-521</link>
		<dc:creator>SPnova</dc:creator>
		<pubDate>Sun, 09 May 2010 15:31:49 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressthemescollection.com/?p=488#comment-521</guid>
		<description>Thanks for sample. But it works for you, because  you use not standard wordpress jQuery, - you use:
http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js

Have you ideas about how to get working modal js script for standard wordpress jQuery?</description>
		<content:encoded><![CDATA[<p>Thanks for sample. But it works for you, because  you use not standard wordpress jQuery, &#8211; you use:<br />
<a href="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js" rel="nofollow">http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js</a></p>
<p>Have you ideas about how to get working modal js script for standard wordpress jQuery?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vincent</title>
		<link>http://wordpressthemescollection.com/ajax-wordpress-post-popup-with-simplemodal-and-jquery-488.html#comment-520</link>
		<dc:creator>vincent</dc:creator>
		<pubDate>Fri, 07 May 2010 13:07:07 +0000</pubDate>
		<guid isPermaLink="false">http://wordpressthemescollection.com/?p=488#comment-520</guid>
		<description>2 Firebug errors 

1.  $(&quot;&quot;).hide().appendTo(&quot;body&quot;).load(&quot;http://myweb.com/ajax-handler/?id=&quot; + id).modal is not a function

i have simplemodal and jquery included in header

And

GET http://myweb.com/ajax-handler/?id=8 not found

Having same problem as Pete, but i don&#039;t understand your response. 

1. &quot;The path you want in the load bit is the url to the page created with the ajax handler in WordPress.&quot; 

the path to the page that im calling through ajax? But i thought the re=&quot;id&quot; was going to tell it what to grab.

load(&#039;http://urlofyoursite.com/ajax-handler/?id=&#039;+id)

As i understand the directions this is all that i change &quot;urlofyoursite.com&quot; everything else is the same. THEN the link should just have the rel=&quot;id#&quot;.</description>
		<content:encoded><![CDATA[<p>2 Firebug errors </p>
<p>1.  $(&#8220;&#8221;).hide().appendTo(&#8220;body&#8221;).load(&#8220;http://myweb.com/ajax-handler/?id=&#8221; + id).modal is not a function</p>
<p>i have simplemodal and jquery included in header</p>
<p>And</p>
<p>GET <a href="http://myweb.com/ajax-handler/?id=8" rel="nofollow">http://myweb.com/ajax-handler/?id=8</a> not found</p>
<p>Having same problem as Pete, but i don&#8217;t understand your response. </p>
<p>1. &#8220;The path you want in the load bit is the url to the page created with the ajax handler in WordPress.&#8221; </p>
<p>the path to the page that im calling through ajax? But i thought the re=&#8221;id&#8221; was going to tell it what to grab.</p>
<p>load(&#8216;http://urlofyoursite.com/ajax-handler/?id=&#8217;+id)</p>
<p>As i understand the directions this is all that i change &#8220;urlofyoursite.com&#8221; everything else is the same. THEN the link should just have the rel=&#8221;id#&#8221;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
