Comments on: Dynamically Load WordPress Posts with jQuery https://www.designlunatic.com/2011/06/dynamically-load-wordpress-posts-with-jquery/ Just another WordPress site Tue, 03 May 2022 15:33:00 +0000 hourly 1 http://wordpress.org/?v=3.6.1 By: Richard Muuo https://www.designlunatic.com/2011/06/dynamically-load-wordpress-posts-with-jquery/#comment-279 Richard Muuo Thu, 26 Jul 2018 13:19:00 +0000 http://baldeagle76.kodingen.com/wordpress/?p=416#comment-279 This really helped a lot… Sensei..

]]>
By: Alexandre Smirnov https://www.designlunatic.com/2011/06/dynamically-load-wordpress-posts-with-jquery/#comment-241 Alexandre Smirnov Wed, 15 May 2013 00:29:00 +0000 http://baldeagle76.kodingen.com/wordpress/?p=416#comment-241 Glad to help.

]]>
By: Miguel Garrido https://www.designlunatic.com/2011/06/dynamically-load-wordpress-posts-with-jquery/#comment-240 Miguel Garrido Wed, 15 May 2013 00:08:00 +0000 http://baldeagle76.kodingen.com/wordpress/?p=416#comment-240 This solution is simple and useful, not the best, but help me to understand how ajax works. Thanks!

]]>
By: Alexandre Smirnov https://www.designlunatic.com/2011/06/dynamically-load-wordpress-posts-with-jquery/#comment-239 Alexandre Smirnov Tue, 07 May 2013 03:36:00 +0000 http://baldeagle76.kodingen.com/wordpress/?p=416#comment-239 Just use javascript’s location.hash method. Take a look at http://www.designlunatic.com/2012/08/a-continuation-of-the-isotope-tutorial-hash-history-with-isotope/ for
more info on how to work with the URL.

]]>
By: Sam https://www.designlunatic.com/2011/06/dynamically-load-wordpress-posts-with-jquery/#comment-238 Sam Mon, 06 May 2013 21:28:00 +0000 http://baldeagle76.kodingen.com/wordpress/?p=416#comment-238 How can I add the post name to the URL? So that the post can be shared.
Thanks

]]>
By: aksesuar https://www.designlunatic.com/2011/06/dynamically-load-wordpress-posts-with-jquery/#comment-228 aksesuar Fri, 15 Mar 2013 19:41:00 +0000 http://baldeagle76.kodingen.com/wordpress/?p=416#comment-228 Thanks for sharing http://www.aksesuarim.com

]]>
By: Marc Heidemann Von Der Heide https://www.designlunatic.com/2011/06/dynamically-load-wordpress-posts-with-jquery/#comment-8 Marc Heidemann Von Der Heide Thu, 07 Jun 2012 22:56:00 +0000 http://baldeagle76.kodingen.com/wordpress/?p=416#comment-8 how can i select elements in the loaded post with jquery? 

]]>
By: Shawon Akhand https://www.designlunatic.com/2011/06/dynamically-load-wordpress-posts-with-jquery/#comment-7 Shawon Akhand Thu, 12 Apr 2012 19:20:00 +0000 http://baldeagle76.kodingen.com/wordpress/?p=416#comment-7  

It was a beneficial workout for me to go through your
webpage. It definitely stretches the limits with the mind when you go through
very good info and make an effort to interpret it properly. I am going to
glance up this web site usually on my PC. Thanks for sharing.

Siding
Lancaster PA

]]>
By: Hugo https://www.designlunatic.com/2011/06/dynamically-load-wordpress-posts-with-jquery/#comment-6 Hugo Sun, 04 Mar 2012 21:04:00 +0000 http://baldeagle76.kodingen.com/wordpress/?p=416#comment-6 Great tutorial! It works but now I’m trying to change the URL and the script just open the page (instead of loading it in the same page).

Here is the code:
$(document).ready(function(){ $.ajaxSetup({cache:false}); $(“a.element”).click(function(){ var post_url = http://websiteurl.com/wp-content/themes/base/post.php; var post_id = $(this).attr(“rel”); $(“#post”).html(“loading…”);     $(“#post”).load(post_url);       window.location.hash = post_id;return false; });});

]]>
By: Anonymous https://www.designlunatic.com/2011/06/dynamically-load-wordpress-posts-with-jquery/#comment-5 Anonymous Sun, 08 Jan 2012 00:23:00 +0000 http://baldeagle76.kodingen.com/wordpress/?p=416#comment-5 Well, to pull a specific post, just take the post’s url and .load that.  For example,
var post_url = http://www.example.com/post-url-here
$(“#post”).load(post_url);

This jQuery will work on any page.

Is this what you were asking?

]]>