嗨,只是想寻求帮助,但无法解决此问题
谢谢
t2t\\u homepage\\u slide()XXXXXXX/index缺少参数2。php位于第41行,在/xxxxxxx/ten中定义。php在线94
<?php
$slide1 = get_option($shortname.\'_slide_1\');
$slide2 = get_option($shortname.\'_slide_2\');
$slide3 = get_option($shortname.\'_slide_3\');
$slide4 = get_option($shortname.\'_slide_4\');
$slide5 = get_option($shortname.\'_slide_5\');
?>
<?php if($slide1 != \'\') : ?>
<?php t2t_homepage_slide($shortname.\'_slide_1\'); ?> <--line 41
<?php endif; ?>
<?php if($slide2 != \'\') : ?>
<?php t2t_homepage_slide($shortname.\'_slide_2\'); ?>
<?php endif; ?>
<?php if($slide3 != \'\') : ?>
<?php t2t_homepage_slide($shortname.\'_slide_3\'); ?>
<?php endif; ?>
<?php if($slide4 != \'\') : ?>
<?php t2t_homepage_slide($shortname.\'_slide_4\'); ?>
<?php endif; ?>
<?php if($slide5 != \'\') : ?>
<?php t2t_homepage_slide($shortname.\'_slide_5\'); ?>
function t2t_homepage_slide($slide,$size) { <--- line 94
global $wpdb;
$image = get_option($slide);
$caption = get_option($slide.\'_caption\');
$price = get_option($slide.\'_price\');
$url = get_option($slide.\'_url\');
SO网友:Chris_O
你t2t_homepage_slide($slide,$size)
函数需要2个参数,您只能用一个参数调用它。
调用函数时包含$size参数,或删除要求,或在定义函数时提供默认值(第94行)。例如:
function t2t_homepage_slide( $slide, $size = \'\') { <--- line 94
global $wpdb;
$image = get_option($slide);
$caption = get_option($slide.\'_caption\');
$price = get_option($slide.\'_price\');
$url = get_option($slide.\'_url\');
此外,由于这是一个商业主题,您应该能够从
themes support forum.