我不知道我是否偶然搞砸了某些东西,但出于某种原因,当我访问我的截图页面时,我收到此错误:
致命错误:在第36行的/single-screenshots.php中调用未定义的函数aq_resize()
该页面上的代码是:
<?php
// BEGIN SCREENSHOTS GALLERY
$attachment_args = array(
'post_type' => 'attachment',
'numberposts' => -1, // one attachement image per post
'post_status' => null,
'post_parent' =>$post->ID,
'orderby' => 'menu_order ID'
);
$attachments = get_posts($attachment_args);
if ($attachments) {
foreach($attachments as $gall_image )
{
$att_img = wp_get_attachment_url( $gall_image->ID);
echo '<li>';
echo '<a class="grouped_elements" rel="group1" href="'.$att_img.'" title="'.$gall_image->post_title.'">';
echo '<img src="'. aq_resize($att_img, 140, 100, true) .'" alt=""/>';
echo '</a>';
echo '</li>';
}
}
?>
我不精通PHP,所以我不知道可能导致这种情况的原因是什么?有任何想法吗?