Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- define('WP_USE_THEMES', false);
- require('../../../wp-blog-header.php');
- $postData = $wpdb->get_results("SELECT wp_posts.ID, wp_posts.post_author, wp_posts.post_title, wp_posts.post_content, wp_users.display_name FROM wp_posts INNER JOIN wp_users ON wp_posts.post_author = wp_users.ID ORDER BY wp_posts.ID DESC LIMIT 0,1");
- $postAuthor = ($postData != null)?$postData[0]->display_name:"";
- $postTitle = ($postData != null)?$postData[0]->post_title:"";
- $postContent = ($postData != null)?$postData[0]->post_content:"";
- $postId = ($postData != null)?$postData[0]->ID:"";
- $latestArticle = c2c_get_recent_custom('ArticleSummaryFlash');
- $latestChronicle = c2c_get_recent_custom('ChronicleSummaryFlash');
- $latestInterview = c2c_get_recent_custom('InterviewSummaryFlash');
- $latestPerusal = c2c_get_recent_custom('PerusalSummaryFlash');
- $flashBild = c2c_get_recent_custom('FlashBild');
- echo "&author={$postAuthor}&title={$postTitle}&content={$postContent}&id={$postId}&latestArticle={$latestArticle}&latestChronicle={$latestChronicle}&latestInterview={$latestInterview}&latestPerusal={$latestPerusal}&flashBild={$flashBild}&"
- ?>
Add Comment
Please, Sign In to add comment