Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- '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'); ?>
- '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); ?>
- » General Options:
- Title:
- Show posts
- '; } function ts_recent_request($maxposts = 3, $offset = 0) { echo '
- '; $query = new WP_Query('cat=-45&showposts=' . $maxposts); while ($query->have_posts()) : $query->the_post(); ?>
- 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