[Plugin: Front-end Editor] Apply Front-end Editor to post loaded with ajax?
-
What code do I have to add to make a post loaded via ajax editable with Front End Editor?
In my ajax.php file I have added the wp-blog-header which should load the plugin but it does not seem to do anything with the standard wp loop that follows.
define(‘WP_USE_THEMES’, false);
require(‘../../../wp-blog-header.php’);
header(“HTTP/1.1 200 OK”);
do_action(‘template_redirect’);query_posts(array(‘p’=>$_POST[‘postid’]));
if (have_posts()) : while (have_posts()) : the_post(); ?>
……..Thanks a lot in advance
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘[Plugin: Front-end Editor] Apply Front-end Editor to post loaded with ajax?’ is closed to new replies.