You should be fine (about the WP functionality you are missing) if you add this to your reloadhomeposts. Php file before you call any WP function.
You should be fine (about the WP functionality you are missing) if you add this to your reloadhomeposts. Php file before you call any WP function: require('../../../wp-blog-header. Php'); // ... WP_Query call and loop.
You're probably getting that error because you are calling the theme file directly OR because you aren't incuding the header and footer of the page. Easy Solve: Make sure the page loads as wanted. If you don't want to include the header and all that junk, you can load a fragment with jQuery doing something like this: .
Load('wp-content/themes/theme/reloadhomeposts. Php #postWrapper', function() { $(this). RemoveClass('loading') }).
You should make sure your file loads properly without JS first – Wes Apr 18 at 4:55 It does by using include(myfile) – Kaoukkos Apr 18 at 5:00 Then you should be off to the races. The error you are getting is a PHP compile error and has nothing to do with jQuery – Wes Apr 18 at 5:04.
Your AJAX can call /wp-admin/admin-ajax. Php , with an action parameter (and whatever you want), then in a plugin file you can associate your ajax call to : add_action('wp_ajax_YOUR_ACTION_NAME', 'the_function_to_call'); add_action('wp_ajax_no_priv_YOUR_ACTION_NAME', 'the_function_to_call'); YOUR_ACTION_NAME must be the value of the action parameter. The first one, is a public ajax request, means you can call it even if your not logged in The second one, need that you're logged on.
Then the function the_function_to_call can include whatever, it will works! Function the_function_to_call () { include (TEMPLATEPATH . '/reloadhomeposts.
Php'); die(); // prevent string 1 to appear after } A little complicated but you are using WP internals process for AJAX.
There and thanks for your answer. But, which actions or function should I call? – Kaoukkos Apr 18 at 11:15 It's up to you, you have to create an action, for exemple action 'getallpost' , then when you make your ajax call, add this to the url :?
Action=getallpost – BornBanane Apr 18 at 14:39 And for the fonction, you have to créat it and chosse a proper name for it! That's all. – BornBanane Apr 18 at 14:40.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.