Guest User

Untitled

a guest
Jun 24th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. <?php
  2. define('WP_USE_THEMES', false);
  3. require('../../../wp-blog-header.php');
  4. $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");
  5. $postAuthor = ($postData != null)?$postData[0]->display_name:"";
  6. $postTitle = ($postData != null)?$postData[0]->post_title:"";
  7. $postContent = ($postData != null)?$postData[0]->post_content:"";
  8. $postId = ($postData != null)?$postData[0]->ID:"";
  9. $latestArticle = c2c_get_recent_custom('ArticleSummaryFlash');
  10. $latestChronicle = c2c_get_recent_custom('ChronicleSummaryFlash');
  11. $latestInterview = c2c_get_recent_custom('InterviewSummaryFlash');
  12. $latestPerusal = c2c_get_recent_custom('PerusalSummaryFlash');
  13. $flashBild = c2c_get_recent_custom('FlashBild');
  14. echo "&author={$postAuthor}&title={$postTitle}&content={$postContent}&id={$postId}&latestArticle={$latestArticle}&latestChronicle={$latestChronicle}&latestInterview={$latestInterview}&latestPerusal={$latestPerusal}&flashBild={$flashBild}&"
  15. ?>
Add Comment
Please, Sign In to add comment