rawky

Error

Jun 9th, 2011
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. 'Recent Posts', 'maxposts' => 3); $title = htmlspecialchars($options['title'], ENT_QUOTES); $maxposts = $options['maxposts']; echo $before_widget . $before_title . $title . $after_title; //$all = new WP_Query('category_name=-portfolio'); ?>
  2. 'Recent Posts', 'maxposts' => 3); if ($_POST['ts_recent_submit']) { $options['title'] = strip_tags(stripslashes($_POST['ts_recent_title'])); $options['maxposts'] = strip_tags(stripslashes($_POST['ts_recent_maxposts'])); update_option('ts_widget_recent', $options); } $title = htmlspecialchars($options['title'], ENT_QUOTES); $maxposts = htmlspecialchars($options['maxposts'], ENT_QUOTES); ?>
  3.  
  4. » General Options:
  5.  
  6. Title:
  7.  
  8. Show posts
  9.  
  10. '; } function ts_recent_request($maxposts = 3, $offset = 0) { echo '
  11.  
  12. '; $query = new WP_Query('cat=-45&showposts=' . $maxposts); while ($query->have_posts()) : $query->the_post(); ?>
  13.  
  14. Fatal error: Call to undefined function the_post_thumbnail() in H:\wwwroot\43494\www\wp-content\themes\magzimus\widgets\recent.php on line 93
Advertisement
Add Comment
Please, Sign In to add comment