AJAX and wordpress
-
Hi guys the current ajax call shows the post content, how can i make it display post title and custom fields? any hint? im going mad.
case 'load_more_content': $postid = $base->getPostVar('postid', 0, 'i'); if($postid > 0){ $raw_content = get_post_field('post_content', $postid); if(!is_wp_error($raw_content)){ $content = apply_filters('the_content', $raw_content); //filter apply for qTranslate and other self::ajaxResponseData($content); } } $error = __('Post Not Found', EG_TEXTDOMAIN); break;
- The topic ‘AJAX and wordpress’ is closed to new replies.